Skip to main content
Glama

Verify a receipt

verify_receipt
Read-onlyIdempotent

Check a Tethered Trust receipt: is the signature ours, is it still within valid_until, and have the records behind it changed since? A valid receipt proves what we said and when; it doesn't guarantee the verdict was right.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
jwsNoOr the full signed receipt string, if someone handed it to you.
receipt_idNoThe receipt id (rcpt_...) from a check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "changed_subjects": {
      -      "items": {
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "claim": {
      -      "type": "object"
      -    },
      -    "disclaimer": {
      -      "type": "string"
      -    },
      -    "explain": {
      -      "type": "string"
      -    },
      -    "issued_at": {
      -      "type": "string"
      -    },
      -    "issued_by_tethered_trust": {
      -      "type": "boolean"
      -    },
      -    "receipt_id": {
      -      "type": "string"
      -    },
      -    "signature_valid": {
      -      "type": "boolean"
      -    },
      -    "status": {
      -      "enum": [
      -        "valid",
      -        "expired",
      -        "revoked",
      -        "data_changed",
      -        "invalid_signature",
      -        "unknown_key"
      -      ],
      -      "type": "string"
      -    },
      -    "valid_until": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "signature_valid",
      -    "status"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered. The description contributes distinct value by defining the semantics of validity — what a passing receipt does prove (what was said and when) versus what it does not (that the verdict was correct). It stops short of describing the shape or possible outcomes of the verification result.

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?

Two tight sentences, front-loaded with the three checks and closed with the important caveat about what validity means. No filler, no repetition of the title, and the most decision-relevant information comes first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 some burden of conveying return information; it hints at the checks performed but never states what the result looks like (booleans per check, an overall verdict, failure modes for an expired or tampered receipt). For a read-only two-input verification tool that is acceptable but leaves a real gap.

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 description coverage is 100%, so both parameters are already documented and baseline 3 applies. The description adds conceptual context ('valid_until', the receipt's provenance) but does not resolve the obvious ambiguity of two zero-required parameters — i.e. whether exactly one of jws or receipt_id must be supplied. That clarification is left entirely to the schema.

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?

The description gives a specific verb ('Check') and resource ('a Tethered Trust receipt') and enumerates the three things it tests: signature authenticity, valid_until expiry, and whether underlying records changed. That is far more than a restatement of the name. It does not name a sibling to contrast with, but the sibling list is dominated by unrelated planning/checkout tools, so the gap is minor.

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 implied rather than stated: 'receipt_id ... from a check' and 'if someone handed it to you' signal that this is a follow-up verification on an artifact produced elsewhere. There is no explicit when-to-use/when-not statement and no named alternative for cases where verification is not what the agent wants. Adequate context, but the agent must infer the trigger.

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.

Resources