Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

check_risk_limits

Checks the current portfolio against configured risk limits to detect breaches before trading or rebalancing.

Instructions

Check current portfolio against risk limits.

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": "check_risk_limits"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries full behavioral burden. It does not state that the operation is read-only, which limits are evaluated, whether the check uses live or end-of-day positions, or whether a breached limit is merely reported or blocks trading. The presence of an output schema covers return values, but the behavioral profile remains largely undisclosed.

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?

A single front-loaded sentence with no redundant wording. Nothing can be trimmed without losing the core purpose statement.

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?

Complexity is low (no inputs, output schema present), so the description is close to sufficient. Still, for a risk gate that an agent may call before placing orders, the missing scope of the limits checked and the read-only nature leave a meaningful gap.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate. Baseline 4 applies: the description cannot add parameter meaning that the schema does not need.

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: 'Check current portfolio against risk limits.' An agent knows it evaluates portfolio state against limits. However, it doesn't specify which limits (buying power, concentration, margin, position size) or how it differs from nearby analysis tools like calculate_var or circuit_breaker_status.

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 word 'Check' implies a pre-trade or monitoring use case, so the intent is inferrable, but there is no explicit when-to-use guidance, no stated prerequisites, and no routing to or away from alternatives such as circuit_breaker_status or get_account_summary.

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