Skip to main content
Glama

Start wallet top-up

stack_start_wallet_top_up

Start a wallet top-up. Returns checkout_url, a Stripe Checkout page where the person pays the amount plus a card fee shown as its own line; the wallet is credited the amount when Stripe confirms the payment. The amount must be at least the least a top-up may be, which the call answers when it is not; STACK sets no maximum. Owner or admin only. Starting one needs no approval: the person pays on the Stripe page.

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_cents": "<amount_cents>"
    },
    "name": "stack_start_wallet_top_up"
  }
}

Input Schema

NameRequiredDescriptionDefault
amount_centsYesAmount in US cents

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: the wallet is credited only after Stripe confirms payment, a card fee appears as a separate line, there is no maximum amount, and an out-of-range amount returns the minimum instead of failing silently. Authorization (owner/admin) and the no-approval model are also disclosed. The awkward phrasing of the minimum-check sentence and the absence of failure/idempotency behavior keep it from a 5.

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?

Purpose and return value are front-loaded, and every sentence carries information about behavior or constraints. The sentence 'The amount must be at least the least a top-up may be, which the call answers when it is not' is convoluted and slightly hard to parse, which is the main structural flaw.

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 single-parameter mutation with no output schema, the description covers the return value, the payment flow, the crediting condition, fee treatment, amount bounds, and the authorization requirement. Only edge cases such as failed or abandoned payments remain unspecified.

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% so the baseline is 3, but the description adds real meaning: amount_cents is what the person pays before the separately billed card fee, must meet a system-defined minimum returned by the call on violation, and has no upper cap. That clarifies semantics the schema's 'Amount in US cents' does not.

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 ('Start a wallet top-up') and immediately says what it returns (checkout_url) and that payment happens on Stripe, so an agent can distinguish it from configuration siblings like stack_set_wallet_caps. It stops short of naming an explicit alternative tool, which keeps it from 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 Guidelines4/5

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

Gives clear preconditions for use: owner or admin only, amount at least the minimum, and no approval is required because the person pays on the Stripe page. It provides context but no explicit 'when not to use' or named alternative, so it falls short of the 5 bar.

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.