Skip to main content
Glama

getBooking

Read-only

Get one booking by bookingId. Get bookingId from getBookings. Never invent UUIDs; only use values from prior tool responses.

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": {
      "bookingId": "<bookingId>"
    },
    "name": "getBooking"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookingIdYesID of the booking. For a single occurrence of a repeating booking, append the occurrence date: `<bookingId>_<ISO date>`.

Output Schema

NameRequiredDescriptionDefault
bookingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / properties / booking / properties / request / properties / ticketRef
      Removed value: -{
      -  "description": "ID of the ticket that holds the conversation between the person and the administrators.",
      -  "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"
      -}
  2. Changed2 schema fields changed
    • addedOutput schema / properties / booking / properties / payments / items / properties / method / properties / paymentGateway / properties / inPerson
      Added value: +{
      +  "description": "Present and true when an administrator took the payment in person with Tap to Pay on their phone, which has no checkout page to complete.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / booking / properties / scheduledPayment / properties / method / properties / paymentGateway / properties / inPerson
      Added value: +{
      +  "description": "Present and true when an administrator took the payment in person with Tap to Pay on their phone, which has no checkout page to complete.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / properties / booking / properties / orderRef / description
      Previous value: -"ID of the shop order for the add-ons bought with the booking. Omitted when the caller has no access."New value: +"ID of the shop order for the cross-sells bought with the booking. Omitted when the caller has no access."
  4. Changed1 schema field changed
    • addedOutput schema / properties / booking / properties / partialRefunds
      Added value: +{
      +  "description": "Shares of the payment refunded when the booking is canceled after refundThreshold has passed, copied from the resource's refund policy when the booking was made. Omitted when there are none.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "percent": {
      +        "type": "number"
      +      },
      +      "value": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "percent",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / booking / properties / orderRef
      Added value: +{
      +  "description": "ID of the shop order for the add-ons bought with the booking. Omitted when the caller has no access.",
      +  "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"
      +}
  6. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false and non-destructive, so the description adds the meaningful extra rule that IDs must originate from prior tool responses. It does not describe failure behavior for a missing or invalid ID, which keeps it from a 5.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action, followed by the sourcing rule. No filler or restatement of the title.

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

Completeness4/5

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

One required parameter with full schema coverage, an output schema handling return values, and annotations covering safety — the description fills the remaining gaps adequately. Minor missing piece is what happens when the booking is not found.

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% and the schema already documents the `<bookingId>_<ISO date>` occurrence convention, so the baseline is high. The description still adds provenance semantics — where a valid ID comes from and that invented values are forbidden — which is genuine meaning beyond the schema.

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?

Names a specific verb and resource ("Get one booking") and pins the scope to a single record via bookingId, which cleanly separates it from the plural sibling getBookings. An agent can distinguish it without opening either schema.

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

Usage Guidelines4/5

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

Gives explicit prerequisite guidance: retrieve the ID from getBookings first and never fabricate UUIDs. It stops short of stating exclusions or error cases (e.g. unknown bookingId), but the when-to-use context is clear.

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