Skip to main content
Glama

Start eSIM checkout

esim_start_checkout

Start an order for a plan from esim_find_plans and get a checkout link for the person, for one traveler or a family pack of up to 6. Nothing is charged here. The person must open the link, confirm their phone number in NUM, and pay on Stripe themselves. Ask the person before calling this.

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>",
      "destination": "<destination>"
    },
    "name": "esim_start_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesA plan id from esim_find_plans.
travelersNoHow many people need an eSIM on this plan (a family pack): one checkout, one eSIM per phone, each with its own install link. 3 or more people save 5% each, 5 or more save 8%. Defaults to 1.
destinationYesThe same destination used to find the plan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / travelers
      Added value: +{
      +  "description": "How many people need an eSIM on this plan (a family pack): one checkout, one eSIM per phone, each with its own install link. 3 or more people save 5% each, 5 or more save 8%. Defaults to 1.",
      +  "maximum": 6,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description goes well beyond them by disclosing that nothing is charged at this step, that payment happens out-of-band on Stripe, and that the person must confirm their phone number. It does not address the idempotentHint=false consequence (what a second call produces) and the token 'NUM' reads as an opaque placeholder.

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?

Four short sentences, front-loaded with the action and the returned link, followed by cost, payment flow, and consent in decreasing order of importance. Minimal waste, though 'confirm their phone number in NUM' introduces an opaque token that costs a little clarity.

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 correctly tells the agent what it receives (a checkout link), who must act on it, and that no money moves yet — the essentials for a non-destructive checkout-starter. Missing is what happens to duplicate calls or link expiry, which matters given idempotentHint=false.

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 the schema already documents plan_id, destination and travelers including the volume discounts. The description only restates the 1-to-6 travelers range and adds no format or sourcing detail beyond 'a plan from esim_find_plans', so baseline 3 applies.

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?

States a specific verb and resource ('Start an order for a plan') plus the concrete artifact returned ('get a checkout link'), and anchors it to the upstream sibling esim_find_plans. An agent can tell this apart from plan search and from status tracking without opening the schema.

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 an explicit precondition ('Ask the person before calling this') and scopes usage to a plan already returned by esim_find_plans and to 1-6 travelers. It does not explicitly say when NOT to call it (e.g., repeat calls, existing pending order), but the consent gate is the critical guidance and it is stated plainly.

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