Skip to main content
Glama

Get receipt

inam_get_receipt
Read-onlyIdempotent

Use to read what a receipt says (who did what for whom, when, with what outcome): fetches a single execution receipt by id together with its verification records. To test whether the receipt holds up, use inam_verify_receipt. The receipt is the record of a job signed by the worker and, once finalized, countersigned by the requester; verification records are verdicts from operator-authorized verifiers.

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": {
      "receiptId": "<receiptId>"
    },
    "name": "inam_get_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptIdYessha256:... receipt id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuine context beyond them: the call returns the receipt plus its associated verification records, and it explains that verification records are verdicts from operator-authorized verifiers. It stops short of noting behavior for a missing or unfinalized receipt id.

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?

The usage and alternative-routing guidance is front-loaded in the first two sentences, with domain definitions following. Each sentence carries content, though the closing definition of receipts and verifiers is dense and slightly compresses three ideas into one 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?

There is no output schema, so the description usefully states what comes back (the receipt plus its verification records) and what those records mean, which is the main thing an agent needs. Remaining gaps are minor, such as error behavior for an unknown or not-yet-finalized receipt id.

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 receiptId parameter already documents the 'sha256:...' format. The description only restates that lookup is by id, adding no format or resolution detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting and there is only one parameter.

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?

Uses a specific verb and resource ('fetches a single execution receipt by id together with its verification records') and explains what the resource represents: a job record signed by the worker and countersigned by the requester. It also explicitly distinguishes itself from inam_verify_receipt, so an agent can select between them without inspecting schemas.

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?

'Use to read what a receipt says' gives the triggering intent, and 'To test whether the receipt holds up, use inam_verify_receipt' names the alternative and the condition that selects it. The read-vs-verify split is fully resolved in the description.

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.