Skip to main content
Glama

Close a fulfilled commitment

close_commitment

Finalizes a settled commitment with active system authorization and finalize scope. No settlement, escrow release, or refund. Supply the original idempotencyRef to replay the same authorized close.

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": "close_commitment"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleYesThe caller's role; the transition RPC requires system to finalize
proofYesEIP-712 AuthorityProof signed by the caller (issuer = signer)
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 (close requires system or authority)"New value: +"The caller's role; the transition RPC requires system to finalize"
  2. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the system-authorization requirement, finalize scope, idempotency replay via idempotencyRef, and that no settlement or refund occurs, but it does not state reversibility, side effects, or failure behavior for this finalization operation.

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 sentences, front-loaded with the core action and immediately followed by scope exclusions and the idempotency replay instruction. No filler or redundant restatement.

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 finalization mutation with five parameters, a nested proof object, no annotations, and no output schema, the description covers purpose, authorization, exclusions, and idempotency. It still leaves gaps around what finalization changes, error conditions, and whether the close is reversible.

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 coverage is 100%, so the schema already documents all five parameters. The description adds meaningful semantics for idempotencyRef by explaining it replays the same authorized close, and it reinforces the role requirement by noting active system authorization, going beyond the schema text.

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 verb and resource: 'Finalizes a settled commitment.' It adds scope exclusions ('No settlement, escrow release, or refund') that help distinguish it from settlement-related actions, though it does not explicitly name sibling tools like cancel_commitment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear context for use: the commitment must be settled and require active system authorization with finalize scope. The exclusions clarify what the tool does not do, but there is no explicit routing to alternatives such as cancel_commitment or accept_commitment.

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.