Cancel a commitment
cancel_commitmentCancels a commitment when the caller (verified by EIP-712 proof) holds buyer or authority authorization with cancel scope. Terminal and nonfinancial � no payment, refund, or settlement is executed. Reconciles authoritative state first. Idempotent via idempotencyRef.
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
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The caller's role (cancel requires buyer or authority) | |
| proof | Yes | EIP-712 AuthorityProof signed by the caller (issuer = signer) | |
| reason | No | Cancellation reason (recorded as authority reference) | |
| agentId | Yes | The caller's durable agent identifier | |
| commitmentId | Yes | The commitment id | |
| idempotencyRef | No | Caller-scoped idempotency reference |