Skip to main content
Glama

Analytical Insider for Agents

Issue witnessed receipt

issue_receipt
Idempotent

Submit a caller-signed receipt of an agent-to-agent interaction. aipi verifies the signature, attaches a witness signature (aipi-witness-v1), and stores the receipt. Idempotent on receipt-hash. Identical bytes to POST /api/v2/agents/receipts.

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>",
      "callerSignature": "<callerSignature>"
    },
    "name": "issue_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptYes
callerSignatureYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the write, idempotent, and non-destructive profile, so the description earns credit for adding what they cannot: the server verifies the caller signature, appends an 'aipi-witness-v1' witness signature, then stores the record. It specifies the idempotency key (receipt hash) rather than just the hint. It omits failure behavior for an invalid signature and any auth requirements, leaving a gap.

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?

Four short sentences, front-loaded with the purpose and followed by the verification/storage behavior, idempotency note, and HTTP equivalence. Nothing is padded, though the endpoint-equivalence sentence is only useful to a subset of callers.

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?

For a write tool with no output schema, the definition explains what happens server-side but not what comes back (receipt id, witness signature, or verification result). Combined with a completely undocumented nested 'receipt' object, the definition is adequate but leaves real construction gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the 'receipt' parameter is an unconstrained object, so the description carries the full burden. It implies the relationship between the two params (callerSignature signs the receipt) but never defines the receipt's expected fields, the signature algorithm, or the canonicalization used. An agent still cannot construct a valid payload from the definition alone.

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?

The description names a specific verb and resource ('Submit a caller-signed receipt of an agent-to-agent interaction') and immediately states what the server does with it (verify, witness, store). No sibling tool overlaps this behavior, so an agent can select it unambiguously 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?

Usage context is clear: this is the step that follows an agent-to-agent interaction, and idempotency is keyed on the receipt hash so retries are safe. It also maps the tool to 'POST /api/v2/agents/receipts' for agents that know the HTTP surface. It stops short of stating when NOT to use it (e.g., unsigned or non-interaction records), so it is not a full 5.

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