Skip to main content
Glama

Create a balance top-up order

topup_balance
Destructive

Create a top-up order (USD 1–5000); pay it like any order.

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_usd": "<amount_usd>"
    },
    "name": "topup_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNopayment network (default base). hyperevm = HyperEVM (chain 999, USDC/USDT0), bsc = BNB Chain (56, 18-decimal USDC/USDT)
tokenNostablecoin (default USDC)
api_keyNoOptional. Guest or dashboard API key (sd_live_…). Prefer Authorization: Bearer <key> on the MCP connection; if your client cannot set headers, pass the key here.
amount_usdYes
idempotency_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Optional. Guest or dashboard API key (sd_live_…). Prefer Authorization: Bearer <key> on the MCP connection; if your client cannot set headers, pass the key here.",
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the bar is lower. The description adds genuinely new information: the USD 1-5000 bound and the fact that the result must subsequently be paid. It says nothing about what happens if an order is never paid, order expiry, or how the non-idempotent behavior should be handled despite an idempotency_key parameter being offered.

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 tight clauses that front-load the action and the amount limit. "pay it like any order" is slightly vague, but no sentence is filler.

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

Completeness2/5

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

This is a money-moving mutation with no output schema: the agent is not told what an order returns (identifier, payment address/amount, expiry), so it cannot know how to proceed to payment. For a destructive, non-idempotent financial tool with five parameters, the description leaves material gaps.

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 coverage is 60%, with chain, token and api_key already documented including chain aliases and decimals. The description supplies the missing amount_usd range (USD 1-5000), which the schema omits entirely. It adds nothing about idempotency_key, the one remaining undocumented parameter.

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 ("Create a top-up order") plus the amount bound, which reads distinctly against siblings like create_order, pay_order and buy_with_balance. It does not explicitly contrast itself with those siblings, so it stops short of a 5.

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?

"pay it like any order" implies a follow-up payment step, so the tool's role in a two-step flow is inferable. But there is no explicit statement of when to choose this over buy_with_balance or create_order, and no prerequisites or failure conditions are given.

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