Skip to main content
Glama

get_receipt

Read-onlyIdempotent

Fetch a TrustBench routing receipt by ID. Receipts are immutable, Ed25519-signed records of a routing or payment event. Use to verify what was paid, to whom, for what capability, and what the on-chain settlement reference is. IDs start with rcpt_ (Phase 3) or rrcpt_ (Phase 4). Output: returns the signed receipt envelope as JSON. Phase 3 (rcpt_) returns a SignedReceipt with receipt (call metadata + settlement ref) and signature (Ed25519 over JCS-canonicalized receipt body). Phase 4 (rrcpt_) returns {receipt, signature} where receipt.paid contains routing details and signature covers the canonical envelope. To verify an envelope offline use the verify_receipt tool with the returned JSON, or @trustbench/verify-receipt npm.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receipt_idYesThe receipt ID, e.g. rcpt_01KQY7C44GAPSXZPFQYRZ1D10C or rrcpt_…

TDQS

A4.9/5.0
Behavior5/5

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

The description goes well beyond the annotations (readOnly, idempotent, non-destructive) by explaining that receipts are Ed25519-signed, immutable, and describing the exact JSON envelope structure for both Phase 3 and Phase 4 variants. It also mentions the canonicalization method (JCS), providing deep context about the data returned.

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?

Every sentence in the description serves a purpose: purpose, use case, ID format, return structure, and verification alternative. The text is well-structured, starting with the core action and then adding necessary detail. No filler or repetition.

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?

With no output schema, the description fully compensates by detailing the response format for both receipt types, including the fields inside receipt.paid. It covers immutability, signature coverage, and offline verification. This is complete enough for an agent to know exactly what to expect and how to use the result.

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?

The schema already fully documents receipt_id with example prefixes. The description adds meaningful context by explaining that rcpt_ and rrcpt_ correspond to Phase 3 and Phase 4, which helps agents understand the two possible response formats without needing external knowledge. This enriches the parameter, though the schema itself is already sufficient.

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?

The description opens with a specific verb-resource pair: 'Fetch a TrustBench routing receipt by ID.' It clearly defines what the tool does and distinguishes itself from the sibling verify_receipt tool by positioning verification as a separate action. The scope is unambiguous.

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?

Explicitly states the typical use case: 'Use to verify what was paid, to whom, for what capability, and what the on-chain settlement reference is.' It also provides an explicit alternative for offline verification: 'use the verify_receipt tool with the returned JSON, or @trustbench/verify-receipt npm.' This gives clear when-to-use and when-not-to-use guidance.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: get_rankings retrieves liveness rankings, get_receipt fetches a receipt by ID, and verify_receipt validates receipt signatures. There is no overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case: get_rankings, get_receipt, verify_receipt. The naming is uniform and predictable.

Tool Count4/5

Three tools is a reasonable count for a focused server dealing with rankings and receipt verification. It is slightly on the lower side but not too few, as each tool serves a distinct and necessary function.

Completeness3/5

The tool set covers core operations: retrieving rankings and handling receipts (fetch and verify). However, there are notable gaps such as no tool to list receipts or query provider capabilities beyond rankings, which could limit agent workflows.