Skip to main content
Glama
Agents Trust MCP

Agents Trust MCP

Check payment settlement

receipt
Read-onlyIdempotent

Check if a paid recommend or inspect answer has settled on-chain using its payment_attempt_id; returns settlement state and transaction hash without repeating the paid request.

Instructions

Check whether a paid recommend or inspect answer has settled on-chain. Free, read-only, and never repeats the paid request. Use it after a paid call, with the payment_attempt_id that call returned; answers arrive before settlement completes. Returns data.state (pending, settled, settle_failed_after_answer or settle_unknown_after_answer) and data.transaction (transaction hash once settled, else null). An unknown id returns a not-found error. Pending or unavailable does not prove that no money moved: check the wallet before paying again.

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": {
      "payment_attempt_id": "<payment_attempt_id>"
    },
    "name": "receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
payment_attempt_idYesThe payment_attempt_id returned by a paid recommend or inspect call: a lowercase UUIDv7. Copy it unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / payment_attempt_id / description
      Added value: +"The payment_attempt_id returned by a paid recommend or inspect call: a lowercase UUIDv7. Copy it unchanged."
  2. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / payment_attempt_id / pattern
      Previous value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"New value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$"
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare readOnly/idempotent/non-destructive, but the description adds information they cannot carry: the call is free, it never re-triggers the paid request, an unknown id returns a not-found error, and a pending state is not proof that no charge occurred. It also enumerates the four possible settlement states, so the agent knows the full outcome space before calling.

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?

Purpose, cost, when-to-use, parameter source, return shape, error case and the safety caveat each appear once, in that order. Nothing is repeated and the most decision-relevant facts come first.

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?

There is no output schema, yet the description names the returned fields (data.state with all four values, data.transaction with its null case) and the error behavior. For a one-parameter polling tool, an agent has everything needed to call it and interpret the result.

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% and the single parameter already documents its provenance and UUIDv7 format. The description repeats that the id comes from the preceding paid call, which reinforces usage but adds no new semantics about the value itself, so the baseline holds.

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: check whether a paid answer has settled on-chain. It scopes the tool to post-payment polling, which clearly separates it from the siblings recommend, inspect and health that the agent would otherwise confuse it with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('use it after a paid call, with the payment_attempt_id that call returned') and an explicit caution about what to do when the answer is pending ('check the wallet before paying again'). It also rules out a wrong inference ('pending or unavailable does not prove no money moved').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools