Skip to main content
Glama

receipt.upload

Upload a Headron execution receipt (.headron receipt, schema headron.receipt v1 or v2). The receipt is validated against its own bytes and the Headron verifier rules; a valid receipt is stored under your account. Requires an eligible active plan with receipt_verification and explicit receipts_write OAuth consent.

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>"
    },
    "name": "receipt.upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoOptional verification_policy object the receipt's policy.digest pins. With it, completeness reports any done_set gate the receipt has no row for; without it, completeness is unchecked.
receiptYesThe Headron receipt JSON object to validate and store.
subjectNoOptional subject label for what was checked (a codebase, an origin, a folder). Shown, never trusted as proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / policy
      Added value: +{
      +  "description": "Optional verification_policy object the receipt's policy.digest pins. With it, completeness reports any done_set gate the receipt has no row for; without it, completeness is unchecked.",
      +  "type": "object"
      +}
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations cover the safety profile (non-destructive, non-idempotent, closed-world), and the description adds real behavioral context beyond them: the receipt is checked against its own bytes and verifier rules, only valid receipts are stored, and two separate authorization conditions are required. It omits what failure looks like and whether re-uploading the same receipt duplicates storage, 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.

Conciseness4/5

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

Two tightly packed sentences with the core action and validation model front-loaded, followed by the authorization conditions. No filler, though the plan/consent clause is dense and could be split for readability.

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?

For a write tool with no output schema and fully documented parameters, the description covers what is validated, what gets stored, and the access requirements. The remaining gap is the failure/return behavior for an invalid receipt and duplicate-upload semantics, which would help an agent call it correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains receipt, policy, and subject in detail. The description adds no parameter-level meaning on top of that, so the baseline of 3 is appropriate.

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 states a specific verb and resource ('Upload a Headron execution receipt') and adds the essential outcome: validation against the receipt's own bytes and the Headron verifier rules, then storage under the account. This distinguishes it from a pure validation tool such as proof.validate, though no sibling is named explicitly.

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 a hard prerequisite (eligible active plan with receipt_verification plus explicit receipts_write OAuth consent), which tells the agent when the call is permitted. It does not say when to prefer this over validate-only or inspection siblings, nor when not to upload, so usage is only implied.

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