Skip to main content
Glama

Verify receipt

inam_verify_receipt
Read-onlyIdempotent

Use when someone presents a receipt id as proof that an agent did a job: runs the registry's integrity checks on that receipt and returns a verdict ('pass' or 'fail') with per-check results: finalized, agent_b_signature, agent_a_signature, receipt_id (content-addressed id), transparency_log (leaf present, inclusion proof, logged content matches), hash_format (specHash/outputHash are sha256: + 64 hex; fails on pre-v0.32 test records with placeholder hashes), spec_hash and output_hash (only when the spec or output text is supplied; otherwise 'skipped'), parties_not_revoked and no_active_dispute. Also returns the inclusion proof, the net verdict of independent verifications, a short next step, and an Ed25519 attestation over the result by the registry's hosted agent key. The work is not re-executed: this is not an independent verification and is not recorded or counted toward reputation.

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_verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoexact task spec text; checked against the receipt's task.specHash
outputNoexact output text; checked against the receipt's result.outputHash
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. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds substantial non-structured behavior: work is not re-executed, the result is not recorded or counted toward reputation, and an Ed25519 attestation is issued over the result. It also discloses a concrete failure mode (hash_format fails on pre-v0.32 records with placeholder hashes) that an agent could not infer from the schema.

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 trigger clause is front-loaded and every clause carries information, including the check enumeration and the reputation caveat. The main weakness is a very long run-on sentence with nested parentheticals that makes the per-check list harder to scan than a short bulleted phrasing would.

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, so the description carries the full return-value burden and does so: verdict, per-check outcomes, inclusion proof, net verdict of independent verifications, next step, and attestation. Combined with the not-recorded caveat, an agent has everything needed to call this and interpret the response.

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%, so the baseline is 3, but the description earns more by explaining conditional behavior: spec_hash and output_hash checks run "only when the spec or output text is supplied; otherwise 'skipped'." That tells the agent why the two optional parameters matter, beyond the schema's one-line field notes.

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 concrete verb and resource: "runs the registry's integrity checks on that receipt and returns a verdict ('pass' or 'fail') with per-check results," then enumerates the checks. It also explicitly carves out what it is not ("work is not re-executed: this is not an independent verification"), which separates it from a fetch-style tool like inam_get_receipt.

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?

The trigger condition is explicit and precise: "Use when someone presents a receipt id as proof that an agent did a job." The caveat that results are not counted toward reputation is a useful usage constraint, but no alternative tool is named, so an agent comparing against inam_check or inam_get_receipt gets context rather than routing.

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.