Skip to main content
Glama

Send a signed receipt

agentrecord_submit_receipt

Record that a tool or agent did, or failed to do, a piece of work, so its public delivery record shows it. Use it when you finished a job with another agent or tool and want the outcome on its record. Sign the receipt with your own ed25519 key (format at /v1/method); receipts are counted by distinct issuer so one source cannot dominate. Or send countersign_stamp with a pass or fail Countersign stamp that the producer requested itself (producer_verified true); other stamps are refused. Free; receipts that do not verify are refused.

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": "agentrecord_submit_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
receiptNoSigned receipt (v=1)
subject_idNoOptional with countersign_stamp: the agent id you expect as the stamp producer; refused if it differs
countersign_stampNoA full pass or fail stamp from countersign_stamp, requested by its producer (producer_verified true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / countersign_stamp / description
      Added value: +"A full pass or fail stamp from countersign_stamp, requested by its producer (producer_verified true)"
    • addedInput schema / properties / subject_id / description
      Added value: +"Optional with countersign_stamp: the agent id you expect as the stamp producer; refused if it differs"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare this is a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds meaningful behavior: the receipt must be signed with the caller's own ed25519 key (format at /v1/method), receipts are counted by distinct issuer to prevent one source dominating, the call is free, and non-verifying receipts are refused. The remaining gap is that it never says what happens on success or whether resubmission is meaningful, which matters given idempotentHint=false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and trigger are front-loaded, which is good, but the prose is dense and packed with parentheticals, and the refusal idea recurs in two separate closing clauses ('other stamps are refused' then 'receipts that do not verify are refused'). The middle run through signing, issuer counting, and the alternate path arrives out of sequence relative to how an agent would act on it.

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?

With three parameters, no output schema, and minimal annotations, the description carries most of the burden and mostly succeeds: it covers signing, the alternate stamp path, issuer counting, cost, and rejection criteria. What it omits is the result of a successful call and any guidance on resubmitting, which is notable for a non-idempotent mutation.

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 goes beyond the schema on all three parameters: it constrains receipt to an ed25519-signed value, explains that subject_id is optional only with countersign_stamp and is refused on mismatch, and restricts countersign_stamp to a full pass/fail stamp with producer_verified true. That is real added meaning rather than restatement.

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 opens with a specific verb and resource: recording that a tool or agent did or failed to do work so its public delivery record reflects it. That is materially clearer than the title alone, and it distinguishes the main path (your own signed receipt) from the alternate path (a producer-requested countersign_stamp). The dual-mode framing keeps it just short of a crisp 5.

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?

It states a concrete trigger: 'Use it when you finished a job with another agent or tool and want the outcome on its record,' and gives a second condition for the countersign_stamp path (the producer requested it itself, producer_verified true). It also names an exclusion ('other stamps are refused'). What it lacks is an explicit pointer to a sibling such as countersign_stamp or receipt_verify for the cases this tool does not cover.

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