Skip to main content
Glama

Top up the balance

rent_topup

method "card": answers a pay link for a person (valid 24 hours; Stripe Checkout, no API key needed). On clients that take URL elicitation the link is shown to the person first, then the tool answers it. method "x402": charges USDC over MCP with x402. The first call answers isError with the PaymentRequired object (amount = credits + 5.5%; sign within its maxTimeoutSeconds, 120 s); retry the same call with the PaymentPayload in _meta["x402/payment"]. The paid call settles, credits, and answers the SettleResponse in _meta["x402/payment-response"]. The balance shows card payments once Stripe confirms them; check with rent_get_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": {
      "method": "<method>",
      "amount_usd": "<amount_usd>"
    },
    "name": "rent_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
amount_usdYesCredits in USD, e.g. "5.00". Card links round up to the cent.

Output Schema

NameRequiredDescriptionDefault
methodYes
resultNo
statusYespay_link: a person pays at checkout_url. settled: credited. pending: poll operation_id with rent_get_operation.
x402_urlNoThe same top-up over HTTP x402.
operationNo
amount_usdYesCredits bought, in USD (fees come on top).
expires_atNoWhen checkout_url stops working (24 hours).
elicitationNoThe person's answer to the pay-link prompt, on clients that showed it.
checkout_urlNoCard pay link, no API key needed.
operation_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / operation / properties / error / properties / code / enum
      Previous value: -[
      -  "insufficient_balance",
      -  "account_frozen",
      -  "key_limit_reached",
      -  "payment_required",
      -  "payment_failed",
      -  "unsupported_parameter",
      -  "invalid_request",
      -  "unauthenticated",
      -  "forbidden",
      -  "not_found",
      -  "method_not_allowed",
      -  "conflict",
      -  "idempotency_in_flight",
      -  "gone",
      -  "idempotency_key_reused",
      -  "rate_limited",
      -  "internal_error",
      -  "not_implemented",
      -  "vendor_error",
      -  "no_capacity",
      -  "vendor_timeout",
      -  "claim_invalid",
      -  "claim_proof_invalid",
      -  "checks_failed",
      -  "node_exists",
      -  "supply_link_unavailable",
      -  "linking_limit",
      -  "node_revoked",
      -  "node_suspended",
      -  "node_replay",
      -  "probe_in_progress",
      -  "payout_proof_required",
      -  "agent_upgrade_required"
      -]New value: +[
      +  "insufficient_balance",
      +  "account_frozen",
      +  "key_limit_reached",
      +  "payment_required",
      +  "payment_failed",
      +  "unsupported_parameter",
      +  "invalid_request",
      +  "unauthenticated",
      +  "forbidden",
      +  "not_found",
      +  "method_not_allowed",
      +  "conflict",
      +  "idempotency_in_flight",
      +  "gone",
      +  "idempotency_key_reused",
      +  "rate_limited",
      +  "signup_limit",
      +  "internal_error",
      +  "not_implemented",
      +  "vendor_error",
      +  "no_capacity",
      +  "vendor_timeout",
      +  "claim_invalid",
      +  "claim_proof_invalid",
      +  "checks_failed",
      +  "node_exists",
      +  "supply_link_unavailable",
      +  "linking_limit",
      +  "node_revoked",
      +  "node_suspended",
      +  "node_replay",
      +  "probe_in_progress",
      +  "payout_proof_required",
      +  "agent_upgrade_required"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / operation / properties / error / properties / code / enum
      Previous value: -[
      -  "insufficient_balance",
      -  "account_frozen",
      -  "key_limit_reached",
      -  "payment_required",
      -  "payment_failed",
      -  "unsupported_parameter",
      -  "invalid_request",
      -  "unauthenticated",
      -  "forbidden",
      -  "not_found",
      -  "method_not_allowed",
      -  "conflict",
      -  "idempotency_in_flight",
      -  "gone",
      -  "idempotency_key_reused",
      -  "rate_limited",
      -  "internal_error",
      -  "not_implemented",
      -  "vendor_error",
      -  "no_capacity",
      -  "vendor_timeout",
      -  "claim_invalid",
      -  "claim_proof_invalid",
      -  "checks_failed",
      -  "node_exists",
      -  "supply_link_unavailable",
      -  "node_revoked",
      -  "node_suspended",
      -  "node_replay",
      -  "probe_in_progress",
      -  "payout_proof_required",
      -  "agent_upgrade_required"
      -]New value: +[
      +  "insufficient_balance",
      +  "account_frozen",
      +  "key_limit_reached",
      +  "payment_required",
      +  "payment_failed",
      +  "unsupported_parameter",
      +  "invalid_request",
      +  "unauthenticated",
      +  "forbidden",
      +  "not_found",
      +  "method_not_allowed",
      +  "conflict",
      +  "idempotency_in_flight",
      +  "gone",
      +  "idempotency_key_reused",
      +  "rate_limited",
      +  "internal_error",
      +  "not_implemented",
      +  "vendor_error",
      +  "no_capacity",
      +  "vendor_timeout",
      +  "claim_invalid",
      +  "claim_proof_invalid",
      +  "checks_failed",
      +  "node_exists",
      +  "supply_link_unavailable",
      +  "linking_limit",
      +  "node_revoked",
      +  "node_suspended",
      +  "node_replay",
      +  "probe_in_progress",
      +  "payout_proof_required",
      +  "agent_upgrade_required"
      +]
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Far beyond the annotations: 24-hour link validity, no API key needed for Stripe Checkout, URL elicitation behavior on capable clients, the isError+PaymentRequired first response for x402, the 5.5% surcharge baked into the amount, the 120 s maxTimeoutSeconds signing window, and the _meta keys for PaymentPayload and SettleResponse. It also discloses the delayed settlement semantics for card payments. Annotations only say non-read-only and open-world; the description supplies the entire operational contract.

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

Conciseness3/5

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

Information density is high and no sentence is truly wasted, but the prose is run-on, with clauses stacked inside parentheses and semicolons that make the payment flows harder to scan than a short numbered sequence would. It also front-loads the card mechanics before establishing the tool's overall purpose. Understandable, but not optimally structured for an agent deciding how to call it.

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 two-parameter, externally-settled payment tool with an output schema, this covers the hard parts: both flows end-to-end, the retry payload location, the fee, and the eventual-consistency caveat for card credits. Remaining gaps are edge behavior (expired link, failed settlement, overpayment/refund) rather than anything needed to invoke it correctly.

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?

With 50% schema coverage (only amount_usd documented in-schema), the description compensates by defining both method enum values in detail and by pinning amount semantics for x402 (amount = credits + 5.5%). It does not restate that amount_usd is in USD credits, but the schema already states that and the rounding rule lives in the schema too. Minor gap: no per-method amount constraints or limits.

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?

The description makes clear this tool funds the balance through two named mechanisms ("card" pay link via Stripe Checkout, "x402" USDC charge over MCP), and it references rent_get_balance for the read-side counterpart, which separates it from siblings. The plain statement of intent ("top up") lives in the title rather than the description body, which opens directly into method mechanics, so the verb+resource framing is present but implicit.

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?

It states the selection rule between the two methods: card is for paying via a link shown to a person, x402 charges USDC programmatically. It also gives the concrete call sequence for x402 (first call returns PaymentRequired, retry with PaymentPayload) and routes the agent to rent_get_balance to confirm card credits. It stops short of stating exclusions, e.g. which method to prefer when both are available or what to do if the x402 signature window lapses.

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