Skip to main content
Glama
receipt-gate

receipt-gate

Spend a capability

record_action

Record a granted action as taken with a one-use token, so duplicate claims are refused by the ledger.

Instructions

Record that a granted action was taken. A token is good for one call; a second use is refused against the ledger.

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": {
      "token": "<token>"
    },
    "name": "record_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the safety profile is partly covered. The description nevertheless adds genuinely new behavioral facts beyond them: the token is single-use and a repeat call is refused at the ledger, which tells the agent the failure mode and why retrying is pointless.

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

Conciseness5/5

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

Two short sentences with no filler. The core action is stated first and the single-use constraint follows immediately, which is the right ordering.

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 two-parameter mutation with no output schema, the description covers the main hazard (double-spend refusal) but leaves the 'result' parameter and the response/error surface unexplained. Enough to call it correctly in the happy path, not enough to call it confidently when something goes wrong.

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 description coverage is 0%, so the description must carry parameter meaning. It conveys the token's one-shot semantics but says nothing about the 'result' parameter — what it should contain, its format, or whether it is optional output capture or a required echo.

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 names a specific verb and object: it records that a granted action was taken, i.e. it writes a consumption entry to the ledger. That is meaningfully more specific than the title 'Spend a capability' alone, though it never names the sibling (request_capability) that produces the token it consumes.

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?

Usage is only implied: you call this after performing a granted action, using the token you were issued. There is no explicit 'use this instead of X' or 'do not call twice' instruction framed as guidance, even though the one-call rule implies the exclusion.

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