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",
      -  "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"
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations give only the safety profile (non-readonly, non-idempotent, open-world), and the description adds substantially: card links expire in 24 hours and use Stripe Checkout with no API key, URL elicitation shows the link first, and the x402 flow is spelled out end to end (first call returns PaymentRequired, pay within maxTimeoutSeconds 120s, retry with PaymentPayload in _meta, paid call settles and returns SettleResponse). It also warns that card payments only appear in the balance after Stripe confirms.

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?

The content is valuable but delivered as one dense, heavily parenthesized block with protocol tokens (isError, PaymentRequired, _meta["x402/payment-response"]) that force careful parsing. There is no lead sentence establishing purpose before mechanics, and the two method flows are not visually separated. Nothing is wasted, but the structure works against fast comprehension.

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-method payment tool with an output schema and a required retry handshake, the description covers both flows, timing constraints, error shape, retry mechanics, and the post-payment verification path. Gaps are minor: failure handling for card payments and minimum/invalid amount behavior are not addressed.

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 50% and the description compensates well: the two enum values are given distinct behavioral meaning, the x402 amount is defined as credits plus a 5.5% surcharge, and card links round up to the cent. This adds real semantics beyond the schema, though parameter names are never explicitly paired with these explanations, so the mapping relies on inference.

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 states specific operations per method ('answers a pay link for a person', 'charges USDC over MCP with x402'), which is concrete verb+resource. However, it never opens with a plain statement that the tool adds credits to the account balance; the agent must infer that purpose from the name/title and the closing remark about the balance. It does point to rent_get_balance for verification, which distinguishes the follow-up path.

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?

Method selection guidance is implicit but recoverable: card is for a person paying via a hosted link, x402 is for programmatic USDC payment over MCP, and the agent is told to verify results with rent_get_balance. There is no explicit when-not or prerequisite statement (e.g., insufficient balance threshold, availability constraints), which keeps it below a 5.

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