Skip to main content
Glama

Cloud executor: add credit (paid, x402)

executor_topup
Destructive

Adds prepaid USDC credit to a manager the executor runs; each sent operation is charged from it (gas × 1.5, at least the chain's minimum). Without payment the result is an error whose structuredContent is the x402 PaymentRequired: an x402 MCP client retries with _meta["x402/payment"]; any other client POSTs to payUrl and pays its HTTP 402. Anyone may pay; the credit only ever pays for this manager's operations and is not refunded.

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": {
      "chainId": "<chainId>",
      "manager": "<manager>",
      "amountUsdc": "<amountUsdc>"
    },
    "name": "executor_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainIdYes8453 Base, 42161 Arbitrum, 130 Unichain, 1 Ethereum
managerYesThe manager address
amountUsdcYesUSDC to add (2–200 by default; executor_terms)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Discloses behavior well beyond the annotations: the credit is a spend that is charged per operation at gas x 1.5 with a chain minimum, the failure mode is an error whose structuredContent is the x402 PaymentRequired, anyone may pay but credit only covers this manager and is not refunded. Those are exactly the money, auth, and irreversibility facts an agent needs and that readOnlyHint/destructiveHint cannot convey.

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?

One dense paragraph that front-loads the purpose followed by cost model, error path, and retry instructions. Every clause carries information, though the semicolon-chained run-on style makes it slightly harder to scan than a shorter, bulleted form.

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?

For a paid mutation with no output schema, the description supplies the cost model, the failure payload shape, both retry paths, the payer scope, and the no-refund rule. An agent can invoke it and handle the error path correctly without any other document.

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; the description adds real meaning by explaining that amountUsdc is consumed as per-operation charges (gas x 1.5, chain minimum) and is non-refundable, which informs how much to pass. It does not clarify chainId or manager beyond the schema's own descriptions.

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: adds prepaid USDC credit to a manager the executor runs, and explains what the credit is for (per-operation charging). It does not name a sibling or contrast itself with executor_terms or prepare_deposit, so differentiation rests on the reader's own inference.

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 operational context: without payment you get a PaymentRequired error, an x402 MCP client should retry with _meta["x402/payment"], and any other client should POST to payUrl. It does not state when to call executor_terms first or how to check the current balance, which are the only routing gaps.

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