Skip to main content
Glama
zionto

ibkr-mcp

by zionto

flex_analyze_cash_utilization

Calculate the percentage of your Net Liquidation Value that is free cash after reserving for potential short put assignments. Answers how much cash is truly available.

Instructions

Calculate free cash as a percentage of Net Liquidation Value (Net Liq), after deducting cash reserved for short (sold) put obligations.

When a put is sold, the seller must be able to purchase the underlying if assigned. The worst-case cash reservation per contract is:

strike × multiplier × |quantity|

This tool answers: "Of my total Net Liq, how much of my cash is actually free — not spoken for by open short-put assignments?"

Uses the most recent equity-summary row for Net Liq and cash, and the current open-positions snapshot for short puts.

Returns JSON: net_liq — total portfolio value in base currency gross_cash — cash balance from equity summary reserved_for_puts — worst-case assignment obligation of all short puts free_cash — gross_cash − reserved_for_puts free_cash_pct_net_liq — free_cash / net_liq × 100 (the headline %) cash_pct_net_liq — gross_cash / net_liq × 100 (for reference) currency — base currency of the account as_of_date — equity summary report date used short_puts — per-position breakdown of the reservation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xml_contentYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses data sources (most recent equity-summary row, current open-positions snapshot), explains the worst-case reservation formula, and lists all return fields. It stops short of discussing edge cases (e.g., no short puts, negative cash) but otherwise is transparent.

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 lengthy but every section earns its place: formula, purpose, data sources, and a clear bulleted list of return fields. The formatting improves scannability and avoids redundant prose.

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 (multi-step calculation, multiple outputs), the description is nearly complete—it covers inputs loosely, the formula, data sources, and all return fields. It falls short only in not addressing error conditions or input format details, and there is no usage guidance vs siblings. Still, it provides enough for an agent to invoke correctly assuming the XML input is understood from context.

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

Parameters2/5

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

The only parameter 'xml_content' has 0% schema description coverage, and the tool description does not explain what XML content should be provided or its expected format. Given the low schema coverage, the description was required to compensate, and it fails to do so beyond the parameter name itself.

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 ('Calculate') and names the exact resource (free cash as percentage of Net Liq after short-put reservations). It clearly distinguishes itself from sibling analysis tools (pnl, dividends, portfolio history) by focusing on cash utilization and short-put obligations.

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?

The description provides clear context by stating the question it answers ('Of my total Net Liq, how much of my cash is actually free...'). However, it does not explicitly mention when not to use it or reference alternative tools, so it lacks exclusions.

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