Skip to main content
Glama

Check a receipt is genuine

verify_receipt
Read-only

Confirm that a Swap Ripper receipt is genuine and unchanged. Pass the receipt object and signature exactly as get_receipt returned them.

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": {
      "receipt": "<receipt>",
      "signature": "<signature>"
    },
    "name": "verify_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYesThe receipt object (or its JSON text).
signatureYesThe signature string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds the meaningful behavioral detail that verification is integrity-based and requires byte-exact inputs, implying a mismatch yields a negative result. It says nothing about what the tool returns (a validity boolean? an error?) or rate limits, which matters since no output schema exists.

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 short sentences, zero filler, with the purpose front-loaded before the invocation constraint. Every clause earns its place.

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?

The input contract is complete, and annotations cover the read-only profile. However, with no output schema, the description should say what a successful versus failed verification looks like, since the whole point of the tool is producing a verdict. That omission leaves an agent guessing about the return value.

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 a 3 would be the baseline, but the description adds provenance semantics the schema lacks: the receipt must come from get_receipt and must not be altered or reformatted. That is genuine meaning beyond 'receipt object or its JSON text' and 'the signature string'.

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: 'Confirm that a Swap Ripper receipt is genuine and unchanged.' The verb 'confirm/verify' contrasts implicitly with the sibling get_receipt, which retrieves the receipt in the first place, so an agent can tell the two apart without opening the schema.

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?

Gives clear procedural context: 'Pass the receipt object and signature exactly as get_receipt returned them' identifies the upstream tool that supplies the inputs and warns against re-serializing or editing them. It does not state when verification should be skipped or what to do on failure, so it stops short of full when/when-not 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.