Skip to main content
Glama
receipt-gate

receipt-gate

Settle against a receipt

settle
Idempotent

Run the adapter to verify a promise against independently re-read state. A match settles it and returns escrowed rights; otherwise you get the exact gap and who may accept, cancel, or change the remainder.

Instructions

Run the adapter the promise named and put what it saw beside what was promised. A match settles the promise and returns the escrowed rights. Anything else is kept as a remainder: the exact gap, what can no longer be treated as done, the authority still available, and who may accept, cancel, hand over or change it.

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": {
      "promise_id": "<promise_id>"
    },
    "name": "settle"
  }
}

Input Schema

NameRequiredDescriptionDefault
promise_idYes

Output Schema

NameRequiredDescriptionDefault
stateYes
fulfilledYes
remainderNo
promise_idYes
rights_returnedNo

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 that this mutates state, is open-world, idempotent, and non-destructive. The description adds useful behavioral detail beyond those annotations: a match settles the promise and returns escrowed rights, while a non-match produces a remainder describing the gap, affected obligations, remaining authority, and who may act next.

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 description is compact and front-loaded: it first states the action, then the match outcome, then the non-match remainder. The sentences are dense but every clause carries information, though the domain jargon reduces immediate 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?

The output schema and annotations already cover return structure and safety traits, so the description need not explain those. It explains the core match/non-match behavioral split, which is the main gap left by structured fields; only explicit routing guidance and parameter detail are missing.

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?

There is only one parameter, promise_id, and schema description coverage is 0%. The description refers repeatedly to 'the promise' but does not explain the ID format, where to obtain it, or how the promise's named adapter is resolved, so it adds little meaning beyond the property name.

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 action and outcome: run the adapter named by the promise, compare what it saw with what was promised, and settle the promise on a match. It is clear enough to identify the operation, but it does not explicitly distinguish this from siblings such as claim_done or verify_ledger.

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 by the scenario of settling a promise against observed results, but the description never says when to choose this tool over alternatives or when not to use it. The agent must infer the boundary from sibling names and context.

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