Skip to main content
Glama

Get checkout link

get_purchase_link
Read-onlyIdempotent

Use when the traveler has chosen a plan and wants to buy it. Returns a link straight to the checkout confirmation screen with the plan and days filled in. The traveler pays there themselves (no account or app needed, just an email address); this tool never takes payment. The QR code and one-tap install link are emailed and shown in My Page right after payment.

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_id": "<plan_id>"
    },
    "name": "get_purchase_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoTrip length in days. Needed for daily plans (sets how many days are bought); ignored for fixed-GB plans.
langNoLanguage of country names, reasons and of the checkout page the link opens: en, ja, zh-cn, zh-tw, ko, es or fr. Default en. The language never changes which plan or what price is returned: every plan carries price_jpy and price_usd (both always present) and price_as_of.
plan_idYesRequired. The plan_id of the chosen plan, from recommend_plan or search_plans.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / days / description
      Previous value: -"Trip length (needed for daily plans)."New value: +"Trip length in days. Needed for daily plans (sets how many days are bought); ignored for fixed-GB plans."
    • changedInput schema / properties / lang / description
      Previous value: -"Language for names and for the purchase page. Default en when omitted. The language never changes which plan or what price is returned: every plan carries price_jpy and price_usd (both always present)."New value: +"Language of country names, reasons and of the checkout page the link opens: en, ja, zh-cn, zh-tw, ko, es or fr. Default en. The language never changes which plan or what price is returned: every plan carries price_jpy and price_usd (both always present) and price_as_of."
    • addedInput schema / properties / plan_id / description
      Added value: +"Required. The plan_id of the chosen plan, from recommend_plan or search_plans."
  2. Changed1 schema field changed
    • changedInput schema / properties / lang / description
      Previous value: -"Language for names and for the purchase page. Default en."New value: +"Language for names and for the purchase page. Default en when omitted. The language never changes which plan or what price is returned: every plan carries price_jpy and price_usd (both always present)."
  3. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the bar is lower. The description nonetheless adds real value beyond them: it says the traveler pays on the linked page, that no account or app is needed (email only), that this tool never takes payment itself, and that the QR code and install link arrive after payment. These are useful operational and post-condition details, but it omits anything about link expiry, regeneration, or whether calling it repeatedly yields the same link.

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?

Four short sentences, front-loaded with the 'Use when' trigger followed by output, then payment model, then post-payment delivery. No sentence is redundant and nothing is buried.

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?

With no output schema, the description usefully explains what the returned string actually is (a checkout link) and what happens downstream. It is sufficient to call the tool correctly, though it could say whether the link is single-use or expiring given it is a purchase-path artifact.

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%, so all three parameters (plan_id, days, lang) are already fully documented, including the rule that days is ignored for fixed-GB plans. The description only echoes that plan and days get filled into the link. Baseline 3 is appropriate when the schema carries the parameter detail.

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?

States a concrete verb+resource: returns a checkout link with plan and days pre-filled. The trigger ('traveler has chosen a plan and wants to buy it') implicitly separates it from plan-discovery tools like recommend_plan and search_plans, but no sibling is named explicitly, so differentiation is inferred rather than stated.

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

Usage Guidelines4/5

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

Gives a clear precondition for use ('traveler has chosen a plan and wants to buy it'), which implies the earlier discovery tools come first. It stops short of naming a when-not-to-use case or an explicit alternative, so it is clear context without full routing guidance.

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