Skip to main content
Glama

PrivateByte

Create a wallet top-up invoice

top_up

Add funds to the account wallet: creates an unpaid funding invoice in the account currency and returns pay_url, a client-area link where the person pays it. Nothing is charged by this tool; the wallet grows only once the person pays. Agree the amount with the person first. amount_minor is whole minor units (1000 = 10.00). Needs a key with billing:pay and billing:read.

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_minor": "<amount_minor>",
      "request_id": "<request_id>"
    },
    "name": "top_up"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
amount_minorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the created artifact (an unpaid invoice in account currency), the side-effect boundary ("Nothing is charged by this tool"), the return value (pay_url), and the required scopes (billing:pay, billing:read). Annotations only say it is a non-destructive, non-open-world write; the description supplies the substantive behavior.

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, front-loaded with the action and its return value, then the non-charging caveat, then prerequisites. Nothing is redundant, though the ordering could group the auth requirement with the other call prerequisites.

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?

With no output schema, the description still tells the agent what comes back (pay_url and where the person pays) and how the tool relates to the wallet balance. Amount units, idempotency, and scopes are all covered, which is everything needed for a two-parameter mutation.

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?

The schema documents request_id fully but leaves amount_minor as a bare positive integer, and the description fills exactly that gap with "whole minor units (1000 = 10.00)". The idempotency hint for retries is already in the schema, so the net value is concentrated in the one undocumented parameter.

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 concrete verb and resource ("Add funds to the account wallet… creates an unpaid funding invoice") and pins down the scope: the invoice is unpaid and no charge occurs. That scope statement alone separates it from a payment-execution sibling like pay_invoice, so an agent can tell the two apart without opening a schema.

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

Usage Guidelines4/5

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

Gives a real precondition ("Agree the amount with the person first") and an implicit when-to-use (funding the wallet ahead of payment). It never names an alternative tool or an explicit when-not, so guidance is clear but not fully routing.

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