Skip to main content
Glama
MrRolie

mm-ibkr-mcp

by MrRolie

Request Environment Change

request_environment_change

Request operator approval via Telegram to switch IBKR environment between live and paper trading. Returns approval ID for subsequent execution, with safety locks enabled.

Instructions

Send a request to the operator via Telegram to switch the IBKR connection between 'live' (real-money) and 'paper' (simulated) environments. Returns an approval_id — poll ibkr_check_approval_status until resolved. Once approved, you MUST use the ibkr_execute_environment_change tool with the approval_id to actually apply the change. Switching environments will automatically engage safety locks (orders disabled, dry-run enabled).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYes
target_envYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYesCurrent status: pending | approved | denied | expired | used.
expiresAtYesISO 8601 timestamp when the request expires.
approvalIdYesUnique approval identifier.
resolvedAtNoISO 8601 timestamp of resolution.
requestedAtYesISO 8601 timestamp when the request was created.
resolveNoteNoWho approved or denied.
approvalTypeYes'trade', 'trade_intent', or 'live_trading'.
telegramMessageIdNoTelegram message ID if sent.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations indicate openWorldHint (external side effects) and destructiveHint false; the description goes beyond these by explaining that the tool sends a message via Telegram, returns an approval_id for polling, and does not directly apply the change. It also discloses that safety locks will be enabled, providing meaningful behavioral context not present in the annotations.

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 compact and front-loaded, stating the core action in the first sentence and following with essential workflow steps. Every sentence adds value, with no filler or repetition of schema details.

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

Completeness4/5

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

With an output schema present, the description need not detail return values, but it does mention the approval_id and the polling step. It covers the key workflow and safety implications, though it omits potential error conditions or prerequisites such as operator availability. Overall, it is sufficiently complete for an agent to invoke it correctly.

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

Parameters3/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 explain parameters. It clarifies target_env by mentioning 'live' and 'paper' environments, but it does not explicitly define the allowed values or that the parameter is required. The reason parameter is not explained at all, leaving ambiguity about its purpose or format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: sending a request to an operator via Telegram to switch the IBKR connection between live and paper environments. It distinguishes itself from related tools like ibkr_execute_environment_change by explicitly noting that this tool only requests the change and does not apply it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on the workflow: after requesting, poll ibkr_check_approval_status until resolved, then use ibkr_execute_environment_change with the approval_id to apply the change. It also mentions the safety locks that will be engaged, giving clear context for when this tool should be used.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MrRolie/mm-ibkr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server