microsoft-365-calendar-mcp
Use the Microsoft 365 Calendar MCP tools (calendar_*) to list events in a date range, read an event, and create, update or delete events and meetings with attendees. Invoke whenever a task involves the user's calendar: it gives exact tool signatures, how to express start/end times and time zones, how to find event IDs, paging rules, the preview-then-confirm flow required before invitations or cancellations go out, and how to interpret confirmed / confirmed_but_unreadable / rejected / indeterminate results.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 29
- Forks
- 156
01 前言 Front Matter
- name
- microsoft-365-calendar-mcp
- description
- Use the Microsoft 365 Calendar MCP tools (calendar_*) to list events in a date range, read an event, and create, update or delete events and meetings with attendees. Invoke whenever a task involves the user's calendar: it gives exact tool signatures, how to express start/end times and time zones, how to find event IDs, paging rules, the preview-then-confirm flow required before invitations or cancellations go out, and how to interpret confirmed / confirmed_but_unreadable / rejected / indeterminate results.
03 SKILL.md 正文
Microsoft 365 Calendar (MCP tools)
Connect to the calendar endpoint /calendar/mcp. It exposes only calendar_* tools — mail,
files, Teams, tasks and people lookups live behind separate endpoints.
Choosing a tool
| You want to… | Call |
|---|---|
| Check which account this endpoint is signed in as | calendar_me |
| See what is on the calendar in a period | calendar_list_events |
| Read one event's details | calendar_get_event |
| Book a meeting or block time | calendar_create_event |
| Change time, subject, location or attendees | calendar_update_event |
| Cancel / remove an event | calendar_delete_event |
Tool signatures
| Tool | Notes |
|---|---|
calendar_me() |
Signed-in user (id, display_name, mail, user_principal_name) and tenant_id for this endpoint's token. Other M365 endpoints have their own tokens and may be signed in as someone else. |
calendar_list_events(start, end, limit?, cursor?) |
ISO 8601 start (inclusive) / end (exclusive). Recurring series are expanded into occurrences; times come back in UTC. |
calendar_get_event(event_id) |
One event. |
calendar_create_event(subject, start, end, body?, body_html=false, location?, attendees?, is_all_day?, is_reminder_on?, reminder_minutes_before_start?, show_as?, confirm=false) |
With attendees this sends invitations. |
calendar_update_event(event_id, subject?, start?, end?, body?, body_html?, location?, attendees?, is_all_day?, is_reminder_on?, reminder_minutes_before_start?, show_as?, confirm=false) |
Omitted properties are untouched; at least one change required. |
calendar_delete_event(event_id, confirm=false) |
For a meeting this cancels it for every attendee. |
Times and time zones (get this right)
- Write times are
{"date_time": "2026-09-02T10:00:00", "time_zone": "Europe/Madrid"}: a naive local timestamp plus an IANA or Windows zone. Do not put aZor an offset insidedate_time: the server does not reject it, and combined with a non-UTCtime_zonethe result is ambiguous. Omittingtime_zonemeans UTC. An ISO 8601 string with an explicit offset ("2026-09-02T10:00:00Z") is accepted too and read as that UTC instant; a string without an offset is rejected rather than guessed. list_eventsstart/endare plain ISO 8601 instants ("2026-09-01T00:00:00Z"), and returned event times are UTC — convert before showing them to the user.- Always tell the user which time zone you used when you book something.
- All-day events: set
is_all_day: truewith midnight-to-midnight local times.
Discovering ids
- Event id →
calendar_list_eventsover the relevant range (orcalendar_get_eventif you already have one). Never guess an id. - Attendee addresses → use what the user gave you. If you had to infer who a person is, confirm
with the user first; you can optionally resolve them with the Directory MCP
(
directory_search_users) if that endpoint is also connected.
Reading and paging
- Always pass a real range; do not sweep a whole calendar to find one meeting.
- Lists return
{ "items": [...], "next": <cursor|null> }. For more, repeat the call withcursorset tonextverbatim, changing nothing else. Never edit or build a cursor URL. Onlynext: nullmeans the range is exhausted.limitdefaults to 25, max 200. - Results are narrow projections; use the fields returned.
Writing: preview → approval → confirm
Every write takes confirm (default false).
- Call it without
confirm. Nothing reaches the calendar; you getrejectedwith aconfirmation_requirederror. There is no rich preview body here — restate the change yourself: subject, start/end with time zone, attendees, location. - Get explicit approval. This matters more here than anywhere else: creating or updating an event with attendees emails invitations, and deleting a meeting cancels it for all attendees.
- Re-run the identical call with
confirm: true.
Read status on the result:
status |
Meaning | Do |
|---|---|---|
confirmed |
It happened. | Report success using body (contains the event id). |
confirmed_but_unreadable |
It happened; only the response was unreadable. | Treat as success. Do not retry. calendar_list_events to recover the event. |
rejected |
Nothing happened (no confirm, or invalid request). |
error.error == "confirmation_required": it was a preview — get approval, retry with confirm: true. Any other error (invalid_request, a 4xx): fix the arguments and retry safely. |
indeterminate |
It may have happened (timeout / server error). | Do not re-create the event — you would duplicate invitations. List the range, then tell the user it is unverified. |
calendar_delete_event may be retried once after verifying state. calendar_create_event must
never be blindly retried.
Best practices
attendeesis a list of{"address": "ana@contoso.com", "name"?: "Ana", "kind": "required"|"optional"|"resource"};kinddefaults torequired. Addresses are not validated: a malformed one (not-an-email) is saved as-is and the call still returnsconfirmed, so check every address before confirming.update_eventreplaces the attendee list you send — include everyone who should stay.- A patch that changes
attendeestogether with the reminder properties is sent as two sequential requests (everything else first, attendees second). If the first succeeds and the second does not, the result isindeterminatewith apartialobject:partial.confirmed_fields(already applied, e.g.["subject", "is_reminder_on"]),partial.unconfirmed_fields(always["attendees"]) andpartial.unconfirmed_status(rejected= Graph refused the attendee change, safe to fix and resend only the attendees;indeterminate= unknown, re-read the event first). Nothing is rolled back: do not re-send the confirmed fields, and tell the user exactly which part is unverified. show_as∈free,tentative,busy,oof,workingElsewhere,unknown.update_eventwith nothing to change returnsrejected/invalid_request; there is no way to clear a property.body_html: truesends the body as HTML; otherwise plain text.- Never paste the bearer token, and never quote raw Graph error bodies to the user.
Examples
// What does next week look like?
calendar_list_events { "start": "2026-09-01T00:00:00Z", "end": "2026-09-08T00:00:00Z" }
// Book a meeting: preview, ask, confirm
calendar_create_event {
"subject": "Design sync",
"start": { "date_time": "2026-09-02T10:00:00", "time_zone": "Europe/Madrid" },
"end": { "date_time": "2026-09-02T10:30:00", "time_zone": "Europe/Madrid" },
"attendees": [{ "address": "ana@contoso.com", "kind": "required" }]
}
// -> { "status": "rejected", ... confirmation_required } nothing was created, no invites
calendar_create_event { /* identical arguments */ "confirm": true }
// -> { "status": "confirmed", "body": { "id": "AAMk...", ... } }
// Move it 30 minutes later
calendar_update_event {
"event_id": "AAMk...",
"start": { "date_time": "2026-09-02T10:30:00", "time_zone": "Europe/Madrid" },
"end": { "date_time": "2026-09-02T11:00:00", "time_zone": "Europe/Madrid" },
"confirm": true
}
Not available — don't promise these
- Free/busy lookup or meeting-time suggestions.
- Responding to invitations (accept / decline / tentative).
- Creating or editing recurrence patterns — series are expanded on read, but writes are single-instance only.
- Other people's, shared or group calendars; only the signed-in user's default calendar.
- Attachments and Teams online-meeting links.
When something fails
- A tool is missing from
tools/list→ the user's token lacks its scope. Reads needCalendars.ReadBasic(orCalendars.Read); every write needsCalendars.ReadWrite. Calling it anyway returnsinsufficient_scopewithrequired_scopes; report it instead of looking for a workaround. 401→ the token is missing or expired; ask the caller for a fresh one.- 429 /
graph_throttled→ waitretry_afterseconds (back off if it is missing), retry reads only, and keep at most 4 calls in flight per mailbox, in total acrosscalendar_*andmail_*(contacts included): Outlook allows only 4 concurrent requests per mailbox, shared by calendar, mail and contacts. Prefer onecalendar_list_eventsover a range to onecalendar_get_eventper event. invalid_graph_url→ the cursor was altered; restart from the first page.- Validation errors (bad range, empty patch) mean nothing was sent; fix the arguments.
- Ambiguity (which "Ana", which of two similar meetings) → ask the user before writing.
Golden path
- Check the tool is listed; if not, report the missing scope.
calendar_list_eventsover an explicit range to find the event id; page withcursorverbatim.- Write without
confirm, restate subject / time + zone / attendees, get approval. - Repeat the identical call with
confirm: true. confirmed→ done ·confirmed_but_unreadable→ done, no retry ·rejected→ nothing happened ·indeterminate→ verify by listing the range, never re-create.- Report the event id and the time zone you used.
04 同仓库更多 Skills
business-data
暂无简介
workflow
Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.
workflow
Vercel Workflow SDK expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause/resume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.
verification
Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.
vercel-storage
Vercel storage expert guidance — Blob, Global Config (formerly Edge Config), and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.
vercel-services
Configure and troubleshoot Vercel Services for multiple frontends and backends in one project. Use when composing a polyglot or multi-service application on one Vercel deployment; defining the `services` key, service-targeted rewrites, or service bindings in `vercel.json`; or running all services with `vercel dev`.