Skip to main content
Glama
receipt-gate

receipt-gate

Release a promise as its owner

cancel_by_owner
Idempotent

Cancels a promise by releasing it under the owner's authority, naming the version; marks a terminal cancellation separate from failed fulfillment.

Instructions

The result owner releases the promise, naming a version. This is a terminal state of its own and stands apart from a failed fulfilment.

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>",
      "owner": "<owner>"
    },
    "name": "cancel_by_owner"
  }
}

Input Schema

NameRequiredDescriptionDefault
ownerYes
versionNo
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

B3.4/5.0
Behavior3/5

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

Annotations already declare a non-read-only, idempotent, non-destructive mutation, so the safety profile is covered. The description adds genuine state-machine context by calling this a terminal state separate from failure, but it omits what happens on version mismatch, whether the promise becomes unfulfillable afterward, and any authorization requirement.

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 short sentences with no filler, and the actor and terminal-state framing are front-loaded. The phrasing is abstract enough that an agent may need a second read, but nothing is redundant.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. Still, for a state-transition tool the description should say what a version conflict does and whether cancellation is reversible; those gaps matter more than the missing return detail.

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 0%, so the description must carry the burden. It sheds light on two of three parameters by tying the action to the 'result owner' and to 'naming a version', implying identity and concurrency semantics, but promise_id is unexplained and version is never described as an optimistic-concurrency token.

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 actor and action: the result owner releases a promise, with a named version. It also explicitly separates this terminal state from a failed fulfilment, which helps distinguish it from failure-path siblings like impossible_in_scope. The wording 'releases' rather than 'cancels' leaves a slight terminology gap against the tool name.

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 implies when to use it by framing the call as a terminal state distinct from a failed fulfilment, which is a useful selection signal. However, it never states prerequisites (must the caller be the owner?), nor does it name an alternative tool or the condition that would select one instead.

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