Skip to main content
Glama

ck42x Hostile Traffic

Settle a payment

claim_payment

Paste the preimage of a paid BOLT11 invoice, or an onchain txid, with the tier. Returns an access token for the REST API. MCP callers get the paid tool result directly and can skip this.

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

Input Schema

NameRequiredDescriptionDefault
tierYes
txidNo64 hex chars, onchain fallback
preimageNo64 hex chars

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the output (an access token for the REST API) and the important routing fact that MCP callers do not need it, but it is silent on idempotency (can the same preimage be claimed twice?), token lifetime, and what happens if the invoice is unpaid or the preimage invalid.

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 short sentences, each carrying distinct information: inputs, return value, and the caller-type exception. Front-loaded with the action. Slightly clunky imperative 'Paste the...' opening but no wasted text.

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 three-parameter tool with no annotations and no output schema, the description covers the input/output shape adequately, but leaves gaps an agent would care about: token format/expiry, failure modes for unpaid or already-claimed payments, and the meaning of the required tier enum.

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 67%, and the description adds genuine meaning for two params: preimage must belong to a *paid* BOLT11 invoice, and txid is the onchain route. The required 'tier' parameter gets no explanation beyond the word itself, so the agent is left to infer what sandbox vs premium buy.

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 uses a concrete action+resource framing: it takes a paid BOLT11 preimage or an onchain txid plus a tier and returns a REST API access token. An agent can tell exactly what goes in and what comes out, and the sibling tools (live_counters, preview, traffic_digest) are clearly unrelated, so no differentiation is needed.

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 says what to supply ('paste the preimage of a paid BOLT11 invoice, or an onchain txid, with the tier') and gives an explicit exclusion: 'MCP callers get the paid tool result directly and can skip this.' That is real when-not guidance, though it never states the prerequisite that the invoice must already be paid, nor which tier to pick.

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