Skip to main content
Glama
schwab-mcp

schwab-mcp

by HGZ-20

Replace Open Order

replace_order
Destructive

Modify or replace an existing open Schwab order by submitting a new order payload for a given order ID, with optional dry-run and live confirmation controls.

Instructions

Replace/modify an existing open order with a new Schwab order payload.

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>",
      "new_order_payload": "<new_order_payload>"
    },
    "name": "replace_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNo
dry_runNo
order_idYes
confirm_liveNo
new_order_payloadYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the description could have focused on adding context such as whether the original order is cancelled first, what happens on partial failure, and when confirm_live must be set. It adds none of that; the only behavioral hint is the word 'Replace', which duplicates the name. No contradiction with annotations, but minimal added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no wasted words, which is the right shape. However, brevity here reads as under-specification for a destructive, nested-payload tool rather than disciplined concision.

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?

An output schema exists, so return values needn't be described, and the annotations carry the safety profile. What is missing is the operational detail for a destructive order-replacement with an opaque payload object and two confirmation flags, which the one-line description cannot cover.

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% across 5 parameters, including a free-form nested object (new_order_payload) and two safety-relevant flags (dry_run, confirm_live) whose semantics are entirely undefined. The description only gestures at new_order_payload, leaving account, order_id, and both gating flags unexplained in either structured or natural language.

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 pair (replace/modify) and resource (an existing open order) plus the required input (a new Schwab order payload), which distinguishes it from the place_* family and cancel_order. It stops short of naming those siblings explicitly, so differentiation is inferable rather than explicit.

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

Usage Guidelines2/5

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

There is no guidance on when to replace versus cancel-and-replace, whether the target order must be a specific type or state, or what preconditions apply. Nothing is said about the safety-gating parameters (dry_run, confirm_live), which is exactly the context an agent needs before invoking a destructive mutation.

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