Skip to main content
Glama

Zestli

Confirm Booking

confirm_booking

Use this when the user asks to continue an owned, unexpired proposal. Without payment it returns the secure hosted checkout handoff and charges nothing: that page verifies the user, shows the current price and cancellation terms, and collects the lead guest, approval and payment. After the user paid there, call it again with the proposal_id: it returns the booking and charges nothing. With payment (a Stripe shared payment token your platform issued for this purchase with the user's approval) it charges that token for the exact quoted total and returns the booking outcome; a changed total charges nothing (TOTAL_CHANGED). For a person under 18 it returns status guardian_must_pay, charges nothing and gives no checkout: use ask_someone_to_pay instead.

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

Input Schema

NameRequiredDescriptionDefault
requestYesInput for confirming a booking proposal.

Output Schema

NameRequiredDescriptionDefault
statusNo
messageNo
segmentsNo
booking_idYes
error_codeNo
is_sandboxNo
respond_byNo
checkout_urlNo
booking_referenceNo
financial_summaryNo
notification_configNo
supplier_referencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses charging behavior, the hosted checkout handoff, the TOTAL_CHANGED no-charge case, and the guardian_must_pay status. These are substantive behavioral details that an agent needs in order to predict the tool's effects.

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?

The description is front-loaded with the primary use case and then branches efficiently through no-payment, post-payment, token-payment, and under-18 outcomes. Despite its length, every sentence carries distinct operational information.

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 complex nested tool with an output schema and annotations, the description covers the main decision paths, charging outcomes, status cases, and the key alternative tool. Nothing critical for correct invocation appears to be missing.

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 the nested payment fields are already richly documented. The description reinforces payment behavior and the proposal_id repeat-call pattern, but it does not add much parameter meaning beyond what the schema already states.

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 states a specific verb and resource: confirm an owned, unexpired booking proposal. It distinguishes the no-payment, post-payment, payment-token, and under-18 paths, and names ask_someone_to_pay for the under-18 case.

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?

It explicitly says when to use the tool, what each mode does, when to call it again after payment, and when to use ask_someone_to_pay instead. The alternatives and exclusions are 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