Skip to main content
Glama

Create eSIM checkout link

create_checkout

Buy the chosen eSIM data plan: builds a cart and returns a checkout URL the traveller opens to pay by credit card on hungry-esim.com — no crypto wallet and no API key needed. Use once a plan is picked. Does NOT charge — the user completes payment on the website. For unlimited plans, period_num (how many days of data the traveller wants) is required. If the customer is signed in, the order is linked to their account automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of eSIMs, default 1
emailNoGuest email — prefills checkout so it skips the details step. Ignored when the customer is signed in (their account email is used). Never determines which account the order belongs to.
countryYesCustomer's CHECKOUT country (ISO alpha-2) — sets checkout region/currency and URL locale. NOT the eSIM's coverage country. If the store doesn't serve it, the store's default region is used.
period_numNoDays for unlimited plans (1-90; each plan states its own maximum). Required for unlimited, ignored otherwise.
variant_idYesVariant id from search_esim_plans

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / period_num / description
      Previous value: -"Days for unlimited plans (1-30). Required for unlimited, ignored otherwise."New value: +"Days for unlimited plans (1-90; each plan states its own maximum). Required for unlimited, ignored otherwise."
    • changedInput schema / properties / period_num / maximum
      Previous value: -30New value: +90
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations mark this non-readOnly and non-destructive; the description adds real context beyond them — the cart/checkout-URL flow, that no charge occurs and payment happens externally, that no API key is needed, and that signed-in orders are auto-linked. It does not state auth requirements or URL expiry, which keeps it from a 5.

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 key behavior (returns a URL, does not charge) is front-loaded and most sentences carry distinct information. It runs slightly long with overlapping reassurances ('no crypto wallet and no API key needed') and the signed-in note, but nothing is truly wasteful.

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?

With no output schema, the description compensates by describing the return value (checkout URL), the payment flow, guest-vs-signed-in behavior, and the unlimited-plan parameter requirement. An agent has enough to invoke it correctly end to end.

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%, so the schema already documents all five parameters including period_num's unlimited-plan rule. The description echoes the period_num requirement but adds no syntax or format detail beyond the structured fields, 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 ('builds a cart and returns a checkout URL'), and its scope is distinguishable from siblings like search_esim_plans and get_order_status. It explicitly names the plan-search sibling as the source of variant_id, so an agent can place it in the workflow without opening another 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?

'Use once a plan is picked' gives clear triggering context and the description routes the agent from search_esim_plans. It also states the boundary 'Does NOT charge', but does not spell out when an alternative (e.g. topup_esim for existing eSIMs) should be preferred instead.

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.