Skip to main content
Glama

Cancel Pending Order

cancel_broker_order
Destructive

Cancel a pending order (limit/stop order waiting to be filled) on a broker account. The order will be removed from the broker and will not be filled. This does not affect any existing open positions.

Input Schema

NameRequiredDescriptionDefault
orderIdYesThe pending order ID (from get_positions)
brokerAccountIdYesThe broker account ID (from get_positions)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the bar is lower. The description still adds real context beyond them: the order is removed from the broker, will not be filled, and open positions are untouched. It does not address reversibility or what happens if the order was already filled, but the added effect-scope detail is substantive.

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?

Two tight sentences, front-loaded with the action, and the second sentence (scope of effect on positions) earns its place by pre-empting a likely misreading. 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 simple two-parameter mutation with no output schema, the description covers what the tool does and its blast radius. Its only gaps are edge-case outcomes (order already filled, cancel failure) which an agent might want, but annotations plus the effect statement make it largely sufficient.

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 description coverage is 100% for both parameters, and each already documents its origin ('from get_positions'). The description contributes no parameter-level meaning at all, so the baseline 3 for a fully-documented schema is appropriate.

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?

States a specific verb+resource ('Cancel a pending order') and further narrows the scope with the parenthetical '(limit/stop order waiting to be filled) on a broker account', which implicitly separates it from cancel_conditional_order and cancel_suggested_order. It stops short of naming those siblings explicitly, so an agent must still infer the boundary.

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 line 'This does not affect any existing open positions' implies this tool is not the route for closing positions, nudging the agent toward close_position/modify_position, but no alternative sibling is named and no when-not condition is stated. Usage is inferred rather than instructed.

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