Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Cancel Open Order

cancel_order
Destructive

Cancel an existing open Schwab order by order_id; respects read-only and dry-run safety settings to prevent unintended live cancellations.

Instructions

Cancel an existing open order by order_id (respects SCHWAB_READ_ONLY and SCHWAB_DRY_RUN).

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": {
      "order_id": "<order_id>"
    },
    "name": "cancel_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNo
order_idYes
confirm_liveNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, idempotentHint=false, so the destructive character is known. The description adds genuinely useful context that behavior is gated by SCHWAB_READ_ONLY and SCHWAB_DRY_RUN, but it doesn't say what actually happens under those flags (error, no-op, simulated success) or whether cancellation is reversible.

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 the key identifier and environment flags; no wasted words. Slightly terse given the tool's risk profile.

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?

Output schema exists so return values need not be described, and the environment-flag note is helpful. However, an undocumented live-confirmation parameter on a destructive trading action is a meaningful completeness gap for the agent to act safely.

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 carry parameter meaning, but it only covers order_id. The account parameter and especially confirm_live — critical for a live destructive action — are left completely unexplained.

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 and resource ('Cancel an existing open order by order_id') plus a scope constraint that it only works on open orders. It does not name or contrast with siblings like replace_order, but an agent can tell what it does from the sentence alone.

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?

'existing open order' implies the precondition that only open/pending orders can be cancelled, but there is no explicit when-to-use vs. replace_order, no guidance on what to do if the order is already filled, and no mention of the required authorization state beyond the flag names.

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