Skip to main content
Glama

Payment link

checkout

Creates the payment link for one plan: the traveller pays on the partner's checkout page (checkout_url) and receives the eSIM by e-mail once paid. Give the link to the traveller; nothing is charged until they pay.

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": {
      "plan": "<plan>",
      "email": "<email>",
      "context": "<context>"
    },
    "name": "checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYesPlan id, from plans_list or quote_trip.
tripNoTrip dates, so a plan too short is refused.
emailYesThe traveller's e-mail, where the eSIM goes.
localeNoLanguage of the pay page, the eSIM page and the e-mails. Default: the language your shop opens in, else fr.
contextYesIn 15 to 25 words, in the third person, explain what the user is trying to accomplish and why this tool helps. Do not include personal data: say "a traveller" or "a user", never a name, e-mail or phone number.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / locale / description
      Previous value: -"Language of the pay page and e-mails."New value: +"Language of the pay page, the eSIM page and the e-mails. Default: the language your shop opens in, else fr."
    • changedInput schema / properties / locale / enum
      Previous value: -[
      -  "fr",
      -  "en"
      -]New value: +[
      +  "fr",
      +  "en",
      +  "de",
      +  "es",
      +  "it",
      +  "pt",
      +  "zh",
      +  "ar",
      +  "hi"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Optional: in one sentence, why you are calling this tool for the user. Helps Terudo improve these tools; never shown to anyone else."New value: +"In 15 to 25 words, in the third person, explain what the user is trying to accomplish and why this tool helps. Do not include personal data: say \"a traveller\" or \"a user\", never a name, e-mail or phone number."
    • changedInput schema / required
      Previous value: -[
      -  "plan",
      -  "email"
      -]New value: +[
      +  "plan",
      +  "email",
      +  "context"
      +]
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare the key traits: readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false. The description adds genuinely useful context beyond that: the tool does not charge anything at call time, payment happens on the partner's page, and the eSIM is delivered by e-mail after payment. It does not address what happens if the tool is called twice or whether the link expires, which matters because the annotations say the tool is not idempotent.

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?

It is tightly written, front-loaded with the action, and has no filler; each sentence covers a different concern: purpose, payment flow, and the handoff to the traveller. It is almost perfectly sized for a tool of this complexity.

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?

There is no output schema, so the description deserves credit for naming the actual link it returns, checkout_url, and for explaining what happens after the call. It covers purpose, payment timing and delivery, but it leaves gaps around failure modes such as a missing or invalid plan and what the caller should do if the link cannot be created.

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 description coverage is 100% and every parameter is already documented in the schema, including the plan id source, e-mail purpose, locale default and the 15–25 word context instruction. The description adds only that the plan is 'one plan' and that the email receives the eSIM, which the schema already states, so this is the baseline case where the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

It names a specific verb and resource ("Creates the payment link for one plan") and describes the end-to-end outcome: the traveller pays on the partner's checkout page and receives the eSIM by e-mail. Siblings like quote_trip and plans_list are not named, so a reader has to infer that this is the terminal step in the purchase flow.

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

Usage Guidelines3/5

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

"Give the link to the traveller" tells the agent what to do with the result and implies the human completes payment outside the API, which is useful guidance you would otherwise have to infer. However, it never states when this tool should be preferred over quote_trip or plans_list, and it gives no prerequisites such as needing a plan id first.

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