Skip to main content
Glama

claim_payment

Credit this API key after sending the exact USDC amount from create_topup_intent to PAYMENT_ADDRESS.

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": {
      "tx_hash": "<tx_hash>"
    },
    "name": "claim_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
tx_hashYesBase mainnet transaction hash of the USDC Transfer (0x-prefixed).
intent_idNoIntent from create_topup_intent. Optional if this key has one matching open intent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent_id
      Added value: +{
      +  "description": "Intent from create_topup_intent. Optional if this key has one matching open intent.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral burden. It usefully discloses that this is a crediting (mutation) action tied to the calling API key and requires an exact payment amount, but says nothing about confirmation depth, idempotency on repeated tx_hash, or what happens on a partial/incorrect amount.

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

Conciseness5/5

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

A single front-loaded sentence that states the action, the prerequisite, and the payment condition with zero filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description covers the happy path but omits failure behavior, confirmation timing, and what exactly is credited — gaps an agent would care about before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both tx_hash and intent_id are already documented. The description adds only the 'exact USDC amount' constraint on the transaction being claimed; per the high-coverage baseline this is a 3.

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?

Uses a specific verb and resource ('credit this API key') and distinguishes itself from the prerequisite sibling create_topup_intent. What 'credit' concretely means (balance increase vs. entitlement) is left implicit, keeping it short of 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?

Establishes a clear precondition and ordering: it must follow create_topup_intent and an exact-amount USDC transfer to PAYMENT_ADDRESS. It does not mention alternatives or when not to use it (e.g., verify_receipt or get_payment_info for checking status), so it stops short of 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