Skip to main content
Glama

Confirm Booking

confirm_booking
Destructive

Confirm a reservation made with reserve_slot. Present the returned stored booking_details to the customer and relay only the customer-supplied 6-digit code received at their email or phone; never generate, guess, or fetch it. For an active configured calendar, a verified code attempts a direct commit to the selected calendar with no owner approval. booking_pending means the provider outcome is uncertain; repeat confirm_booking later to check the stored outcome, but it never retries a provider write automatically. A paid booking (reserve_slot returned payment.required = true) has no code: this answers payment_required — pay it with create_booking_payment_link — or payment_in_flight while its payment is settling.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>",
      "reservation_id": "<reservation_id>",
      "code": "<code>"
    },
    "name": "confirm_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe customer-supplied 6-digit confirmation code received at their own email or SMS contact. Relay only that supplied code; never generate, guess, or fetch it.
slugYesBusiness slug identifier
reservation_idYesThe reservation id returned by reserve_slot
booking_authorizationNoFor provider invitations, relay the reserved reference only after the customer accepts the exact stored summary and notification effects; required for Calendly.

Output Schema

NameRequiredDescriptionDefault
statusYes'confirmed': a booking was committed to the selected configured calendar, or a historical legacy reservation was confirmed. 'booking_pending': the provider outcome is unresolved; do not create another booking or seek owner approval — repeat confirm_booking later to read the stored outcome. 'pending_merchant': a historical merchant-review reservation awaits a business decision — see message. 'already_confirmed': this reservation was confirmed earlier (safe replay).
messageNoOptional customer-facing status detail to relay
cancel_tokenNoPresent once, on the first confirmation of a booking on the business's Advocate calendar. Pass it to cancel_booking if the customer cancels. A capability for this booking: never pass it to another party.
reservation_idYes
provider_confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / cancel_token
      Added value: +{
      +  "description": "Present once, on the first confirmation of a booking on the business's Advocate calendar. Pass it to cancel_booking if the customer cancels. A capability for this booking: never pass it to another party.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / booking_authorization
      Added value: +{
      +  "description": "For provider invitations, relay the reserved reference only after the customer accepts the exact stored summary and notification effects; required for Calendly.",
      +  "properties": {
      +    "accepted": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "reference": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "reference",
      +    "accepted"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / provider_confirmation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "booking_id": {
      +      "type": "string"
      +    },
      +    "conference_state": {
      +      "enum": [
      +        "pending",
      +        "ready",
      +        "unavailable"
      +      ],
      +      "type": "string"
      +    },
      +    "provider": {
      +      "const": "calendly",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "provider",
      +    "booking_id",
      +    "conference_state"
      +  ],
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • changedInput schema / properties / code / description
      Previous value: -"The 6-digit confirmation code the customer received at their contact (email or SMS) and read back to the agent"New value: +"The customer-supplied 6-digit confirmation code received at their own email or SMS contact. Relay only that supplied code; never generate, guess, or fetch it."
    • changedOutput schema / properties / message / description
      Previous value: -"Present with pending_merchant: customer-facing text to relay"New value: +"Optional customer-facing status detail to relay"
    • changedOutput schema / properties / status / description
      Previous value: -"'confirmed': the code was right and the slot is now exclusively held. 'pending_merchant': the code was right; the business must accept within 24 hours and may decline — see message. 'already_confirmed': this reservation was confirmed earlier (safe replay)."New value: +"'confirmed': a booking was committed to the selected configured calendar, or a historical legacy reservation was confirmed. 'booking_pending': the provider outcome is unresolved; do not create another booking or seek owner approval — repeat confirm_booking later to read the stored outcome. 'pending_merchant': a historical merchant-review reservation awaits a business decision — see message. 'already_confirmed': this reservation was confirmed earlier (safe replay)."
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "message": {
      +      "description": "Present with pending_merchant: customer-facing text to relay",
      +      "type": "string"
      +    },
      +    "reservation_id": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "'confirmed': the code was right and the slot is now exclusively held. 'pending_merchant': the code was right; the business must accept within 24 hours and may decline — see message. 'already_confirmed': this reservation was confirmed earlier (safe replay).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "reservation_id"
      +  ],
      +  "type": "object"
      +}
  5. Added

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well past the annotations by disclosing that a verified code commits directly to a configured calendar with no owner approval, that booking_pending reflects an uncertain provider outcome, and that repeat calls never auto-retry a provider write. This clarifies the practical meaning of destructiveHint=true and openWorldHint=true in terms of real consequences.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the code-relay rule; every later sentence carries distinct routing or status information. It is a dense, multi-clause paragraph rather than a broken-up structure, which slightly slows scanning but wastes no content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with a nested authorization object and an output schema, the description covers the missing pieces an agent needs: authorization prerequisites, status semantics (booking_pending, payment_required, payment_in_flight), and the no-retry guarantee. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and most of the description's parameter guidance ('relay only the customer-supplied code, never generate or fetch it') restates the code property's own description. The booking_authorization note adds some operational meaning (relay the reference only after the customer accepts the stored summary), but the 'required for Calendly' condition is already in the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource tied to a named sibling: 'Confirm a reservation made with reserve_slot.' An agent immediately knows the precursor action and the resource being mutated, distinguishing this from reserve_slot and create_booking_payment_link.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use this after reserve_slot, and for paid bookings (payment.required = true) this tool answers payment_required/payment_in_flight instead of confirming, so pay via create_booking_payment_link. It also states the correct behavior for booking_pending (repeat later to check stored outcome) and forbids generating, guessing, or fetching the code.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources