Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Trade History

get_trade_history
Read-onlyIdempotent

Review closed paper trades with realized P&L, win/loss outcomes, and filters for symbol, side, time, and P&L range to audit win rates and post-mortem single-symbol performance.

Instructions

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 observedv0.7.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description nonetheless adds real behavioral context: paper-trading data only, 1000-row cap, and the free-plan rule that only closed trades appear 24 hours after close with _meta.applied_limits reporting adjustments. With annotations already carrying safety, this is solid added context but not exhaustive (no pagination or stats_scope caveat in prose).

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 the core purpose, then labeled Triggers / When to call / Prerequisites / Next steps / Caveats / Output nature sections that are easy to scan. Slight waste from the paper-trading "not real money" caveat being stated twice and a multilingual trigger list that adds bulk without much routing value.

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?

Given nine parameters, four enums, an output schema, and full annotation coverage, the description supplies everything an agent needs to call correctly: prerequisites, free-plan 24-hour delay, row cap, and where to go next. Return-value detail is correctly delegated to the output schema.

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%, so the schema already documents every parameter including book semantics, outcome thresholds, and the limit/truncated behavior. The description restates the filter families and outcome="win"|"loss" but adds no syntax or semantics 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?

Names a specific verb and resource: reviewing how closed paper-trading trades actually turned out, realized P&L per trade, with the filter set spelled out (action/P&L/time/symbol/outcome). The casual-question trigger list makes the intended scope unambiguous, and it is clearly the per-trade log rather than the aggregate metrics tools among the siblings.

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?

Explicit "When to call" line (past trade review, single-symbol post-mortem, win-rate audits) plus "Prerequisites: none" and a named next step. It gives clear positive selection criteria but no exclusions or named alternative tools for the aggregate/accuracy angle, so an agent must infer when to prefer a sibling.

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