Skip to main content
Glama

Top up the balance

deposit_balance

COSTS MONEY: Top up the balance

Charges one of your stored cards right away and adds the amount to your prepaid euro balance; this cannot be undone over the API. amountEur is net and at least 5 euro: the balance carries no VAT, VAT is charged when the balance is used. The balance pays for every minute and conversation on pay as you go, and for orders placed with place_order and payment method balance. To buy a plan or add-on directly use place_order; for automatic refills of minutes and conversations use set_auto_topup. paymentMethodId is an id from list_payment_methods. Refused with 400 when the card holder has to confirm the payment (top up in the dashboard then), when top ups are not available for your account or when the payment fails. Returns the new balance.

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": {
      "body": "<body>"
    },
    "name": "deposit_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe request fields as one JSON object.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / body / properties / amountEur / description
      Previous value: -"Net amount in euro."New value: +"Net amount in euro, at least 5."
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the card is charged immediately, that the operation cannot be undone over the API, that the amount is net with VAT charged at usage time, and the exact 400 failure modes (cardholder confirmation required, top-ups unavailable, payment failure). It also states what is returned ('the new balance'), which no output schema covers.

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?

Front-loaded with the critical 'COSTS MONEY' warning, then proceeds from what happens, to constraints, to alternatives, to failure modes, to return value. Dense but every sentence carries decision-relevant information; the single unbroken paragraph makes it slightly harder to scan.

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 money-moving mutation with no output schema, the description covers cost, irreversibility, VAT semantics, prerequisites, alternatives, error conditions, and the return value. Nothing an agent needs in order to call it safely appears to be missing.

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 coverage is already 100%, but the description still adds meaning: `amountEur` is net (not gross), carries no VAT, and has a 5 euro minimum, and `paymentMethodId` must be an id obtained from `list_payment_methods`. This clarifies the net-vs-gross ambiguity the schema alone leaves open.

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?

States a specific verb and resource ('top up the balance') and immediately specifies the mechanism: charges a stored card and adds the amount to the prepaid euro balance. It also distinguishes itself from siblings by naming `place_order` (plans/add-ons) and `set_auto_topup` (automatic refills).

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?

Explicit when-to-use and when-not-to-use: use this for immediate manual top-ups, use `place_order` to buy a plan or add-on directly, and use `set_auto_topup` for automatic refills of minutes and conversations. It also states the preconditions for `paymentMethodId` (an id from `list_payment_methods`) and the conditions under which the call is refused.

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.