Skip to main content
Glama

Record what you did, so it can be checked later

record_receipt

Call this AFTER you have paid an address or called a tool, to put what you did on the record. Until now this platform answered "should I" and never heard what happened, which is the difference between a lookup and a control layer: a receipt lets the next question about this subject be asked against a record instead of a guess, and lets a verdict we gave be read back against what followed. reference is YOUR evidence, a transaction hash or the digest of a signed payload, and we store it WITHOUT verifying it. outcome comes back null and stays null until something actually reads what happened, so a receipt nobody has checked never looks like one that settled. Needs a key; a receipt is readable only by the key that wrote it. WHY readOnlyHint IS false: this call writes a row in our store on behalf of the caller, so a second identical call is not free of consequence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoThe chain it settled on, where it settled on one.
actionYesWhich kind of thing you are recording: `payment` for money that left, `tool_call` for a call you made. It decides nothing about verification — both are stored as YOUR claim, with your `reference` as the evidence — but it decides what the receipt can later be reconciled against, and a payment filed as a tool call will never meet the chain reading that would confirm it.
policyNoThe policy you evaluated under, so a later disagreement can be read against what we said at the time.
subjectYesThe address you acted on.
verdictNoThe decision we gave you before you acted, for the same reason.
deadlineNoISO 8601 time you expected it by. A time already past is refused, because it is usually seconds where milliseconds were meant.
expectedNoWhat you expected to follow, in your words. Ours to store and yours to claim.
amountUsdNoWhat you committed, in US dollars.
referenceYesYour evidence that it happened: a transaction hash, or the digest of a signed payload. Stored, not verified.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe receipt, for asking about it later.
saysNoWhat was and was not verified.
outcomeNoAlways null here. It stays null until something reads what actually happened; null is "nobody has checked", never "it failed".
subjectNoThe address the receipt is about, read back, so a receipt cannot be filed against the wrong party.
recordedAtYesWhen we wrote it down. Not when your action happened.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / subject / description
      Added value: +"The address the receipt is about, read back, so a receipt cannot be filed against the wrong party."
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources