Skip to main content
Glama
zionto

ibkr-mcp

by zionto

flex_parse_equity

Extract daily NAV equity summaries from Interactive Brokers Flex XML reports, with optional date filtering, returning a count and list of summary rows.

Instructions

Extract daily NAV / equity summary rows from a Flex XML report.

Args: xml_content: Raw Flex XML string. from_date: Earliest report date, YYYY-MM-DD (optional). to_date: Latest report date, YYYY-MM-DD (optional).

Returns JSON: {"count": N, "equity_summary": [...]}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
to_dateNo
from_dateNo
xml_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Since no annotations are provided, the description carries the full burden. It sufficiently discloses input expectations (raw Flex XML string), optional date filtering, and output format (JSON with count and equity_summary). It implies a read-only parsing behavior, which is appropriate for this tool, though it does not cover error handling or edge cases.

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 concise and well-structured. The purpose statement is front-loaded, followed by a clear Args list and return format. Every sentence contributes useful information without unnecessary verbosity.

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?

Given the tool's simplicity (3 parameters, output schema present), the description covers the essential aspects: input, output, and date filtering. It could be slightly more complete by mentioning that the input must be a valid Flex XML report and that only equity summary rows are extracted, but it is largely sufficient for an agent to use correctly.

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

Parameters5/5

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

The schema description coverage is 0%, but the description compensates fully with an Args block that defines each parameter: xml_content is the raw Flex XML string, from_date is the earliest report date in YYYY-MM-DD (optional), and to_date is the latest report date in YYYY-MM-DD (optional). This adds significant meaning beyond the schema.

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 action ('Extract') and the specific resource ('daily NAV / equity summary rows from a Flex XML report'). It distinguishes itself from sibling parse tools like flex_parse_trades and flex_parse_positions by focusing on equity/NAV summary data.

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 implies usage through its purpose statement but lacks explicit guidance on when to choose this tool over alternatives. It does not mention exclusions or provide context for when to use the optional from_date and to_date parameters beyond their basic meaning.

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

Install Server

Other Tools

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/zionto/ibkr-mcp'

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