Skip to main content
Glama

Refund an eligible top-up

refund_wallet_topup
Destructive

Refunds an eligible first-eSIM wallet top-up to the card. Input is transaction_id of an eligible top-up. Returns the refund result. Every client refunds nothing until confirm is true.

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "refund_wallet_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoOmitted returns a preview on every client. True charges.
transaction_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / confirm / description
      Previous value: -"On Claude or ChatGPT, omitted returns a preview. True charges."New value: +"Omitted returns a preview on every client. True charges."
  2. Changed1 schema field changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "On Claude or ChatGPT, omitted returns a preview. True charges.",
      +  "type": "boolean"
      +}
  3. Added
  4. Removed
  5. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Beyond the annotations, the description explains the critical confirm-gating behavior: every client refunds nothing until confirm is true, and omitting confirm returns a preview. It also states that the tool returns a refund result. It does not add details about permissions, failure modes, or irreversibility, but the destructiveHint annotation already covers the destructive nature.

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 description is short and front-loaded, starting with the operation and then covering input and confirmation behavior. It is mostly efficient, though the sentence about returning the refund result is somewhat redundant and the confirm-gating sentence could be cleaner.

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?

For a destructive mutation tool with no output schema, the description covers the essential confirm behavior but leaves significant gaps around eligibility rules, how to find a valid transaction_id, and what the refund result contains. The annotations provide safety context, but the description does not fully complete the picture for an agent to invoke this confidently.

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 only 50%: confirm is documented in the schema, while transaction_id has no schema description. The description compensates slightly by saying input is the transaction_id of an eligible top-up, but it does not specify the ID format, eligibility criteria, or how to obtain one.

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?

The description names a specific verb and resource: it refunds an eligible first-eSIM wallet top-up to the card. That is clear enough for an agent to know the operation, but it does not distinguish itself from related siblings such as list_wallet_refunds or explain_charges.

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

Usage Guidelines2/5

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

The description implies the tool is for eligible top-ups but gives no when-to-use guidance, no exclusions, and no alternatives. It does not tell the agent how to determine eligibility or where to obtain a valid transaction_id, and it never mentions sibling tools that might help locate an eligible refund.

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.