Skip to main content
Glama

Top up with a saved card

topup_with_saved_method
Destructive

Charges a saved card and adds the amount to this wallet. Omitting payment_method_id charges the default saved card. Every client charges nothing until confirm is true. idempotency_key repeats the same top-up result instead of charging again.

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": {
      "amount": "<amount>"
    },
    "name": "topup_with_saved_method"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes
confirmNoOmitted returns a preview on every client. True charges.
idempotency_keyNoRepeats the same result instead of charging again.
payment_method_idNo

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. Changed2 schema fields changed
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "On Claude or ChatGPT, omitted returns a preview. True charges.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Repeats the same result instead of charging again.",
      +  "type": "string"
      +}
  3. Added
  4. Removed
  5. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The description discloses the most important behavior beyond the annotations: without confirm=true the call charges nothing and only returns a preview. That two-phase behavior is not encoded in destructiveHint=true and prevents accidental spend. It doesn't cover permission or auth requirements, currency handling, or what the preview contains, and the phrase 'every client charges nothing' is slightly ambiguous.

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?

Four short sentences, with the core action front-loaded and the safety-critical confirm rule early. No filler, though 'Every client charges nothing until confirm is true' is awkwardly worded and slightly obscures an important rule.

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?

For a four-parameter mutation with no output schema, the definition covers the essentials: what is charged, the fallback card, the dry-run gate, and idempotent retries. Gaps remain around the amount's currency and the shape of the preview response, which the agent may need before committing.

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 50%: amount and payment_method_id have no schema descriptions. The description compensates by explaining the default-card fallback for payment_method_id and the preview-vs-charge gate for confirm, and by restating idempotency_key semantics. It says nothing about the unit or currency of amount, which is the only required parameter and stays underspecified.

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 states a specific verb and resource: it charges a saved card and credits 'this wallet'. That distinguishes it from sibling money tools such as refund_wallet_topup, list_payment_methods, and crm_pay_from_wallet. It never names a sibling or an alternative path, so it stops short of full differentiation.

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?

It gives conditional behavior for parameters (omit payment_method_id to use the default card, confirm gates the charge) but no explicit statement of when to choose this tool over alternatives. There is no guidance about preconditions such as a saved card having to exist or which card to use when several exist.

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.