Skip to main content
Glama
receipt-gate

receipt-gate

Open a promise

open_promise

Records an observable future state with required authority, fixed constraints, and the adapter that will verify it, refusing promises no adapter can check.

Instructions

Record one observable future state, the authority needed for it, what may not change while acting, and the adapter that will check it. The adapter's own parameters are fixed here and written to the ledger, so the reading cannot be redirected afterwards. A promise no adapter can answer is refused at this point.

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": {
      "deal_id": "<deal_id>",
      "promise_id": "<promise_id>",
      "holder": "<holder>",
      "promised_state": "<promised_state>",
      "receipt_adapter": "<receipt_adapter>",
      "authority": "<authority>"
    },
    "name": "open_promise"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerNo
holderYes
deal_idYes
authorityYesverb:what — the actions required, and no others.
expires_atNo
promise_idYes
adapter_configNomanifest+sha256: manifest_path, sources[]. command+exit_code: argv[], cwd, expect_exit, expect_in_output, timeout. owner_acceptance: record_path, owner, version_sha256.
damage_ceilingNoverb:glob — what may not change while acting.
promised_stateYesOne observable future state.
receipt_adapterYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses two valuable behavioral facts: the adapter configuration is frozen and written to the ledger at open time, so later reads cannot be redirected, and invalid promises are rejected up front rather than failing later. Annotations already declare the non-read-only, non-destructive profile, so this added immutability and validation context clears the bar; it omits what happens on duplicate promise_id or retry, 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?

Three sentences, no filler, and the core action is front-loaded in the first sentence. The abstract phrasing ('one observable future state') is dense but each sentence contributes a distinct fact: what is recorded, why the config is frozen, and when the call is refused.

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 10-parameter mutation with a nested adapter_config object and no output schema, the description covers motivation and immutability but leaves the identity/scope fields (deal_id, promise_id, holder, owner, expires_at) unexplained and never says what the call returns, such as a ledger reference. Adequate to attempt the call, not enough to call it confidently.

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 only 40% across 10 parameters, so the description must compensate, and it does so only for the semantic core: authority ('required, and no others'), damage_ceiling ('what may not change while acting'), and receipt_adapter ('the adapter that will check it'). It says nothing about owner vs holder, deal_id scoping, promise_id uniqueness, or expires_at semantics, leaving half the surface undocumented in both places.

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 uses a specific verb ('Record') and names the substance being recorded: a future state, its authority, its invariants, and its receipt adapter. This maps cleanly onto the required parameters, so an agent knows what the tool does. It does not, however, contrast itself with siblings like open_debts or claim_done, leaving the boundary to inference.

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 implied rather than stated: 'A promise no adapter can answer is refused at this point' tells the agent a precondition (a workable adapter must exist) but not when to open a promise versus opening a debt or claiming a task. No explicit exclusions or alternative routing are given.

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