Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

place_trailing_stop

Places a trailing stop order to protect gains or cap losses as the market moves, with approval required by default before transmission.

Instructions

Place a trailing stop order.

Approval-required by default; re-call with confirm=True to transmit, or set IBKR_MCP_AUTONOMOUS_EXECUTION=true to skip approval.

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": {
      "symbol": "<symbol>",
      "action": "<action>",
      "quantity": "<quantity>"
    },
    "name": "place_trailing_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
symbolYes
confirmNo
exchangeNoSMART
quantityYes
sec_typeNoSTK
trail_amountNo
trail_percentNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden, and it does disclose one non-obvious trait: calls are gated by an approval step unless an environment override is set. It does not say what the first (unconfirmed) call actually returns — a pending approval token, an error, or a no-op — nor that the tool transmits a live order with real financial consequence, nor any rate/permission constraints.

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 short paragraphs with zero filler, front-loading the operation and then the approval mechanic. Every sentence carries actionable information and nothing is repeated from the schema or title.

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?

An output schema exists, so return-value explanation is not required, but for an 8-parameter live-order mutation with no annotations the definition is thin: the trailing-stop sizing rules and the confirm round-trip's exact contract are both missing. An agent could easily call it without a valid trail amount or misread the first response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 8 parameters, so the description had to compensate and it only explains one: confirm, whose meaning and interaction with the env var is genuinely clarified. The critical trail_amount vs trail_percent relationship (mutually exclusive? is one required? what units?) plus action, quantity, sec_type and exchange are left entirely undocumented, which is a real gap for a live trading order.

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: 'Place a trailing stop order.' An agent immediately knows the instrument type, but the definition never distinguishes it from close siblings such as set_stop_loss_orders or place_adaptive_order, so the router must infer the choice from the name alone.

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?

The only procedural guidance is the approval workflow ('re-call with confirm=True', or set IBKR_MCP_AUTONOMOUS_EXECUTION=true). That is a confirmation mechanic, not when-to-use guidance: nothing says when a trailing stop is preferred over a fixed stop-loss or another order type, nor what preconditions (open position, buying power, market hours) must hold.

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