Skip to main content
Glama

Wait for the payment

wait_for_payment
Read-only

Like get_booking_status, but holds the request open (up to 25 seconds) and returns as soon as the booking is paid. Call it after handing the buyer the payment_url instead of polling in a loop; repeat while status is still awaiting_payment and the hold has time left.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoLanguage for titles, labels and the returned URLs. Defaults to fr.
booking_uuidYes
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

A4.6/5.0
Behavior5/5

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

Even with readOnlyHint=true already in annotations, the description adds meaningful behavioral detail: it holds the request open, has a maximum hold time, returns as soon as the booking is paid, and implies a retry loop condition. This goes well beyond what the annotation conveys and sets accurate expectations for long-polling behavior.

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 compact and front-loaded: the first sentence defines the behavior, and the second provides actionable usage. Every sentence contributes practical value with no filler.

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?

Given the output schema exists and this is a read-only long-polling tool, the description covers the essential operational context: when to call, what triggers a return, and the retry condition. The 'after handing the buyer the payment_url' guidance anchors it in the booking flow.

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

Parameters2/5

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

Schema description coverage is only 33%, and the description does little to compensate. It indirectly references the timeout concept with 'up to 25 seconds' and 'the hold has time left', but it does not explain booking_uuid, locale, or timeout_seconds as parameters. An agent would have to infer most parameter meanings from context.

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 clearly states the tool's purpose: it waits for a booking to be paid, holding the request open up to 25 seconds and returning as soon as payment occurs. It also explicitly differentiates itself from the sibling get_booking_status by contrasting its long-polling behavior.

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?

The description gives explicit, practical guidance: call it after handing the buyer the payment_url, use it instead of polling in a loop, and repeat while the status is still awaiting_payment and the hold has time left. This makes the intended usage unambiguous.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Most tools target distinct steps in the booking lifecycle, but get_booking_status and wait_for_payment serve nearly the same purpose, and get_event/list_events/get_availability all surface availability. Descriptions are strong enough to prevent frequent misselection.

Naming Consistency5/5

All tools use a consistent verb_noun snake_case pattern (get_*, hold_tickets, redeem_*, release_booking, set_contact, wait_for_payment). There are no style or naming convention breaks.

Tool Count5/5

Twelve tools map cleanly to the ticket-buying workflow: discovery, venue info, availability, hold, contact, payment, redemption, release, status, and recovery. Each tool earns its place without redundant bulk.

Completeness4/5

The lifecycle is well covered: hold, contact, payment, redemption, release, and post-sale recovery are all present. The only notable gap is lack of any cancellation/refund path for paid bookings, though this may be intentional venue policy.

Resources