Skip to main content
Glama

Cancel contract

contract_cancel
DestructiveIdempotent

Cancel a draft or sent contract. Only draft and sent contracts can be cancelled.

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": {
      "contract_id": "<contract_id>"
    },
    "name": "contract_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
contract_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the agent knows this is a destructive but repeatable mutation. The description adds the meaningful state precondition, but says nothing about side effects, whether the contract is deleted or moved to a cancelled status, or how the change interacts with already-sent counterparts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, but the second sentence "Only draft and sent contracts can be cancelled" is a near-verbatim restatement of the first. One sentence would have conveyed the same information, so part of the text does not earn its place.

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?

There is no output schema and only one parameter, so the bar is modest, and the state eligibility rule is present. Still missing for a destructive mutation is what the tool returns or what state the contract ends in, plus any hint about the contract_id format.

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 a single required parameter, contract_id, with 0% schema description coverage and a non-trivial regex pattern that is left unexplained. The description never mentions the parameter, its expected contract identifier format, or example values, so it does not compensate for the missing schema documentation.

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 verb and resource ("Cancel a draft or sent contract") and states the eligible states, so the action is unambiguous. It does not distinguish this tool from siblings such as contract_update or contract_send, which is the only gap.

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?

The eligibility rule (only draft or sent contracts) gives an implied when-to-use condition. However, it does not say what to do for a contract in any other state — e.g., whether to use contract_update or some other flow — and offers no explicit alternative tool.

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.