Skip to main content
Glama
zionto

ibkr-mcp

by zionto

flex_parse_cash_txns

Extract cash transaction records from Interactive Brokers Flex XML reports, filter by transaction type, symbol, or date, and get counts and totals.

Instructions

Extract cash transaction records from a Flex XML report.

Common transaction_type values: Dividends, "Withholding Tax", "Broker Interest Paid", "Broker Interest Received", "Other Fees".

Args: xml_content: Raw Flex XML string. transaction_type: Filter by transaction type substring (case-insensitive, optional). symbol: Filter by symbol (optional). from_date: Earliest date, YYYY-MM-DD (optional). to_date: Latest date, YYYY-MM-DD (optional).

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolNo
to_dateNo
from_dateNo
xml_contentYes
transaction_typeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are present, so the description carries the transparency burden. It discloses input parameters, return structure, and case-insensitive filtering, but does not mention edge cases, error behavior, or confirm it is read-only. For a parsing tool, this is moderate transparency.

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 well-structured: a one-sentence summary, common values list, parameter list, and return format. Each section earns its place with no filler, making it easy to scan.

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 complexity (5 parameters, no annotations, no detailed output schema shown), the description covers the essential aspects: purpose, all parameters, and return JSON structure. It lacks explicit usage guidance relative to siblings and error handling, but is largely complete for selecting and invoking the tool 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?

Schema description coverage is 0%, and the description fully compensates by explaining each parameter in detail, including filter semantics, date format (YYYY-MM-DD), and case-insensitive substring matching for transaction_type. It also provides common transaction_type values, adding 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 uses a specific verb 'extract' with a clear resource ('cash transaction records from a Flex XML report'), which immediately distinguishes it from sibling tools that parse trades, positions, etc. The mention of common transaction types further clarifies scope.

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

Usage Guidelines4/5

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

Provides clear context for when to use the tool (extracting cash transactions from Flex XML) and describes filtering options. Does not explicitly mention alternatives or exclusions, but the context is sufficiently clear for selection.

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