Skip to main content
Glama

Trade candidates

trade_candidates
Read-onlyIdempotent

Read buy or sell candidates. side is required (buy or sell). Each row carries one company rating (0-100, 50 neutral), its reasons, the plan decision (included/excluded/capped with reasons and amount), input coverage, and ownedEur (null when not held). A candidate the lot engine has lots for (every sell candidate, and a buy candidate that is already held) also carries taxFreeValueEur and taxFreeQty — how much of the position has already passed the holding-period test, in the display currency and in units — and nextMaturity {date, qty, valueEur}, the earliest still-future time-test date for that holding: with taxFreeValueEur 0 it is what to say instead of 'nothing', and it is absent where no open lot has a maturity date (no time test applies). All three are absent where there are no tracked lots. Funds/crypto have rating null. Legacy score is action strength, not the company rating. criteriaWeights gives the saved weights; buyCandidateSource names the buy list — side=buy holds exactly that universe (owned, starred, or both, per Settings > Trades), so a symbol outside it is not scored and has no row; side=sell is always the holdings. symbol (one ticker), symbols (SEVERAL tickers in one call — never ask once per ticker), driver and owned narrow the list. fields attaches extra fundamentals to EVERY row under fundamentals — forwardPE, peg, marketCap, fcfYield, analystUpside, fairValue and the rest — so 'forward P/E and PEG for the recommended buys' is ONE call, not one per candidate. limit is 1-25 (default 10) with offset/nextOffset. why=true is the answer to 'why is WDC scored 72': every item then also carries why, the per-criterion breakdown the Trades tab's score expander shows — criterion, label, raw (in unit), weight, the 0-100 score, contribution (its points: the contributions add up to the rating) and one sentence from the engine, plus stage — the earnings stage that splits Quality and Valuation between their profit rows and growth readings. One the data could not support has score null and applied false — it drops out and the remaining weights renormalize rather than counting as zero. why is expensive, so pass symbol (or a small limit) with it: at most 3 breakdowns come back per call. These are CANDIDATES, not orders: what to actually buy and sell, with amounts, is get_trade_plan. 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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "side": "<side>"
    },
    "name": "trade_candidates"
  }
}

Input Schema

NameRequiredDescriptionDefault
whyNo
sideYes
limitNo
ownedNo
driverNo
fieldsNoExtra fundamentals to attach to EVERY candidate in the answer, under `fundamentals`: name, sector, industry, price, marketCap, forwardPE, trailingPE, peg, fcfYield, earningsGrowth, revenueGrowth, returnOnEquity, profitMargins, dividendYield, targetMeanPrice, analystUpside, shortPercentOfFloat, fairValue, fairValueUpsidePct.
offsetNo
symbolNo
symbolsNoNarrow to SEVERAL tickers in one call — the batch form of symbol, up to 25. The two are mutually exclusive.
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.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, but the description adds substantial behavior beyond them: which rows carry taxFreeValueEur/taxFreeQty/nextMaturity and which do not, that funds/crypto return rating null, that a null-score criterion renormalizes weights rather than counting as zero, and a hard cost limit of "at most 3 breakdowns come back per call." It also flags a deprecation contract (the '…Eur' twins) with the forward-compatible field name to read instead.

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

Conciseness3/5

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

The essential scope is front-loaded in the first sentence, but the body is a dense wall of run-on sentences with heavily nested parentheticals that is hard to scan. The most important differentiator — "these are CANDIDATES, not orders" — is buried near the end instead of up front, and the fields enumeration duplicates the schema's own description verbatim.

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?

For a 12-parameter tool with no output schema and only 25% schema coverage, the description is unusually complete: it describes the row shape (rating, reasons, plan decision, coverage, ownedEur), the conditional lot-derived fields, the why breakdown structure, and pagination. What is missing is minor plumbing (dashboardId preconditions, idempotencyKey, expectedRevision), which the schema partially documents on its own.

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

Parameters4/5

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

Schema coverage is only 25%, so the description must compensate and largely does: side's two values, symbol vs symbols batching, limit's 1-25 range with default 10 plus offset/nextOffset, the fields payload and its per-row attachment point, and why's cost profile with the 3-breakdown cap. Gaps remain for driver (the ten enum values are never explained), owned (only "narrow the list"), and dashboardId/idempotencyKey/expectedRevision get no mention at all.

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?

Opens with a specific verb+resource ("Read buy or sell candidates") and immediately differentiates from the sibling get_trade_plan: "These are CANDIDATES, not orders: what to actually buy and sell, with amounts, is get_trade_plan." It also states scope boundaries (side=buy holds exactly the buyCandidateSource universe; side=sell is always the holdings), so an agent can route correctly without opening another schema.

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?

Explicit when-and-how guidance throughout: side is required, symbols is "SEVERAL tickers in one call — never ask once per ticker", fields makes "'forward P/E and PEG for the recommended buys' is ONE call, not one per candidate", and why=true is prescribed for "why is WDC scored 72" but warned as expensive so it should be paired with symbol or a small limit. It even names the alternative tool for order-sized answers.

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.