Skip to main content
Glama

Confirm booking status

confirm_booking
Read-onlyIdempotent

Check the payment status of a booking created by prepare_booking. Read-only and idempotent: repeat calls with the same idempotencyKey return the same state, and it creates nothing and confirms nothing by itself. Usage: call this after prepare_booking, and again after the customer reports paying, until the status is confirmed or expired. Report whether a prepared booking is confirmed by payment, still awaiting payment, or expired; it never confirms a booking itself. Once paid, it returns the Meet link, receipt link, a calendar event with ICS and stable UID, and agent instructions; it returns no management link. QConsul also emails the customer the calendar invitation; the agent reports the booking to its customer and deduplicates any calendar entry on the UID.

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": {
      "prepareToken": "<prepareToken>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "confirm_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
prepareTokenYesThe prepareToken returned by prepare_booking for the booking being checked. Required; there is no other way to look a booking up.
idempotencyKeyYesA unique key you choose for this check, e.g. a UUID. Repeat calls with the same key return the same state; use a new key only for a new check after time has passed.

Output Schema

NameRequiredDescriptionDefault
statusNo
messageNo
calendarNo
meetLinkNo
bookingNumberNo
holdExpiresAtNo
paymentReceiptUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Key chosen by the agent; repeat calls return the same state."New value: +"A unique key you choose for this check, e.g. a UUID. Repeat calls with the same key return the same state; use a new key only for a new check after time has passed."
    • changedInput schema / properties / prepareToken / description
      Previous value: -"prepareToken returned by prepare_booking."New value: +"The prepareToken returned by prepare_booking for the booking being checked. Required; there is no other way to look a booking up."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "bookingNumber": {},
      +    "calendar": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "ics": {},
      +        "uid": {}
      +      },
      +      "type": "object"
      +    },
      +    "holdExpiresAt": {},
      +    "meetLink": {},
      +    "message": {},
      +    "paymentReceiptUrl": {},
      +    "status": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover readOnly, idempotent, and non-destructive traits, but the description adds substantial context beyond them: idempotencyKey reuse semantics, the exact payload returned on payment (Meet link, receipt link, calendar event with ICS and stable UID, agent instructions), the deliberate absence of a management link, and the fact that QConsul separately emails the customer the calendar invite with a dedupe requirement on the UID.

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?

Well front-loaded and information-dense, but it repeats the same point twice in slightly different words ('it creates nothing and confirms nothing by itself' and 'it never confirms a booking itself'). Tightening that duplication would make it fully lean.

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?

Even though an output schema exists and return details were not strictly required, the description covers the status states, the post-payment payload, and the customer-facing invite side effect. For a polling/status tool with two required params, nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the schema documents both parameters; the baseline would be 3. The description earns an extra point by grounding prepareToken in its origin ('created by prepare_booking') and reinforcing idempotencyKey semantics, though it largely restates what the schema fields already say.

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?

The description opens with a specific verb and resource, 'Check the payment status of a booking,' and immediately ties it to its predecessor tool, prepare_booking. It also negates the likely confusion ('it never confirms a booking itself'), so an agent can tell it apart from prepare_booking without opening the schema.

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?

Sequencing is explicit: call after prepare_booking, and again after the customer reports paying, looping until the status is confirmed or expired. The description also states the boundary condition that it cannot complete a booking, removing any inference about escalation.

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