Skip to main content
Glama

Settlement Rescue

settlement_rescue

Settlement Rescue: 'payment weird? give it to us.' Timeout, 5xx or no PAYMENT-RESPONSE after paying, and you must decide whether to pay again. Send the X-PAYMENT header you sent (or the tx hash, or payer + payee + amount). We read the EIP-3009 authorization's on-chain state on Base: SETTLED (nonce used: here is the tx, do NOT pay again) / NOT_SETTLED (expired unused: safe to pay again ONCE) / STILL_UNCERTAIN (unused but still valid: a facilitator can still settle it, do NOT sign a new one yet, with seconds left) / NOT_FOUND_ON_CHAIN, plus a duplicate-payment scan, a safe next action and a signed record for refunds and disputes. Read-only. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/settlement/rescue, $0.05 via x402.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "settlement_rescue"
  }
}

Input Schema

NameRequiredDescriptionDefault
payerNopayer
pay_toNopay to
tx_hashNotx hash
amount_usdNoamount usd
window_hoursNowindow hours
authorizationNoauthorization
payment_headerNopayment header

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior1/5

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

The description explicitly claims 'Read-only,' but the annotations declare readOnlyHint=false and idempotentHint=false, a direct contradiction on the tool's most important behavioral property. Everything else it discloses (the four on-chain verdicts, a duplicate-payment scan, a signed record) is valuable context, but the read-only claim conflicts with structured data an agent will also read. This is an annotation contradiction rather than a disclosure gap.

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 core decision information is front-loaded and dense with useful detail, but the definition opens with a slogan and closes with branding, playground framing, and a production URL plus a $0.05 x402 price that are irrelevant to invoking this MCP tool. The four-verdict enumeration in one run-on parenthetical is hard to parse and would read better as a list.

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 7-parameter, zero-required, nested-object tool with no output schema, the description does the heavy lifting: it enumerates the possible verdicts, says what each means for the pay-again decision, and notes the extra outputs (duplicate scan, next action, signed record). Remaining gaps are the semantics of window_hours/amount_usd, the structure of the nested authorization object, and the false read-only claim.

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%, but the parameter descriptions are pure restatements ('payer', 'payment header'), so the schema itself adds almost no meaning. The description compensates by explaining the alternative input modes — send the X-PAYMENT header you sent, or the tx hash, or payer + payee + amount — which the schema does not convey at all. It leaves window_hours, amount_usd, and the nested authorization object unexplained.

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 names a specific resource and action: it reads the EIP-3009 authorization's on-chain state on Base to tell the caller whether a payment settled. It also states the concrete trigger (timeout, 5xx, or missing PAYMENT-RESPONSE after paying) that distinguishes it from generic finance siblings. The opening marketing tagline ('payment weird? give it to us.') and the OMENZ/production pitch add noise that slightly dilutes an otherwise precise purpose statement, and it never names a sibling it should be preferred over.

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?

Usage context is explicit: invoke it when a payment timed out, returned 5xx, or produced no PAYMENT-RESPONSE and you must decide whether to pay again. It also embeds decision guidance inside the outcomes ('do NOT pay again', 'safe to pay again ONCE', 'do NOT sign a new one yet'), which is genuinely actionable. It stops short of naming alternative tools (e.g., settlement_cost, dedupe, dispute_packet) or stating when this tool is unnecessary.

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