Skip to main content
Glama

ChordSI

Top up the credit

add_credit
Idempotent

Add credit with one signed transfer (x402, EIP-3009): USDC on Monad, Avalanche, Arc or Arbitrum, USDG on Robinhood Chain. Call it with only amount to get the payment offer, sign one offer with your wallet, then call it again with payment (the base64 x402 PAYMENT-SIGNATURE value). Without an API key the paying wallet's own account is used and its new key is returned once.

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": "<amount>"
    },
    "name": "add_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesUS dollars, whole cents
paymentNox402 v2 PAYMENT-SIGNATURE value (base64 JSON)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=true), so the description's job is to add context — and it does: it discloses that without an API key the paying wallet's own account is used and that a new key is returned exactly once, a non-obvious and important side effect. It does not discuss failure modes (expired offers, insufficient balance, replay of a signature), which is the remaining gap.

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?

Three sentences, front-loaded with the action and the payment protocol, followed by the two-step procedure and the API-key consequence. Nearly every clause carries information, though the parenthetical protocol names and long chain list make the first sentence dense; it remains readable and free of filler.

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 write tool with full annotation coverage and no output schema, the description supplies what matters: the two-phase flow, the artifact returned by phase one (a payment offer), and the side effect of phase two (key returned once). What is missing is how the asset/chain is chosen and what happens when an offer expires or a signature is reused, which matters for a payment flow.

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 earns above baseline by explaining the calling convention — `amount` alone is a request-for-offer mode, while `payment` carries the base64 PAYMENT-SIGNATURE that completes the transfer. That sequencing is semantics the schema does not encode. Minor deduction because cross-chain/asset selection is never tied to a parameter, leaving it unclear how the desired chain is determined.

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 ('Add credit') and immediately qualifies the mechanism and scope: a single signed transfer via x402/EIP-3009, accepted assets (USDC on Monad, Avalanche, Arc, Arbitrum; USDG on Robinhood Chain). No sibling tool performs credit top-ups, so this is unambiguously separable from check_approval, get_usage, or the skill tools.

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 an explicit two-step invocation recipe: first call with only `amount` to receive the payment offer, sign it, then call again with `payment`. That is real when/how guidance rather than inference. It does not name alternative tools or exclusions, but none of the siblings offer an alternative path to the same outcome, so the omission is low-cost.

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.