Skip to main content
Glama

topup_esim

Destructive

Adds more data (and on some plans voice/SMS) to an existing eSIM the user already owns, without issuing a new eSIM. This SPENDS the wallet balance and cannot be undone. First call get_topup_options with the same ICCID to get valid top-up package codes and prices, then pass one here. Use when a user wants to extend an eSIM that is running low rather than buy a new one. Requires a connected agent wallet (OAuth or ak_live_ key).

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": {
      "iccid": "<iccid>",
      "packageCode": "<packageCode>"
    },
    "name": "topup_esim"
  }
}

Input Schema

NameRequiredDescriptionDefault
iccidYesThe ICCID of the eSIM to top up (from list_orders or a prior purchase)
promoCodeNoOptional promo/discount code. Validated server-side; an invalid code rejects the top-up with the reason (nothing is charged). Only pass a code the user explicitly provided.
requestIdNoIdempotency key: generate a fresh UUID for each NEW top-up, and reuse the SAME value when retrying after a timeout or transport error — an identical retry returns the original top-up instead of charging again.
packageCodeYesA top-up package code returned by get_topup_options for this ICCID (top-up codes differ from new-purchase codes)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / requestId
      Added value: +{
      +  "description": "Idempotency key: generate a fresh UUID for each NEW top-up, and reuse the SAME value when retrying after a timeout or transport error — an identical retry returns the original top-up instead of charging again.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / promoCode
      Added value: +{
      +  "description": "Optional promo/discount code. Validated server-side; an invalid code rejects the top-up with the reason (nothing is charged). Only pass a code the user explicitly provided.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / iccid / description
      Previous value: -"ICCID of the eSIM to top up"New value: +"The ICCID of the eSIM to top up (from list_orders or a prior purchase)"
    • changedInput schema / properties / packageCode / description
      Previous value: -"Top-up package code"New value: +"A top-up package code returned by get_topup_options for this ICCID (top-up codes differ from new-purchase codes)"
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond annotations, it discloses the key consequences: the tool spends wallet balance, cannot be undone, requires a connected agent wallet via OAuth or ak_live_ key, and must follow get_topup_options for valid pricing/codes. This gives the agent the financial and authentication context it needs before invoking a destructive action.

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?

The description is four dense sentences with no filler, front-loading the action, financial consequence, prerequisite workflow, and authentication requirement in that order. Every sentence carries operational value.

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?

It covers the destructive financial action, wallet/auth prerequisite, and required lookup workflow thoroughly. Since there is no output schema, a short note about what a successful top-up returns would make it fully complete, but the definition is otherwise sufficient to invoke the tool correctly.

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

Parameters4/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 iccid, promoCode, requestId, and packageCode. The description adds a useful cross-tool constraint: the ICCID must match the one used for get_topup_options and packageCode must come from that lookup, which goes beyond the schema text.

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 description states a specific action (adds data/voice/SMS to an existing eSIM), a clear scope (without issuing a new eSIM), and distinguishes the tool from buying a new eSIM. It also names get_topup_options as the prerequisite lookup tool, so an agent can route correctly without guessing.

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?

It explicitly says when to use this tool (extend an eSIM that is running low rather than buy a new one) and gives the prerequisite sequence: first call get_topup_options with the same ICCID, then pass one package code here. The wallet/auth requirement is also stated up front.

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