Skip to main content
Glama

purchase_topup

Purchases a compatible top-up package using the wallet balance. Requires a valid session token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenNoThe secure session token returned by verify_agent_otp.
orderIdYesThe ID of the active eSIM order.
packageCodeYesThe top-up package code to purchase.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNo
isErrorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "content": {
      +      "items": {
      +        "properties": {
      +          "text": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "text"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "isError": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the mutation profile is covered. The description adds two useful facts beyond them — that funds come from the wallet balance and that a valid session token is required. It does not warn about the non-idempotency consequence (a retry can charge twice) or what happens on insufficient balance, which matters for a purchase tool.

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?

Two short sentences, front-loaded with the core action and scope; no filler or restated title. It could be slightly tighter by folding the token requirement, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and annotations cover the safety profile. Still, for a wallet-charging, non-idempotent purchase the description omits failure modes (insufficient balance, invalid/expired token) and the double-purchase risk, leaving an agent without guidance for the most consequential edge cases.

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% — token, orderId and packageCode are each documented in the schema, including the pointer to verify_agent_otp. The description adds no parameter-level detail (e.g., how to obtain packageCode or that orderId must reference an active order), so the baseline of 3 applies.

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 specific verb and resource ('Purchases a ... top-up package') and clarifies the funding source ('using the wallet balance'), which separates it from get_topup_packages (read) and purchase_esim_with_wallet (a different purchase). It does not explicitly name those siblings, so an agent must infer the boundary rather than being told it.

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

Usage Guidelines3/5

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

Usage is only implied: 'compatible top-up package' hints the agent should first resolve available packages (get_topup_packages) and that the package must match the active order, but no explicit when-to-use, prerequisites, or alternative is named. No guidance on the relationship to purchase_esim_with_wallet either.

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