Skip to main content
Glama

AlgoVesta MCP Trading

get_trade_history

Read-onlyIdempotent

Returns the user's CLOSED trades and a performance summary, across crypto exchanges, MetaTrader 5 and the paper account in one list.

Each trade carries symbol, side, size, entry/exit price, SL/TP, PnL, venue, source
(telegram / webhook / mcp / manual) and timestamps. The summary adds win rate,
total PnL, average R-multiple and a per-venue breakdown.

HOW TO READ THE SUMMARY:
- `avg_rr` is computed only from trades where entry, SL and exit are ALL known;
  `rr_sample` tells you how many trades that was. A 3-trade average is not evidence.
- `total_pnl` is null when several account currencies are mixed (e.g. a EUR MT5
  account next to USD crypto). `pnl_by_currency` keeps them apart; amounts in different currencies are not summed.
- `fee` is null because commission is not recorded; PnL is therefore GROSS on crypto.
- `incomplete_sources` means part of the history could not be read - the summary is
  then incomplete.

This is a read operation with no side effects. It is history only; it does not tell you what will happen next, and past results do not predict
future ones.

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_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days (1-365). Only trades CLOSED inside this window are returned.
limitNoMaximum number of trades to return (1-200), newest first.
venueNoOptional venue filter: 'paper', an exchange name (e.g. binance), 'mt5', or a specific MT5 account like 'mt5:12345678'. If omitted, every venue is included.
marketNoOptional market filter: 'crypto', 'forex' or 'paper'.
symbolNoTrading symbol, e.g. BTCUSDT, ETHUSDT, EURUSD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description still adds substantial behavioral context: avg_rr is computed only on trades with entry/SL/exit known and rr_sample reports the sample size, total_pnl is null when currencies are mixed, fee is null so crypto PnL is gross, and incomplete_sources signals partial reads. That is exactly the caveat material an agent needs before quoting numbers to a user.

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

Conciseness4/5

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

Front-loaded with what is returned, then a clearly headed 'HOW TO READ THE SUMMARY' block, so an agent can skim the caveats. It is slightly long and the closing 'past results do not predict future ones' is partly filler, but every caveat bullet carries real information.

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?

There is no output schema, so the description must carry the return shape itself, and it does: per-trade fields (symbol, side, size, entry/exit, SL/TP, PnL, venue, source, timestamps) and summary fields (win rate, total PnL, avg R-multiple, per-venue breakdown) with null semantics explained. Nothing material is missing for a 5-parameter read tool.

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 description coverage is 100% and the schema already documents days (1-365, closed inside window), limit (1-200, newest first), venue formats and market values. The description adds only ambient context (which venues exist, the source field) and no syntax or defaulting detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Returns the user's CLOSED trades and a performance summary') plus the cross-venue scope (crypto, MetaTrader 5, paper) in one list. The uppercase CLOSED plus 'It is history only' immediately separates it from open-order/position siblings such as list_open_orders and get_portfolio_context.

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?

Gives clear usage boundaries: closed trades only, within a look-back window, and explicitly 'history only; it does not tell you what will happen next', which rules out forecasting use. It stops short of naming a concrete alternative for open positions or portfolio state, so routing to siblings is implied rather than explicit.

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.