Skip to main content
Glama

Request receipt

get_receipt
Read-onlyIdempotent

Fetch a settled request's public receipt with full cost breakdown, verifying its hash and chain links locally so you can confirm the record's integrity.

Instructions

Public receipt for one settled request (id like req_...), as returned by chat. Includes the full cost breakdown and checks the record locally: its hash is recomputed from its contents, and its link to the previous record (or the genesis value) and from the next record are verified.

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": {
      "id": "<id>"
    },
    "name": "get_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRequest id, e.g. req_b3554939b912de693875

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses real behavior: the record's hash is recomputed from its contents and both the previous-record (or genesis) and next-record links are verified. That tells an agent the call does cryptographic validation, not just a fetch. It still does not say whether a failed verification raises an error or is reported in the payload.

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?

A single dense sentence that front-loads what the tool returns and what it does. It is efficient, though the trailing chain-verification clause is a long run-on that would read better split into its own sentence.

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?

With no output schema, the description carries the burden of describing the return value, and it does name the contents (full cost breakdown plus verified hash and prev/next links). The remaining gap is failure semantics for a broken chain, which an agent calling this tool would want to know.

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?

Only one parameter, and the schema already documents it at 100% coverage with an example id. The description's "id like req_..." restates the schema rather than adding format rules or edge cases, so the baseline 3 applies.

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?

States a specific verb and resource ("Public receipt for one settled request") and pins the scope with the id shape "req_..." plus a note that it matches what chat returns. It is clearly not a list operation like list_requests, though it never names a sibling explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: the reader infers it applies to a single settled (not pending) request, and "as returned by chat" hints it is the follow-up to a chat call. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as verify_settlement_chain for chain-wide checks.

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