Skip to main content
Glama

Cancel before funding

mm_cancel_deal

Either side can cancel before the buyer locks the money.

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": {
      "deal_id": "<deal_id>",
      "token": "<token>"
    },
    "name": "mm_cancel_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesYour private deal token (from mm_create_deal or your deal link ?k=...)
reasonNo
deal_idYesDeal ID, like D-7KQ2M9AB

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose the key gating rule (cancellation is only possible pre-funding) and who may invoke it. It says nothing about irreversibility, what happens to the deal/escrow state afterward, whether a reason is required or surfaced, or what a successful call returns.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though arguably trimmed past the point where an agent gets the operational detail it needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a state-changing, likely irreversible operation on a deal with no annotations and no output schema, and one of three parameters is undocumented. The definition leaves effects, confirmation behavior, and the reason argument unaddressed, which is thin for a mutation tool.

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 coverage is 67%: deal_id and token carry their own descriptions, but 'reason' is undocumented in both places and the description never mentions it. The text adds no format, requirement, or meaning beyond what the schema already states.

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 ('cancel' a 'deal') and adds a timing qualifier ('before the buyer locks the money') that separates it from post-funding paths like open_dispute or refund_buyer. It does not name a sibling explicitly, which keeps it short of a 5.

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 gives a precondition and eligibility rule ('either side... before the buyer locks the money'), which implies when the tool is valid. It offers no explicit when-not guidance or named alternative for cases where funding has already happened, leaving the agent to infer that dispute/refund tools take over.

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.

Resources