Skip to main content
Glama

Batch cancel short-term orders

batch_cancel
DestructiveIdempotent

Cancel multiple SHORT_TERM orders in one tx. SHORT_TERM only (chain limitation) — for stateful/mixed use cancel_all_orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marketYes
clientIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=true, so the safety profile is clear. The description adds that the operation is performed in one transaction and is limited to SHORT_TERM orders, which is useful but does not deeply disclose behavior like error handling or result format.

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?

The description is two sentences with no unnecessary words. It is front-loaded with the core action and immediately provides differentiation from siblings. Extremely efficient.

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?

The description covers key constraints (order type, batching) and sibling alternatives, but lacks information about return values (no output schema) and does not explain parameter semantics. For a tool with 2 required params and no output schema, it is partially complete.

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?

Schema description coverage is 0%, so the description must compensate. It does not explain that 'market' identifies the trading market and 'clientIds' are the order client IDs. The parameter names are somewhat self-explanatory, but the description adds no explicit semantics or constraints beyond what the schema provides.

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?

The description clearly states the verb 'Cancel', the resource 'multiple SHORT_TERM orders', and the context 'in one tx'. It also distinguishes from the sibling tool 'cancel_all_orders' by specifying the order type limitation.

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?

The description explicitly tells when to use this tool (for SHORT_TERM orders) and when not (for stateful/mixed orders, use cancel_all_orders). It also mentions a chain limitation, providing clear guidance.

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