MCP: Overview
Design proposal. This section records the parts of booking's Model Context Protocol (MCP) integration that are not settled: tools acting with an owner's App Suite identity, and agent access to appointment polls. Nothing described here is implemented. The public agent surface booking does serve is documented under Agent access.
Booking exposes its public booking flow as MCP tools, so an agent holding a booking-page link or a manage link can list free slots and book, cancel, or rebook for its user (Agent access, ADR-0012). That surface authenticates nobody, because its personas have no App Suite account.
The use cases left over need the opposite. Reading an owner's own polls and bookings, creating a poll, or finalizing one requires an App Suite identity on every call, which needs an authenticated MCP surface that does not exist yet in either candidate home. Poll voting needs no identity at all and is held back for different reasons. This section works both out.
Two personas, two answers
Every booking feature serves one of two personas, and they have opposite authentication realities. The design splits along that line rather than forcing one answer onto both:
- The booker or poll voter is anonymous by design. The poll id, appointment-type id, or manage token in the link is the credential (see Security). Tools for this persona need no account and no login, so booking hosts them itself at
/booking/mcp. This half is decided and documented as a feature. - The owner is an App Suite user, authenticated by a middleware session and gated by the
bookingcapability. The org's ai-service already operates an MCP server that holds exactly such a session for its users, which makes it one candidate home for owner tools; booking growing an authenticated surface of its own is the other. This half is open.
The personas describe authority, not deployment. An owner can operate an agent that serves third parties, for example a phone line or front-desk assistant. Booking a caller in works through the public tools already (Receptionist agents); finding and cancelling a caller's appointment from the owner's own booking list is the half that waits on the owner tools (UC-09 below).
Placement of owner tools covers the two candidate homes and what decides between them; Authentication & threat model covers how an owner's agent authenticates and the data questions the poll tools raise.
Ecosystem context
Two existing MCP servers shaped this design, though only one is part of the shipped stack:
- The ai-service MCP server (documentation) exposes App Suite mail, calendar, task, and contact tools to external agents. Its acquire/redeem flow turns an existing App Suite login into an MCP API key, so tools act with a real middleware session. Its conventions (small composable tools, structured output schemas, errors as tool results rather than protocol errors, per-tool metrics) are the house style, and booking's public tools follow them too.
- The GLAM MCP server is different in kind: GLAM is an internal engineering tool, not shipped software. Its server matters here only as a working demonstration of MCP-native per-user OAuth in an environment with OIDC infrastructure. That model is open to App Suite services too, by exchanging the token for a middleware session; why this design does not lead with it, and whose decision it is, is covered in Authentication & threat model.
Booking never calls a language model. The reasoning lives entirely in the client; booking only exposes tools.
Use cases
Numbering continues the set this section started with, so UC-01, UC-02, and UC-10 are absent: they became Agent access.
| ID | Actor | Use case | Scope |
|---|---|---|---|
| UC-03 | Invitee's agent | Read an appointment poll and cast (or update) votes for its user | Deferred |
| UC-04 | Owner's agent | Create an appointment poll with proposed slots and share the link | Owner tools |
| UC-05 | Owner's agent | Read poll results and finalize the best slot | Owner tools |
| UC-06 | Owner's agent | List upcoming bookings and cancel one | Owner tools |
| UC-07 | Owner's agent | Pause and unpause the booking page | Deferred |
| UC-08 | Owner's agent | Combine booking tools with existing ai-service tools | Partly deferred |
| UC-09 | Owner's receptionist agent | Find a caller's appointment in the owner's booking list and cancel or move it | Owner tools |
The owner use cases depend on the tools living in the ai-service, which depends on the two gates in Placement of owner tools.
Deferred use cases
Deferred means the story is plausible but does not carry its weight yet; each entry names what would change that assessment.
- UC-03, poll voting. Three reasons. The value-add is thin: a ballot is a single short interaction that the human reviews anyway, unlike the slot search a booking involves. The tool semantics are the fussiest in the catalog: ballot updates replace the whole ballot, and the voter identity has to survive across agent conversations, which is exactly the state agents lose. And the poll read exposes the most third-party data (the full voter list; see the threat model). Revisit once the booking-page tools see real usage.
- UC-07, pause and unpause. A single toggle, used rarely; an agent saves the owner nothing. The story only works inside a larger workflow ("I am going on vacation: pause the page, decline invitations, set the out-of-office reply"), which is an ai-service composition question rather than a tool of its own.
- UC-08, the digest variant. Surfacing today's bookings in the ai-service's daily digest changes that team's flagship tool and is theirs to weigh. The composition that needs no code (find a contact, create a poll, mail the link) stays in scope as the owner-tools example.
Out of scope
- Appointment-type authoring by agents. Creating or editing an appointment type means writing the weekly schedule, overrides, and rule set. A wrong payload produces a silently wrong availability page, and an agent has no preview to catch it. Owners configure their types in the App Suite UI.
- A chat or assistant feature inside booking. This design exposes tools; it does not add an LLM, a prompt, or a conversation surface to this service.
Reading order
- Placement of owner tools: where the owner half lives, the gates it waits on, and the gateway option that would change the picture.
- Authentication & threat model: how an owner's agent authenticates, and the data questions the deferred poll tools raise.
- Tools & scenarios: the owner tool catalog, the deferred poll tools, and how the remaining use cases map to tool call sequences.

