Skip to main content
Glama

order_modify

Modify an existing open Interactive Brokers order by order ID, updating fields such as side, quantity, order type, time-in-force, and prices to adjust live order parameters.

Instructions

Modify an existing open order. Requires the same fields as order_place plus the orderId to modify.

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": {
      "orderId": "<orderId>",
      "side": "<side>",
      "quantity": "<quantity>",
      "orderType": "<orderType>"
    },
    "name": "order_modify"
  }
}

Input Schema

NameRequiredDescriptionDefault
tifNo
sideYes
conIdNo
symbolNo
orderIdYesOrder ID to modify
secTypeNo
auxPriceNo
currencyNo
exchangeNo
quantityYes
transmitNo
orderTypeYes
limitPriceNo
outsideRthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full behavioral burden, but it only states that the order must be open and that the field set resembles order_place. It does not explain whether the modification replaces all order fields or is partial, what permissions are required, whether changes are reversible, or how the broker responds to an invalid modification.

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 short sentences, front-loaded with the operation and resource, and every phrase contributes to identifying the tool and its required context. There is no redundant or filler wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex 14-parameter mutation tool with no annotations, no output schema, and very low schema description coverage. The description gives only the minimum context—existing open order plus order_place-style fields—and omits critical behavioral and parameter details an agent would need to invoke it reliably.

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 coverage is only 7%, with just orderId directly documented, so the description needs to compensate for 14 parameters. Saying 'same fields as order_place plus the orderId' is useful cross-tool guidance, but it leaves most parameters—such as tif, auxPrice, transmit, and outsideRth—without any meaning or format details in the description itself.

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?

The description clearly states a specific verb and resource: modify an existing open order. It is distinguishable from order_place because it targets an existing order, though it does not directly clarify its boundary with order_cancel or other order-management siblings.

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?

Usage is implied by 'existing open order,' which tells the agent this applies to an order that has already been placed and is still open. It does not explicitly state when to prefer order_modify over order_cancel or order_preview, nor does it mention exclusions or prerequisites beyond the open-order condition.

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

Deploy Server

Other Tools