Skip to main content
Glama

Zestli

Ask Someone To Pay

ask_someone_to_pay

Sends one adult an email with a secure link to pay for the user's own booking proposal, and records that payment request. It fits when the user says someone else (a parent, partner or sponsor) will pay, and when the user is under 18, because a parent or legal guardian pays for their bookings. Requires the user's own connected Zestli account and a proposal_id from initiate_booking (operator offerings, hotels or flights; the offering's party rules still apply). The payer signs in with that email on Zestli's page, sees a fresh price and the deadline, and pays as themselves; the user keeps the booking. Nothing is charged until that adult pays there, the payer's card is never shared, and the user never becomes the payer. Returns the request's status and request_id. A request to the same payer_email for the same proposal_id is sent once: calling again with them reads the request's current status and sends no email. Once paid, the status is completed, with booking_id, booking_reference (ZST-...), the booking's status and paid_by_someone_else with the amount paid; get_booking_status reads the same booking later. withdraw=true cancels the request and its link stops working; ask_again=true sends a new request to the same person after a decline or withdrawal. Zestli sets the payer's role from the user's age on their account: for a person under 18 the payer confirms they are the parent or legal guardian; otherwise they pay as a sponsor. For a person aged 13-17 the proposal's party includes them at their own age (child_ages for a hotel or flight, or a rate option whose age range fits them) and meets the offering's age and adult rules; a payer who isn't traveling does not count as the accompanying adult. Each new proposal is a separate purchase with its own request.

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": "ask_someone_to_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYesWho should pay for which proposal, or a withdrawal.

Output Schema

NameRequiredDescriptionDefault
statusNo
messageNo
booking_idNo
error_codeNo
expires_atNo
is_sandboxNo
request_idNo
proposal_idNo
relationshipNo
booking_statusNo
payer_email_hintNo
booking_referenceNo
paid_by_someone_elseNo

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 (readOnlyHint=false, openWorldHint=true, destructiveHint=false), the description discloses the money-safety contract: nothing is charged until the adult pays, the payer's card is never shared, the user never becomes the payer. It describes the full state machine — pending, declined/withdrawn, completed with booking_id, booking_reference, and paid_by_someone_else amount — plus the dedupe rule for repeated calls and the age-driven role assignment (guardian vs sponsor). This is state-changing, real-money behavior disclosed in detail, which the annotations alone would not convey.

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

Conciseness3/5

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

The core action is front-loaded in sentence one and the ordering (what it does, when to use, effects, repeat-call rules, statuses, age rules) is logical. However, it is a dense, long run of sentences with some restatement, e.g. 'pays as themselves; the user keeps the booking' and 'the user never becomes the payer' cover similar ground. The closing line about each new proposal being a separate purchase is useful but sits far from the related proposal_id discussion.

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?

This is a high-stakes, open-world mutation with a nested request object, and the description covers prerequisites, side effects, dedupe behavior, withdrawal/re-send semantics, resulting statuses and identifiers, and the under-18 party/age-rule constraints. Although an output schema exists (so return values need not be explained), the description still names the key returned fields, which only helps an agent confirm success. Nothing material needed to call this 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% and each nested property already has its own description, so the baseline is 3. The description adds cross-parameter meaning the schema cannot express: the same payer_email + proposal_id pair is sent only once and a repeat call degrades to a status read, withdraw stops the link from working, and ask_again is only valid after a decline or withdrawal. It does not add format details for payer_email (the schema's pattern covers that), which keeps it at 4 rather than 5.

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 opening sentence gives a precise verb, resource and scope: it sends one adult an email with a secure payment link for the user's own booking proposal and records the request. It distinguishes itself from named siblings by requiring a proposal_id from initiate_booking and by noting get_booking_status is the way to read the booking afterwards. An agent can tell exactly what this tool does and what it does not do (it never charges, never makes the user the payer).

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 states explicit triggering conditions (the user says someone else will pay; the user is under 18 and a parent/guardian pays) and prerequisites (own connected Zestli account, a proposal_id from initiate_booking, offering party rules still apply). It also states when-not/alternative behavior: a repeat call with the same payer_email and proposal_id only reads status, withdraw=true cancels, ask_again=true re-sends after a decline or withdrawal. The only gap is that it does not name a sibling to use instead for unrelated payment scenarios, but the in-tool branching guidance is unusually complete.

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