Skip to main content
Glama

Scaffold the agent-receipt-kit authorization pattern

scaffold_agent_receipts
Read-only

Get setup guidance and a starter snippet to issue WorkPackets before agent runs and verify AgentClaims after, with optional accepted/rejected live examples.

Instructions

agent-receipt-kit is a RUNTIME LIBRARY your own agent-orchestration code imports and calls at two specific moments (issue a WorkPacket before an agent runs, verify its AgentClaim after) -- it is not something this MCP server can 'check' on demand the way it checks a document's citations, because the packet only exists inside your application's own runtime. Call this tool to get the pattern explained, an install step, a copy-pasteable starter snippet for wiring issuePacket/verifyReceipt into your own agent loop, and (optionally) a live worked example run against the real kit -- one accepted claim, one rejected claim -- so you can see actual output before wiring it in. Use this when you're building or reviewing anything that lets an AI agent report back what it did (a coding agent, a browser-automation agent, a data-processing agent) and you don't yet trust that report by construction.

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

Input Schema

NameRequiredDescriptionDefault
includeWorkedExampleNoAlso run a live accepted/rejected example against the real issuePacket/verifyReceipt, not just show a snippet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, and the description adds substantive context beyond that: the kit is a runtime library the caller's code imports, the tool only explains and scaffolds it, and it may execute a live accepted/rejected example. That live run is a mild tension with readOnlyHint but reads as an in-memory demonstration rather than a state mutation, so it does not contradict the annotation. It stops short of stating output format or whether anything is written to disk.

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 content is useful but delivered in long em-dash-chained sentences, and the opening spends its first clause defining the library rather than stating what the tool returns. The payoff sentence about when to use it is buried at the end, so front-loading is weak for a description of this length.

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 no output schema, the description carries the return-value burden and does so reasonably: explanation, install step, snippet, and optional worked-example output are all named. It omits the concrete format of the response (text/markdown, code fences) and any size expectations, which are the remaining gaps for a documentation-style tool.

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% and there is a single optional parameter, so the schema already carries the meaning. The description nonetheless clarifies the semantics: includeWorkedExample triggers a live run against the real issuePacket/verifyReceipt showing one accepted and one rejected claim, which is more concrete than the schema's "accepted/rejected example" wording.

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 uses a specific verb-and-output framing: it returns the pattern explained, an install step, a copy-pasteable starter snippet wiring issuePacket/verifyReceipt, and optionally a live worked example. It also explicitly separates itself from sibling-style checks ("not something this MCP server can 'check' on demand the way it checks a document's citations"), so an agent can tell what it produces and what it does not.

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 gives a clear use condition: building or reviewing anything that lets an AI agent report what it did (coding, browser-automation, data-processing agents) where you don't yet trust the report by construction. The negative case is implied via the runtime-library explanation, but no other scaffolding tool is named as an alternative, leaving routing between scaffold_* siblings to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.