Skip to main content
Glama

esimker eSIM store

purchase_esim

Idempotent

Charge the wallet and issue an eSIM, no checkout. client_ref (1–64 chars) is your own reference for this purchase and makes the call idempotent: a retry with the same value returns the existing order without a second charge, so reuse it after a timeout and never invent a new one for the same purchase. period_num (1–365, default 7) only for daily_unlimited plans; the charge is price × days. topup_iccid with a plan_id from list_topups tops up an eSIM. Returns the order (status paid) with order_url; poll get_order(token) for ready and the activation code. A 402 is a short balance: create_deposit first. A wallet pays for at most 50 orders in 24 hours (429 beyond that; a retry answered from client_ref does not count). Needs the wallet code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoen
emailNo
plan_idYes
client_refYes
period_numNo
topup_iccidNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description explains the idempotency MECHANISM (client_ref reuse returns existing order without second charge), the 429 rate limit (50 orders/24h per wallet), the 402 error meaning, and the pricing rule (price × days). These are behavioral facts the annotations cannot convey. No contradiction with annotations.

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?

Dense but front-loaded and waste-free: the core purpose leads, followed by idempotency, parameter semantics, return flow, error handling, rate limit, and prerequisite. Every sentence carries operational value for a tool with this many behavioral gotchas; nothing is filler.

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?

For a 6-parameter mutating tool with idempotency, rate limits, plan-specific pricing, and an error path, the description covers the full call lifecycle: prerequisite (wallet code), action, parameter constraints, response handling (poll get_order), failure handling (402 → create_deposit), and throttling (429). The existence of an output schema relieves it from documenting return shape in detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it delivers: client_ref gets length, purpose, and idempotency semantics; period_num gets range, default, applicability (daily_unlimited only), and cost formula; topup_iccid gets its pairing with list_topups that an agent could not derive from the bare schema titles. Minor gaps remain for lang/email and the source of plan_id in the non-topup path, but the semantically critical parameters are fully explained.

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 clause 'Charge the wallet and issue an eSIM, no checkout' names a specific action and resource and immediately distinguishes this direct-purchase path from the checkout flow (create_checkout). The purpose is unmistakable even before reading parameter details.

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?

The description names concrete alternatives with their trigger conditions: 'create_deposit first' on a 402 short-balance, 'plan_id from list_topups' to top up, and 'poll get_order(token)' after purchase. 'No checkout' and 'Needs the wallet code' frame when this tool is and is not the right choice. Nothing is left to inference.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool maps to a distinct entity or action: destinations, plans, checkout, wallet purchase, deposits, wallet, orders, usage, top-ups, and payment methods. create_checkout and purchase_esim both place orders but are clearly differentiated by funding source and explicitly cross-referenced in descriptions.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern: create_*, get_*, list_*, search_*, purchase_esim. There are no mixed conventions or vague verbs.

Tool Count5/5

12 tools is well-scoped for an eSIM storefront plus wallet subsystem. Each tool has a distinct role, and none feel redundant or excessive.

Completeness4/5

The set covers destination discovery, plan selection, checkout and wallet purchases, order tracking, wallet funding, top-ups, and usage checks. Minor gaps exist around cancellation/refund flows and listing non-wallet orders, but the core lifecycle is well covered.

Resources