Skip to main content
Glama

Create Booking Payment Link

create_booking_payment_link
Read-onlyIdempotent

For a reservation that reserve_slot returned with payment.required = true: returns the MPP payment link, the amount charged now, and the balance due at the visit. The agent pays it itself (HTTP 402 challenge, then the person's wallet credential); no code is sent to the customer for a paid booking. A free booking answers not_payable — confirm it with confirm_booking and the customer's code instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesBusiness slug identifier
reservation_idYesThe reservation_id reserve_slot returned with payment.required = true

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
currencyYes
expires_atYesUnix seconds after which the reservation lapses unpaid
amount_centsYesMinor units charged now
due_at_visitYes
instructionsYes
payment_linkYesPOST here (no body) to receive the HTTP 402 MPP challenge
balance_due_centsYesMinor units due at the visit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive. The description adds meaningful behavioral context: the agent itself pays via an HTTP 402 challenge using the person's wallet credential, and no code is sent to the customer for paid bookings. It also clarifies the not_payable response for free bookings. This goes beyond annotations without contradicting them.

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?

The description is three sentences, concise and front-loaded with the trigger condition. It includes essential behavioral details (payment mechanism, free-booking alternative) without redundancy, so each sentence earns its place.

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?

Given the tool's complexity (payment flow) and that an output schema exists, the description covers the trigger, the return values, and the alternative for free bookings. It also explains the payment process. The output format is not detailed, but that is covered by the output schema, so nothing critical is missing for an agent to invoke it correctly.

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% for both parameters, and the description only reiterates that reservation_id comes from reserve_slot with payment.required = true, which is already in the schema description. No new semantics are added beyond what the schema provides, so the baseline of 3 is appropriate.

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 the specific purpose: for a reservation with payment.required = true, it returns the payment link, amount charged now, and balance due. It explicitly distinguishes this from confirm_booking by noting that free bookings (not_payable) should use confirm_booking instead. The condition is precise, so an agent can clearly identify when this tool applies.

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 gives explicit when-to-use guidance (reserve_slot returned payment.required = true) and when-not-to-use (free bookings answer not_payable), and names the alternative tool (confirm_booking). This is complete routing information with no ambiguity.

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.