Skip to main content
Glama
LuxAlgo

LuxAlgo Library MCP

Official
by LuxAlgo

Trade history

broker_trades

Retrieve executed trades from connected accounts, newest first, with optional broker/symbol filters. Pass the result to propfirms_simulate_trades to simulate prop-firm challenge odds.

Instructions

Executed trades across all connected accounts (the most recent window each broker exposes), newest first. Optionally filter by broker id and/or symbol. To simulate prop-firm challenge odds from this history, pass this tool's JSON result (the {trades: [...]} object) straight into propfirms_simulate_trades as tradeLogText, with importRisk set to the risk taken per trade. Filter to one broker/account first when several are connected: mixed-account histories are refused rather than replayed as one equity curve.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax trades to return (default 100)
brokerNoBroker id to filter by
symbolNoSymbol to filter by, e.g. 'BTC' or 'AAPL'

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden, and it delivers: it discloses the broker-specific recency window, newest-first ordering, the output shape, and the critical refusal behavior for mixed-account histories. This adds meaningful context beyond the raw schema.

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 three dense sentences, each earning its place. It front-loads the core purpose and ordering, then gives the integration workflow, then the critical warning. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no annotations and no output schema, the description provides enough context to invoke the tool correctly: what it returns, how results are ordered, available filters, how to use the result downstream, and a key constraint. The schema covers parameter limits, so no critical information is missing.

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 description coverage is 100%, so the baseline is 3. The description adds value by clarifying that broker/symbol filters are optional and, more importantly, by explaining the broker-filtering requirement when multiple accounts are connected. This goes beyond the schema's simple parameter descriptions.

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 identifies the tool as returning executed trades across all connected accounts, with an explicit ordering ('newest first') and optional filters. This distinguishes it from sibling tools like broker_positions, broker_stats, and broker_accounts.

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 gives strong usage context: it explains how to feed the result into propfirms_simulate_trades and warns to filter to one broker/account first because mixed-account histories are refused. It does not explicitly name alternatives like broker_positions, but the workflow and constraints are clear.

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