Skip to main content
Glama

session_receipt

Export a signed record of coding-agent decisions for signature, chain, and policy-verdict verification, with an optional redaction mode that strips raw actions before sharing.

Instructions

Export a signed statement of recorded decisions. Verification checks its signature, chain and disclosed policy verdicts, not execution or completeness. Use an independently obtained policy and pinned key for attribution.

    redact=True strips every raw action (commands, file contents, branches) before returning. In
    zk-mode (GUARDRAIL_ZK=1) git-branch actions stay provably in-policy via their zero-knowledge proof
    even when redacted; other actions keep integrity + authenticity only.

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

Input Schema

NameRequiredDescriptionDefault
redactNoSet true to omit raw commands, file contents, branch names and salts before sharing. False returns private action data; do not share it without inspection.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does so well: it discloses the trust boundary (what verification does and does not prove), the security requirement for independent policy plus pinned key, and the privacy consequence of the redact flag. Not covered are return shape or size (mitigated by an output schema) and any cost/rate characteristics.

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?

The trust-boundary caveat is correctly front-loaded, then the redact semantics are introduced before the conditional zk-mode exception, so a reader can stop early if they don't need the mode detail. The second paragraph is dense with parentheticals (GUARDRAIL_ZK=1, the action list) but each clause carries information an agent cannot get from the schema.

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?

This is a single-parameter export tool with an output schema, so the description need not describe return values, and it correctly spends its space on trust semantics and redaction instead. Adding a pointer to the sibling audit trail for the underlying raw events would close the remaining gap in how an agent assembles a full verification story.

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 already 100% and the schema documents redact's default and effect, so the baseline would be 3. The description adds genuine meaning beyond that: exactly which data classes are stripped (commands, file contents, branch names) and the zk-mode nuance that git-branch actions remain provably in-policy via proof while other actions retain only integrity and authenticity.

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 ("Export a signed statement of recorded decisions") and immediately bounds what that statement attests to (signature, chain, disclosed policy verdicts — not execution or completeness). It is clearly distinct in scope from audit_log/run_shell, though it never names an alternative explicitly, so sibling differentiation is implied rather than stated.

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?

It gives real procedural guidance for consumers: verify with an independently obtained policy and a pinned key, and do not treat the receipt as proof of execution or completeness. What is missing is selection guidance — when to call this versus audit_log, and whether to export before or after other operations — so usage is implied rather than spelled out.

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