Skip to main content
Glama

Trade plan

get_trade_plan
Read-onlyIdempotent

Read the Trade plan card: suggested orders, their company ratings and decision reasons, buy/sell/net/leftover amounts, constraints and sellLotCoverage. Each order's amountEur is the card's Amount, sharePct its Share (percent of that side's budget), rating its Rating (0-100, 50 neutral, null for funds/crypto) and, on sells, taxFreeValueEur/nextMaturity its Tax-free now column; the card's Run historical backtest button opens the historical simulation the backtest_trades tool runs. tradePlanning carries saved controls; planning describes the result. Invest is new money; sales are independent and their proceeds stay cash. Every amount uses displayCurrency; the Eur suffix is legacy. Each '…Eur' field now also ships under its currency-neutral name (amountEur→amount, buyEur→buy, valueEur→value, totalEur→totalAmount); the '…Eur' twins are DEPRECATED and will be removed — read the neutral name. include:['candidates'] adds ranked candidates with inclusion, exclusion or cap reasons; ['taxOrientation'] adds tax lots. Funds/crypto have no company rating. No orders are placed. Default notes are brief; docs carries docs_lookup labels for the simplified planner, verbose:true includes full notes. unavailableReason explains a missing plan. symbols {buys, sells} lists the plan's tickers, ready to pass as symbols to holding, market_lookup, price_on or trade_candidates in ONE call. Each sell order carries taxFreeValueEur/taxFreeQty (the whole position's tax-free capacity today) beside taxFreeEur (the exempt slice of that one order), and nextMaturity {date, qty, valueEur} — the earliest still-future time-test date for that holding, what to report when taxFreeValueEur is 0 ('nothing is tax-free today; the next lot matures on …'); null where no open lot has a maturity date at all. The same orders and contextRevision are in get_context portfolio.tradePlan.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_trade_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
includeNo
verboseNo
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: no orders are placed, Eur-suffixed fields are deprecated in favor of currency-neutral names, amounts are in displayCurrency, unavailableReason explains a missing plan, and tax-free/nextMaturity semantics are spelled out.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a dense, run-on block of roughly 300 words with repeated material (taxFreeValueEur/taxFreeQty explained twice) and deprecation trivia competing with core semantics. The key purpose is front-loaded, but the middle is hard to parse and could be cut substantially without losing decision-relevant information.

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 no output schema and a complex return shape, the description does the heavy lifting well: it explains field mappings, currency, tax columns, and cross-tool symbol reuse. The main gap is the unexplained idempotencyKey and expectedRevision parameters, which matter for a revision-pinned read.

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 coverage is only 20%, so the description must compensate. It does explain include values and verbose:true, but 'bothSides' is left undefined and idempotencyKey and expectedRevision receive no explanation at all, leaving two of five parameters undocumented anywhere.

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 opening sentence gives a specific verb and resource ('Read the Trade plan card') and enumerates its contents: suggested orders, ratings, decision reasons, amounts, constraints, sellLotCoverage. It also distinguishes itself from siblings by naming backtest_trades as what the card's button opens and get_context portfolio.tradePlan as a duplicate source of the same data.

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?

It explains the include options ('candidates' adds ranked candidates with reasons, 'taxOrientation' adds tax lots) and states 'No orders are placed', plus notes the data is also available via get_context portfolio.tradePlan. It does not explicitly say when to prefer this tool over get_context, so the routing guidance is implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.