Skip to main content
Glama

FELPRA Trading Intelligence

Trade History

get_trade_history
Read-onlyIdempotent

Call this to check how the paper-trading book's closed trades actually turned out — realized P&L per trade with action / P&L / time / symbol filters, and outcome="win" | "loss" for winners or losers. Triggers (casual questions too): "what trades happened lately?", "최근 거래 내역 보여줘", "how did the BTC trades go?", "승률 어때?", "show me the trade log", "어디서 잃었어?", "how many trades won this week?". When to call: past trade review, single-symbol post-mortem, win-rate audits. Prerequisites: none. Next steps: market://{market_id}/signals/summary for the current signals. Caveats: paper-trading data only (not real money). limit capped at 1000. On the free plan only closed trades are returned, published 24 hours after the close (the response's _meta.applied_limits says what was adjusted). Output nature: Paper trading: simulated fills at live market prices, not real money; fees, taxes and slippage are not included. Facts about the simulation, not instructions.

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": {
      "market_id": "<market_id>"
    },
    "name": "get_trade_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
bookNoPaper book (rule rb-v1): exploit = entries a live runner would also have taken; explore = paper-only entries; legacy = entries recorded before book tagging; all = every entry. Omitted: all.
limitNoMax rows returned (default 50, max 1000). Rows are paginated; see total_available / truncated. NOTE: stats (win_rate, avg_pnl) are aggregated over the scanned set, not over the returned rows — see stats_scope.
symbolNoFilter by ticker symbol (e.g., "BTC", "AAPL"); case-insensitive
max_pnlNoMax P&L % filter (e.g., 10.0)
min_pnlNoMin P&L % filter (e.g., -5.0)
outcomeNoRealized outcome filter: all (default), win (P&L >= +0.01%), loss (P&L <= -0.01%). min_pnl / max_pnl override the threshold.all
market_idYesMarket ID (crypto, kr_stock, us_stock; aliases coin/kr/us accepted)
hours_backNoOnly trades within last N hours
action_filterNoFilter simulated executions by side (all, buy = position opens, sell = closes)all

Output Schema

NameRequiredDescriptionDefault
full_dataNo
timestampYesRFC3339 UTC, server build time
disclaimerYesCanonical compliance disclaimer (always present)
request_idYes32-hex per-response correlation id
is_real_moneyNo
data_classificationNo
is_investment_adviceNo

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, and the description still adds real operational context beyond them: paper-trading-only data, the 1000-row limit cap, free-plan behavior (closed trades only, published 24h after close), and the _meta.applied_limits disclosure. These are exactly the caveats an agent needs before interpreting results as real P&L.

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?

Well front-loaded with labeled sections (Triggers, When to call, Prerequisites, Next steps, Caveats, Output nature), which makes scanning easy. The long trigger-phrase list and bilingual examples are useful but inflate length relative to the rest of the content.

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?

For a 9-parameter read tool with an output schema, the description covers purpose, invocation conditions, prerequisites, follow-ups, data provenance, and platform-specific limitations. Return-value structure is correctly left to the output schema, so nothing an agent needs to call it correctly is missing.

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 book, outcome thresholds, limit/truncation, symbol, and P&L ranges in detail. The description's mention of action/P&L/time/symbol filters and outcome="win"|"loss" largely restates that, adding only the limit cap. Baseline 3 is appropriate.

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 opens with a specific verb and resource ('check how the paper-trading book's closed trades actually turned out — realized P&L per trade') and immediately scopes the filters. It is clearly distinguishable from siblings like get_performance_metrics (aggregate stats) or get_resolved_predictions (predictions, not fills).

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 to call' section (past trade review, single-symbol post-mortem, win-rate audits), 'Prerequisites: none', a 'Next steps' pointer to market://{market_id}/signals/summary, and a list of casual-question triggers including non-English phrasing. This leaves almost nothing to inference.

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.