Skip to main content
Glama

start_topup

Top up credits. Pass eurCents from list_credit_packs. If the owner has completed an MCP purchase and has a saved payment method, charges it and returns {transactionId, credits, eurCents, directCharge:true}. The token spend limit applies to direct charges. Otherwise returns {checkoutUrl, credits, eurCents, directCharge:false} for the owner to complete. Owner-only. Requires the spend scope.

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": {
      "eurCents": "<eurCents>"
    },
    "name": "start_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
eurCentsYesPack price in EUR cents, matching a pack returned by list_credit_packs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by describing two distinct outcomes: a direct charge against a saved payment method returning {transactionId, credits, eurCents, directCharge:true}, or a checkout URL for the owner to complete with directCharge:false. It also discloses that the token spend limit applies to direct charges and that the tool is owner-only with a required `spend` scope — exactly the behavioral context a mutating tool needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Terse and front-loaded: the action and required input come first, then the two return branches, then constraints. No sentence is filler; the compact brace notation efficiently conveys shape.

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?

No output schema exists, but the description inlines both response shapes and their fields, so return values are covered. With the scope, ownership requirement, and charge path all stated, an agent has everything needed to invoke it correctly or to anticipate the checkout fallback.

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 100% and already says eurCents must match a pack from list_credit_packs, so the description largely restates that. It still adds workflow meaning by naming the exact tool that produces the value, turning a bare integer into a derived-then-passed argument.

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 credits') and pins the required argument to its source ('Pass eurCents from list_credit_packs'). An agent can tell this apart from list_credit_packs (which supplies the amount) and from subscription-style siblings without opening the 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 concrete preconditions: owner-only, requires the `spend` scope, and the amount must come from list_credit_packs. It does not explicitly state when to choose this over a recurring/subscription alternative, but the 'top up credits' framing implies a one-off purchase.

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