Skip to main content
Glama
IBKR MCP Server

IBKR MCP Server

detect_rollover_needed

Checks whether a futures contract needs rollover by evaluating its symbol, exchange, and configurable days-before-expiry threshold.

Instructions

Check if futures contract rollover is needed.

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

Input Schema

NameRequiredDescriptionDefault
symbolYes
exchangeNoCME
days_beforeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.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 the full behavioral burden and does not meet it. It never states that this is a read-only check, what the result means (boolean, rollover date, recommended action), or how exchange and days_before influence the determination.

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 filler, but its brevity reflects under-specification rather than economy. Nothing is wasted, yet almost nothing is conveyed.

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 values need not be explained, but the tool still leaves three undocumented parameters and no behavioral context. For a check that drives a trading decision, an agent has no basis to interpret the result or choose parameter values.

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

Parameters1/5

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

Schema description coverage is 0% across three parameters, and the description adds no meaning for any of them. It does not explain the expected symbol format, what the exchange default of CME implies, or what a days_before window of 5 means for the rollover decision.

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 names a specific verb and resource: checking whether a futures contract needs rollover. An agent can immediately tell what the tool answers, though it does not distinguish itself from siblings such as get_futures_chain or get_contract_byconid.

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 call this versus related tools like get_futures_chain or get_contract_byconid, nor any prerequisites or exclusions. The only implied context is that the caller already holds a position in a futures contract.

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