Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

set_stop_loss_orders

Automatically set trailing stop-loss orders for all positions as an all-preview or all-execute batch, with approval required by default.

Instructions

Automatically set stop loss orders for all positions.

Approval-required by default; re-call with confirm=True to transmit the full batch of trailing stops, or set IBKR_MCP_AUTONOMOUS_EXECUTION=true to skip approval. The batch is always all-preview or all-execute -- never a partial mix.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_stop_loss_orders"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
trail_amountNo
trail_percentNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden and does well: it discloses the default approval gate, the confirm re-call pattern, the autonomous-execution override, and that the batch is atomically all-preview or all-execute. It does not explain what happens to existing stop orders or how partial failures are handled, but the execution semantics are unusually clear.

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 short and front-loaded: the primary action comes first, followed by the approval and atomic-batch constraints. Every sentence adds necessary operational information with no filler.

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?

The approval flow and atomic-batch behavior are well covered, and the presence of an output schema reduces the need to explain return values. However, for a trading mutation tool with three undocumented parameters, the description is incomplete on how trail_amount and trail_percent must be specified.

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 compensate for all three parameters. It explains confirm=True but says nothing about trail_amount versus trail_percent, whether they are mutually exclusive, their units, or what happens if both or neither are supplied.

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 states a specific verb and resource ('set stop loss orders') and a clear scope ('for all positions'), which distinguishes it from single-order tools like place_trailing_stop. It does not explicitly name a sibling alternative, but the all-positions batch scope is enough for an agent to tell it apart.

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 description gives clear procedural guidance for approval: it is required by default, and the agent must re-call with confirm=True or set an environment variable to execute. However, it does not explain when to use this batch tool versus place_trailing_stop or place_order, nor does it describe prerequisites or risk conditions.

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