Skip to main content
Glama
mcp-cappz-marketplace

mcp-cappz-marketplace

Official

market_cancel

Cancel an unfunded contract before any payment moves and record the reason; use refund, release, or dispute once money has been paid.

Instructions

Buyer or seller: cancel a contract nobody has funded or paid (an abandoned order, a deal that fell through), with the reason recorded. It counts neither as finished nor as a dispute. Once money has moved, use release, refund or dispute instead.

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": "<contract>",
      "reason": "<reason>"
    },
    "name": "market_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoPractice market only: act as this party id.
demoNoUse the practice market on this computer (nothing published, no real money).
reasonYesWhy it is cancelled (recorded on the log).
networkNoWhich market (default testnet). Validate on testnet, then use mainnet (real XRP).
contractYesContract id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv16.9.1

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that the reason is written to the log, that the cancellation counts neither as finished nor as dispute, and that either buyer or seller may invoke it. It stops short of stating whether cancellation is final/reversible, what permissions or state preconditions are enforced, or what is returned.

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 actor and action, then the usage condition, then the exclusion routing. Every sentence carries distinct information with no filler.

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?

For a five-parameter mutation tool with no annotations and no output schema, the description covers the when, the when-not, and the state effect (not finished, not a dispute, reason logged). It leaves return behavior and irreversibility implied, which is a minor gap rather than a blocking one.

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 100%, so the schema already documents contract, reason, network, demo and as, giving a baseline of 3. The description adds only the meaning of reason (recorded on the log) and the funded-state constraint on contract; it says nothing about as/demo/network behavior beyond what the schema says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb-plus-resource ("cancel a contract") and narrows the scope precisely ("nobody has funded or paid ... an abandoned order, a deal that fell through"). It also names the sibling tools it is NOT (release, refund, dispute), so an agent can route without opening another schema.

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

Usage Guidelines5/5

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

Gives both sides of the decision: use this for an abandoned or failed deal with no money moved, and explicitly switch to release, refund or dispute once money has moved. The gating condition (funded/paid) is unambiguous and actionable.

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