Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Performance Metrics

get_performance_metrics
Read-onlyIdempotent

Compute portfolio-level performance metrics over a fixed window, including max drawdown, Sharpe, Sortino, Calmar, monthly returns, and equity curves for track-record verification and risk review.

Instructions

Purpose: Portfolio-level performance metrics (MDD / Sharpe / Sortino / Calmar / monthly returns / equity curve) over a FIXED window — the single canonical computation path shared by the FELPRA blog and external clients. Triggers (casual questions too): "what's the max drawdown?", "MDD 얼마야?", "샤프 비율 보여줘", "monthly returns table?", "트랙레코드 지표", "에쿼티 커브 데이터". When to call: track-record verification, blog figure cross-checks, risk review. Prerequisites: none. Next steps: get_trade_history for the underlying trades. Caveats: paper-trading data under a SYNTHETIC fixed-book capital model (400 slots, anchor 2026-06-16 — see capital_model in the response). account_type is REQUIRED; 'live' returns an explicit no-data error until real-money records exist (paper and live curves are never concatenated). Fixed window → same inputs always reproduce the same numbers (as-of verifiable), except reference_all_time, which is always the latest all-time row. Windows: full_data.windows = fixed track-record windows (all_time first, then calendar years, trailing_90d, trailing_30d; KST close dates; each rebased to 100 at its own start; rates null below 30 closed trades or 5 trading days) with epochs_inside naming method changes inside each window (methodology_epochs). A window_start other than the anchor adds a "custom" row; any non-default window adds reference_all_time (the latest all-time row). 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": "<market>",
      "account_type": "<account_type>"
    },
    "name": "get_performance_metrics"
  }
}

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.
marketYescoin | kr | us | all (aliases crypto/kr_stock/us_stock accepted). 'all' = fixed 1/3 allocation across the three books.
window_endNoISO date. Default today (KST).
account_typeYesREQUIRED. 'paper' (simulated) or 'live' (real — not yet available).
window_startNoISO date (YYYY-MM-DD). Default 2026-06-16 (public track-record anchor).
include_daily_curveNoinclude per-day equity curve rows (default false).

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.6/5.0
Behavior5/5

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

Annotations already establish read-only/idempotent/closed-world safety, but the description adds substantial context the annotations cannot carry: the SYNTHETIC fixed-book capital model, that 'live' account_type returns an explicit no-data error, that paper and live curves are never concatenated, and that identical inputs reproduce identical numbers (except reference_all_time).

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 Purpose/Triggers/When/Caveats labeling is well front-loaded, but the 'Windows' paragraph is a dense run-on and replicates response-structure detail even though an output schema exists. The trigger list and window narrative are longer than needed for an agent to select and invoke the tool correctly.

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 six-parameter, output-schema-backed read tool, the definition covers prerequisites, required-argument failure modes, data provenance and reproducibility. Minor redundancy with the output schema in the windows section is the only gap; nothing an agent needs to call it safely 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 coverage is 100%, so the schema already documents book/market/window/curve parameters; the description still adds behavioral meaning beyond it — account_type is REQUIRED with a defined 'live' failure mode, and a non-anchor window_start yields a 'custom' row plus reference_all_time. It does not, however, elaborate on book or include_daily_curve beyond what the schema says.

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 an explicit verb+resource+scope: 'Portfolio-level performance metrics (MDD / Sharpe / Sortino / Calmar / monthly returns / equity curve) over a FIXED window'. It also differentiates itself from siblings by naming get_trade_history as the tool for underlying trades, so an agent can place it without opening the 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 'Triggers', 'When to call', 'Prerequisites: none' and 'Next steps' sections, including casual/non-English phrasings that map to this tool. The handoff to get_trade_history is stated, so both when-to-use and where-to-go-next are covered.

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