Skip to main content
Glama

Cancel a commitment

cancel_commitment

Cancels an issued or accepted commitment under an active buyer authorization with cancel scope. Nonfinancial: no rail cancellation, refund or settlement. Supply the same idempotencyRef for a retry.

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": {
      "commitmentId": "<commitmentId>",
      "agentId": "<agentId>",
      "role": "<role>",
      "proof": "<proof>"
    },
    "name": "cancel_commitment"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe caller's role; the transition RPC requires buyer for cancellation
proofYesEIP-712 AuthorityProof signed by the caller (issuer = signer)
reasonNoCancellation reason (recorded as authority reference)
agentIdYesThe caller's durable agent identifier
commitmentIdYesThe commitment id
idempotencyRefNoCaller-scoped idempotency reference

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / role / description
      Previous value: -"The caller's role (cancel requires buyer or authority)"New value: +"The caller's role; the transition RPC requires buyer for cancellation"
  2. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description does real work by bounding the effect ('Nonfinancial: no rail cancellation, refund or settlement') and explaining retry semantics via idempotencyRef. It stops short of stating whether cancellation is final or reversible, what commitment state results, and what a successful response looks like — all material for a state-transition mutation.

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?

Three short sentences, front-loaded with the verb and resource, then the effect boundary, then the retry hint. No sentence is redundant or restates the tool title.

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?

Handles the highest-risk unknowns for a 6-parameter, nested-proof mutation with no output schema and no annotations: state precondition, absence of financial side effects, and idempotent retry. Missing only failure/error behavior and post-condition state, which keeps it short of fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description earns an increment by adding retry behavior to idempotencyRef ('Supply the same idempotencyRef for a retry'), which the schema only labels as a caller-scoped reference. It adds nothing for role, proof, reason, agentId, or commitmentId, which the schema already documents.

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?

Names a specific verb and resource ('Cancels an issued or accepted commitment') and qualifies the precondition state ('under an active buyer authorization with cancel scope'), which lets an agent tell this apart from accept_commitment or prepare_commitment. However, the nearby sibling close_commitment is never mentioned, so the cancel-vs-close boundary must be inferred.

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 through preconditions (issued/accepted state, active authorization with cancel scope), so an agent can infer when the call will succeed. There is no explicit when-not guidance, no routing to close_commitment or raise_dispute for the adjacent cases, and the buyer-role requirement is only surfaced in the schema.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.