# FELPRA Trading Intelligence

> Verifiable crypto/KR/US market intelligence for AI agents: signals, hash-chained ledger. Not advice.

- name: ai.felpra/felpra-trading-mcp
- version: 2.0.0
- connection class: R0 (autonomous)
- trust: 96/100
- quality: 88/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/ai.felpra%2Ffelpra-trading-mcp
- tools: https://api.protogrid.dev/v1/servers/ai.felpra%2Ffelpra-trading-mcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "felpra-trading-mcp": {
      "type": "http",
      "url": "https://api.felpra.ai/mcp",
      "headers": {
        "X-API-Key": "${X_API_KEY}"
      }
    }
  }
}
```

Placeholders to fill: `${X_API_KEY}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 100
- provenance: 85
- drivers: +repository +dns-namespace +website +reachable +uptime-100% +updated-2d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 88/100 (new)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 89 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 12 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 21 of 21 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- warn `tools.token_cost`: about 10,628 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 2 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: deps.dev does not know felpra-trading-mcp@0.7.0

- tools: 21, about 10,628 tokens to load them all
- tool set hash: cb232a52b3555fd227591eef9212e0b4
- tools last changed: 2026-11-29T11:15:19.391Z
- badge: [![protogrid quality](https://protogrid.dev/badge/ai.felpra/felpra-trading-mcp.svg)](https://protogrid.dev/servers/ai.felpra/felpra-trading-mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-29 `get_trade_history` changed (outputSchema) no new version (still 2.0.0)

Full history: https://api.protogrid.dev/v1/servers/ai.felpra%2Ffelpra-trading-mcp/changes

## Dependencies

- pypi felpra-trading-mcp@0.7.0: unknown

Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0.

## Remotes

- https://api.felpra.ai/mcp (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

- pypi felpra-trading-mcp@0.7.0 secrets: PG_PASSWORD

## Tools (21)

- `explain_decision`: Call this when the user asks why a symbol's signal reads the way it does — a structured, multi-layer
    "why" for one symbol; include=["history","feedback","roles"] adds signal history, pattern feedback and
    the per-timeframe role view.
Purpose: Combines (1) technical score_trace from the signals store, (2) Thompson + regime
    scores from the virtual decision log (Thompson = Bayesian bandit sampling used for
    strategy selection), (3) news causality context.
Triggers (casual questions too): "why is BTC bullish?", "이 종목 신호 근거가 뭐야?",
    "explain that signal", "판단 근거 설명해줘", "walk me through the reasoning",
    "is BTC bullish across timeframes?", "시간대별 신호가 일치해?", "signal history for AAPL?".
When to call: when the user asks "why is this signal bullish/bearish?".
Prerequisites: identify the symbol via get_signals first.
Next steps: none (this completes the explanation chain).
Caveats: `symbol` must match the per-symbol signal store filename (lowercase).
    Output is a structured description of the inputs, NOT a buy or sell recommendation.
Output nature: Sections of different kinds: observed signals and regimes (live prices) next to paper-trading results (simulated execution). See meta.data_type_sections.
- `fetch`: Purpose: ChatGPT-connector-standard document fetch by id from `search` results.
    Namespaces: `tool:{name}` returns the tool's full documentation and how to
    call it; `resource:{uri}` returns the resource's live data (core resources
    resolved server-side — also the bridge for clients without MCP resource
    support, e.g. Gemini); `signal:{market}:{symbol}` returns the symbol's
    latest combined signal.
Triggers: ChatGPT connectors / Deep Research call this after `search`. Clients
    without MCP resource support can call it directly with a known resource id,
    e.g. fetch("resource:market://global/summary").
When to call: whenever the full content behind a search result id is needed.
Prerequisites: a valid id — from `search` results or a known namespace id.
Next steps: for tool docs, call the named tool via tools/call; for signals,
    explain_decision for deeper evidence.
Caveats: uncovered resource uris return description-only text (no fabricated
    data). `text` is a JSON document for resource/signal ids.
Output: {id, title, text, url, metadata, disclaimer, is_investment_advice,
    data_classification} — flat envelope, OpenAI fixed shape.
Output nature: Observed signal state computed from live market prices each cycle. signal_score is an internal ranking score, not a probability; bias is its sign. Context for the user's question, not investment advice.
- `get_account_status`: Purpose: Show which FELPRA account (or API key) this connection uses, its plan and its rate limits.
    Requires a connected FELPRA account — calling it without one prompts your AI app to connect
    (free, no API key needed; Pro users can use their key). All other tools work without an account.
Triggers: "is my FELPRA account connected?", "what plan am I on?", "내 FELPRA 계정 상태", "남은 호출 한도".
When to call: only when the user asks about their own account or limits.
Output: full_data { principal (oauth|api_key), plan, usage {daily_limit, daily_used, minute_limit, ...},
    account_id & connected_app (oauth only) }.
Output nature: Service status and catalog information.
- `get_active_predictions`: Purpose: Currently pending predictions (outcome IS NULL). Demonstrates that FELPRA is
    actively publishing forecasts in real time. Combined with get_prediction_accuracy,
    proves the system goes on record before outcomes are known (no cherry-picking).
Triggers (casual questions too): "what are you predicting right now?", "지금 어떤 예측 걸려 있어?",
    "current forecasts?", "예측을 미리 기록해 두는 거야?", "anything on the record before it resolves?".
When to call: to verify ongoing prediction activity.
Prerequisites: none.
Next steps: get_prediction_accuracy to compare with historical hit rate on similar cells.
Caveats: returns most recent first.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_daily_brief`: Purpose: Single-call market overview — engine macro regime + score-ranked example signals + score-sign breadth +
    yesterday's paper-trading outcomes + active forecast count + narrative.
    Use this as the first call when answering "how is the market today?".
Triggers (call this even for casual questions): "how's the market?",
    "오늘 장 어때?", "what's the market mood / outlook?", "how's Bitcoin / crypto /
    US stocks / 비트코인 / 코인장 doing lately?", "anything happening today?",
    "give me a briefing".
When to call: morning briefings, "today/yesterday how was the market?" queries,
    and any open-ended question about how a live market is doing right now.
Prerequisites: none.
Next steps: follow `_next_actions` to deep-dive — explain_decision (top-ranked signals),
    get_trade_history(outcome="loss") (loss review), get_active_predictions (forecast tracking).
Caveats: top_ranked_signals are EXAMPLES ranked by |signal_score| per market (up to 2 per market for
    "all", 5 for one market; never re-ranked across markets) — in most score buckets the measured 24h
    hit rate is close to the market average (meta.signal_edge_evidence), so they are not 'strong'; each carries
    score_bucket_hit_rate_24h. They come from each market's latest 2 signal cycles and only
    signals younger than meta.windows.top_ranked_signals_live_max_age_minutes; a
    market that is not trading now appears in last_session_signals instead.
    macro_regime.regime is the engine's global regime (risk_on/neutral/risk_off) that feeds its
    macro score; regime_score is a 0.5-1 strength, not a probability; null when stale (>6h).
    macro_regime.categories hold data-coverage counts, not regime labels. Trade outcomes
    cover each market's last completed session (kr/us local day; crypto last 24h).
    Paper-trading data only (NOT real money).
Output: full_data { narrative, market, brief_mode, next_session_open_at{market: ISO UTC},
    macro_regime{regime,regime_score,regime_signed,as_of,stale,unavailable_reason,
        categories[{category,sample_count}],total,basis},
    top_ranked_signals[{...,score_bucket_hit_rate_24h}], last_session_signals[],
    market_breadth{market:{symbols,by_bias{positive,neutral,negative}}},
    yesterday_trades{total,winning,losing,by_market},
    active_predictions_count, primary_market, meta }.
Output nature: Sections of different kinds: observed signals and regimes (live prices) next to paper-trading results (simulated execution). See meta.data_type_sections.
- `get_group_context`: Use when the question is about a sector, theme, ETF basket or index basket — its structure state and its members. Returns headline claims, the group's regime state per interval, its market, groups that co-move with it, member symbols with their latest signal bias, symbols the basket leads, and gaps. Not for a single stock (use get_symbol_context) or a whole market (use get_market_context). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source.
Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.
- `get_ledger_integrity`: Purpose: Tamper-evidence for the prediction ledger — a daily SHA-256 hash chain
    over all created/resolved prediction rows, with the exact canonical recipe
    published so any third party can recompute and verify. Archive a chain_hash
    today; if history is ever silently edited, recomputation will not match.
Triggers: "how do I know these predictions weren't backfilled?", "is the track
    record tamper-proof?", "예측 조작 안 했다는 증거 있어?", "verify ledger integrity".
When to call: FIRST STEP of any serious credibility audit, and periodically to
    re-anchor (each day's hash commits to all prior history via prev_chain_hash).
Prerequisites: none. Raw rows for recomputation: get_resolved_predictions.
Next steps: get_resolved_predictions (fetch a day's raw rows, recompute its hash).
Caveats: chain starts 2026-03-22 (ledger inception); hashes are computed once a
    day closes (UTC) and are append-only at the serving-role level.
Output: full_data { recipe_version, recipe, chain_length, first_day, last_day,
    entries[] {day, created_count, resolved_count, created_hash, resolved_hash,
    prev_chain_hash, chain_hash, computed_at}, verification_hint }.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_macro_context`: Use when the question is about a macro factor — rates and bonds, the dollar and FX, VIX, credit, liquidity, inflation, commodities or energy — and which markets or stocks it is linked to. Returns headline claims, the macro category's regime state per interval and its instruments, macro categories with tracked lead-lag links to it, the markets the engine assumes it affects (tuned priors), symbols its instruments lead, topic-tagged news, and gaps. Not for one stock (use get_symbol_context) or a whole market (use get_market_context). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source.
Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.
- `get_market_context`: Use when the question is about a whole market (KR, US, CRYPTO) — its structure regime and how its groups are positioned. Returns headline claims, the market's structure and global macro regime, the macro categories assumed to affect it (with tuned lags), its groups ordered by distance from the middle regime stage, market-tagged news, and gaps. Not for one sector or stock (use get_group_context or get_symbol_context). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source.
Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.
- `get_news_context`: Use when the question is about a specific news item or a news keyword or event (FOMC, 반도체, tariff) — which markets, symbols and topics it is tagged with. Returns headline claims, the item (or keyword match counts), its title-similarity cluster, the market, symbol and topic tags assigned by the collection pipeline (counted across matches for a keyword), the matching items, and gaps. Not for market impact estimates or article text (tags are pipeline rules, not measured impact). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source.
Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.
- `get_performance_metrics`: 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).
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.
- `get_prediction_accuracy`: Call this first when judging how FELPRA's macro calls have held up — per-cell hit rates with honest
    baselines; granularity="monthly" for the month-by-month trend.
Purpose: Per-cell (category, target_market, lag_bucket) hit rates WITH the honest
    baselines (schema 1.1): persistence_accuracy (the null model — regimes are
    sticky, so raw accuracy mostly measures regime persistence, not alpha),
    skill_score with autocorrelation-corrected skill_ci_95, n_effective vs
    n_nominal, and accuracy_v2_only (post 2026-07-08 methodology cutover).
    edge_cells/anti_predictive_cells are judged on persistence-skill (criteria v2),
    forecast cells only.
Triggers (casual questions too): "how accurate are your predictions?",
    "예측 잘 맞아?", "track record 있어?", "can I trust these forecasts?",
    "적중률 보여줘", "does macro actually predict these markets?".
When to call: first, when an AI agent evaluates how FELPRA calls have held up.
Prerequisites: none.
Next steps: get_ledger_integrity (tamper-evidence for these numbers),
    granularity="monthly" (time series), get_signal_calibration (Level-1 signal confidence reliability).
Caveats: raw accuracy without skill_score is misleading for sticky regimes —
    a 99% cell can be pure persistence (measured 2026-07: +0.05pp over null).
    Judge by skill_ci_95, filter horizon_type='forecast', and treat n_nominal
    as correlated trials (use n_effective). Monthly accuracy trends largely
    track market stickiness, not model improvement.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_resolved_predictions`: Purpose: Raw, row-level prediction ledger — every macro regime prediction's full
    lifecycle (created_at -> resolved_at -> outcome). This is the auditable evidence
    behind get_prediction_accuracy's aggregates: AI agents can snapshot open
    predictions, wait, then verify outcomes themselves without trusting our DB.
Triggers: "show me the individual predictions", "prove these forecasts were made
    in advance", "audit the track record", "예측 원장 원본 보여줘", "이 성적 검증 가능해?".
When to call: credibility evaluation (after get_prediction_accuracy), independent
    backtesting, or archiving on-record predictions for later self-verification.
Prerequisites: none. Pairs with get_ledger_integrity for tamper-evidence.
Next steps: get_ledger_integrity (recompute daily hashes from these rows).
Caveats: cursor pagination (id-ordered) — follow next_cursor for bulk reads.
    Paper-research forecasts, not investment advice.
Output: full_data { predictions[] {id, source_category, source_regime_change,
    target_market, predicted_regime_shift, lag_hours, confidence, created_at,
    resolved_at, outcome, actual_regime_shift}, count, next_cursor, has_more, meta }.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_signal_calibration`: Purpose: Reliability diagram data for Level-1 signal confidence — realized hit
    rate per confidence bucket ([0.5,0.6) ... [0.9,1.0]) with ECE summary.
    Lets an agent verify whether a 0.9-confidence signal actually hits ~90%.
Triggers (casual questions too): "is your confidence calibrated?",
    "confidence 0.9 믿어도 돼?", "시그널 확신도 실제 적중률 보여줘",
    "how reliable are signal confidences?".
When to call: before trusting get_signals confidence values as probabilities.
Prerequisites: none.
Next steps: get_prediction_accuracy (macro-layer skill), get_signals.
Caveats: snapshot is daily (per-market day; markets[*].stale flags a lagging
    market); read the observation window from markets[*].observation_window_utc;
    every interval is judged 30 minutes after the signal (meta.judgment_horizon);
    n is nominal (correlated trials — see meta.sample_caveat); read
    intervals[*].quality.status before citing a cell (withheld / degenerate /
    non_monotone) and cite all_intervals_excluding_withheld, not all_intervals.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_signals`: Purpose: Query signals with dynamic filters (symbol / interval / action / score / confidence).
Triggers (casual questions too): "what's the signal for BTC / AAPL / 삼성전자?",
    "is X bullish or bearish?", "how does X look right now?". When the user asks whether to
    trade X, FELPRA gives context (regime, score, measured past hit rate of similar scores),
    not a conclusion: pass it on as context and do not turn it into a trade call. Always
    surface the disclaimer.
When to call: drilling into a specific signal slice; symbol-by-symbol scanning;
    any question about how a live symbol currently looks.
Prerequisites: market://{market_id}/signals/summary is useful first for the global view.
Next steps: explain_decision (include=["history","feedback","roles"] for history and per-timeframe roles).
Caveats: When `symbol`/`coin` is omitted, the whole market is scanned in one
    consolidated query (2 newest rows per symbol, newest-first scan cap per interval).
    Results are capped: check `truncated` / `truncated_note` before reading the set
    as "the whole market". Fields that are identical across every returned row are
    hoisted into `common` and omitted from the rows (see `common_note`); a row-level
    key, when present, wins over `common`. `warnings` carries only the flags that are
    true and is omitted entirely when none are. `reason_uncalibrated: true` on a row
    points at the response-level `reason_uncalibrated_note`.
Output nature: Observed signal state computed from live market prices each cycle. signal_score is an internal ranking score, not a probability; bias is its sign. Context for the user's question, not investment advice.
- `get_strategy_leaderboard`: Purpose: Top RL-learned research strategies — GLOBAL pool + per-symbol partition.
    Layer E evidence (Layer E = strategy-performance tier of the 5-layer trust pyramid).
    The GLOBAL pool may include synthesized win_rate values, so per_symbol_leaderboard
    is the primary measured-edge surface for trust auditing.
Triggers (casual questions too): "what are the best strategies?", "제일 잘 버는 전략 뭐야?",
    "top strategies?", "전략 순위 보여줘", "which strategy has the best win rate?".
When to call: final trust-validation step.
Prerequisites: none.
Next steps: market://{market_id}/signals/summary for live signals.
Caveats: `min_trades` filter enforces statistical validity. Strategies are paper-tested,
    not real-money executed.
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.
- `get_structure_calibration`: Call this to see how well sector / ETF-basket direction calls held up against a majority-class baseline;
    include_history=True adds the day-by-day validation trend.
Purpose: Level 2 (ETF / basket / sector granularity — Level 1 is individual symbols)
    prediction calibration. Returns hit_rate_ema per (market, group, interval,
    regime_bucket) with sample counts, **plus the majority-class baseline needed to
    interpret them**. This is measurement, NOT a claim of edge — as of 2026-09-18 the
    measured skill (accuracy minus baseline) is negative in all three markets.
Triggers (casual questions too): "how good are your sector calls?", "섹터 예측 잘 맞아?",
    "sector rotation accuracy?", "그룹 단위 적중률 보여줘", "sector accuracy over time?",
    "요즘 섹터 예측 성적 어때?".
When to call: when an AI wants to see Layer D evidence (Layer D = sector-structure
    tier of the 5-layer trust pyramid).
Prerequisites: none.
Next steps: include_history=True for the daily trend.
Caveats: empty until structure-learning cycles complete.
    Rows are paginated — read `total_available` (not `len(calibration)`) for the
    whole-set size. `baseline`, `meta.total_entries` and `meta.total_samples` are
    always whole-set. Rows keep their dimension keys (market_id / interval /
    regime_bucket); they are never hoisted out of the row.
Output nature: Past calls and their realized outcomes, judged after the fact, with sample sizes and baselines. Past hit rates describe the past, not future outcomes.
- `get_symbol_context`: Use when the question is about one stock or coin — its current signal state, the FELPRA structure group it belongs to, and which assets have tracked lead-lag links to it. Returns self-contained headline claims first, then the symbol's observed state, upstream links (its group, macro/ETF/basket instruments and symbols that move before it), peers (symbols that follow it), tagged news, and gaps that say what is not tracked. Not for sector-wide questions (use get_group_context) or whole-market questions (use get_market_context). Provides regime, signal-score and linkage context with sample sizes and measured hit rates; every link carries its evidence and every empty section is listed in gaps. Not a real-time quote, fundamentals, or full-text news source. Accepts tickers, KRX codes or names; ambiguous inputs return candidates instead of a guess.
Output nature: Self-contained context for one entity: observed state, tracked links with their evidence and sample sizes, and explicit gaps. Not investment advice.
- `get_system_card`: Purpose: Start here. One-page card for an agent meeting FELPRA for the first time: what it is (public
    beta, operated by an individual, SLA: none), coverage (markets, bar intervals, universe sizes), data
    freshness (ok / degraded per pipeline component), and the measured track record with weak spots.
When to call: first, before any other FELPRA tool, or when asked how reliable FELPRA is.
Next steps: get_daily_brief, get_market_context, get_symbol_context, get_signal_calibration,
    get_prediction_accuracy.
Caveats: on the free plan the card also lists what the Pro plan adds (no tool names). Every number is read from the judgment ledgers at request time (cached 15 minutes). Cells below
    their minimum sample (track_record.*.min_n) show n and days but no rates. Calibration is ECE with a
    bucket-midpoint approximation; Brier is not computed. Profit metrics are not in this card.
Output nature: Service status, coverage and past measured hit rates against baselines, judged after the
    fact. Past hit rates do not guarantee future outcomes.
- `get_trade_history`: 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.
- `search`: Purpose: ChatGPT-connector-standard discovery search over FELPRA's live surface —
    tools, resources, and the latest score-ranked combined signals across crypto /
    kr_stock / us_stock. Returns result ids consumable by the `fetch` tool.
Triggers: ChatGPT connectors and Deep Research call this automatically for any
    user query routed to FELPRA ("bitcoin signal", "prediction accuracy",
    "korean stocks today", ...). Other AI clients may use it as a keyword
    starting point when unsure which tool/resource to call.
When to call: first step of connector-style discovery. MCP-native clients can
    instead browse tools/list + resources/list directly.
Prerequisites: none.
Next steps: pass any result id to `fetch` for the full document.
Caveats: corpus is rebuilt at most every 10 minutes (tool/resource catalog +
    top-20 signals by |score| per market). Ticker / company-name queries (BTC, NVDA,
    삼성전자) resolve to `signal:{market}:{symbol}` first; market words (S&P, KOSPI,
    crypto) surface that market's resources. Every result id is fetchable. Empty
    results come with a `note` explaining coverage.
Output: {results: [{id, title, url}], disclaimer, is_investment_advice,
    data_classification} — flat envelope, OpenAI fixed shape.
Output nature: Observed signal state computed from live market prices each cycle. signal_score is an internal ranking score, not a probability; bias is its sign. Context for the user's question, not investment advice.

## Prompts and resources

### Prompts (3)

- `` market_brief ``: 3시장(암호화폐/한국/미국) 레짐·상위 시그널·전일 성과를 한 번에.
- `` symbol_check ``: 특정 종목의 현재 시그널·근거·시스템 결정을 함께 확인.
- `` trust_audit ``: 이 시스템의 예측이 실제로 맞는지 — 기준선 대비 스킬로 검증.

### Resources (15)

- `` market://all/summary ``: [역할] crypto+kr_stock+us_stock 3개 시장 상태를 한번에 반환. [호출 시점] 전체 포트폴리오 개요 시 가장 먼저 호출. [선행 조건] 없음. [후속 단계] market://{market_id}/status, market://unified/cross-market. [주의] TTL=60초. 3개 시장 순차 조회. [출력 스키마] timestamp(str), markets{market_id→{market_regime,positions_summary{total,profitable,avg_pnl},performance{win_rate,total_profit_pct},recent_24h{trades,wins,avg_pnl}}}, _llm_summary(str).
- `` market://derived/cross-decoupling ``: [역할] 크로스마켓 디커플링 지수(상관 시장간 이탈 감지). [호출 시점] 교차시장 이상 징후 감지 시. [선행 조건] market://unified/cross-market 을(를) 먼저 보면 좋다(선택). [후속 단계] market://global/summary. [주의] 계산 데이터 없으면 빈 결과. [출력 스키마] ai_summary 래핑. full_data: pairs[{source_market,target_market,decoupling_index,correlation_breakdown,regime_divergence,timing_lag_divergence}], overall_decoupling(float), _contract{...}, _llm_summary(str).
- `` market://derived/reaction-speed ``: [역할] 뉴스 반응 속도(시장의 뉴스 반응 시간/정확도). [호출 시점] 뉴스 기반 매매 타이밍 최적화 시. [선행 조건] external/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] market://derived/cross-decoupling. [주의] news_reaction_speed 기반. [출력 스키마] ai_summary 래핑. full_data: speed_bands[{news_type,market_id,speed_band,count,avg_reaction_score,avg_lag_minutes,absorption_time_minutes}] (direction_accuracy 는 2026-09-22 제거 — 동어반복이라 구조상 항상 1.0 이었다), _contract{...}, _llm_summary(str).
- `` market://global/categories ``: [역할] 사용 가능한 매크로 카테고리 목록. [호출 시점] 카테고리 확인 시. [선행 조건] 없음. [후속 단계] market://global/category/{category}. [주의] exists 는 레거시 SQLite 백업 파일의 존재 여부일 뿐 PG 데이터 유무가 아니다(Wave I 이후 실데이터는 PG market_global) — 그래서 외부 응답에서는 뺀다(2026-11-02 노출 표면 P0, 첫접촉 진단 10-15 §6). 내부 소비자(api/mcp_client.py)는 종전 모양 그대로 받는다. [출력 스키마] categories[{id(str),exists(bool — 내부 주체만)}].
- `` market://global/macro_events ``: [역할] 활성 매크로 이벤트의 라이프사이클 상태(전쟁/금융위기 등 장기 이벤트). [호출 시점] 진행 중인 글로벌 매크로 이벤트 확인 시. [선행 조건] market://global/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] market://unified/cross-market. [주의] 이벤트 없으면 빈 배열. [출력 스키마] _contract 포함. total_events(int), active_events(int), events[{event_id,title,category,lifecycle_state,current_sensitivity,peak_sensitivity,affected_markets,recent_developments[],market_sensitivities{}}], _llm_summary(str).
- `` market://global/summary ``: [역할] 원자재/국채/외환 등 전체 매크로 레짐 요약. [호출 시점] 시장 전체 방향성 파악 시 첫 번째로 호출. [선행 조건] 없음 (최상위 Resource). [후속 단계] market://global/category/{category}, market://{market_id}/unified. [주의] 캐시 TTL=300초. [출력 스키마] ai_summary 래핑. full_data: overall{regime,score}, categories{id→{regime_dominant,sentiment_avg,symbols}}, mtf_summary{aligned_symbols,misaligned_symbols}, _llm_summary(str).
- `` market://health ``: 서버 헬스체크 Returns: 서버 상태 정보 (status, timestamp, version) [출력 스키마] status(str), timestamp(str:ISO8601), version(str), server(str), project_root(str — 내부 주체만).
- `` market://indicators/context ``: [역할] Fear&Greed + 4-Layer 레짐 결합 종합 시장 컨텍스트. [호출 시점] 시장 지표 한번에 확인 시. fear-greed+regime 2개 호출 대체. [선행 조건] 없음. [후속 단계] market://{market_id}/unified, market://all/summary. [주의] 한쪽 실패해도 나머지 반환. [출력 스키마] ai_summary 래핑. full_data: fear_greed{value,classification,adjustment{...}}, regime_analysis{score,regime,volatility,details{...}}, sentiment_regime_aligned(bool), alignment_note(str), _llm_summary(str).
- `` market://indicators/fear-greed ``: [역할] Fear & Greed Index(시장 심리, 0-100). [호출 시점] 시장 심리 빠르게 파악 시. [선행 조건] 없음. [후속 단계] market://indicators/regime, market://indicators/context. [주의] Alternative.me API. TTL=300초. API 장애 시 캐시 사용. [출력 스키마] ai_summary 래핑. full_data: value(int:0-100), classification(str:Extreme Fear|Fear|Neutral|Greed|Extreme Greed), adjustment{threshold_adj,position_mult,strategy_hint}, interpretation(str), _llm_summary(str).
- `` market://indicators/regime ``: [역할] 4-Layer 시장 레짐(Short/Mid/Long/SuperLong 레이어별 레짐/점수/변동성). [호출 시점] 다중 시간프레임 레짐 분석 시. [선행 조건] 없음. [후속 단계] market://indicators/context, market://global/summary. [주의] MarketAnalyzer 의존. [출력 스키마] ai_summary 래핑. full_data: score(float), regime(str), volatility(float), raw_score(float), details{sl,long,mid,short}, _llm_summary(str).
- `` market://info ``: 서버 정보 — 정적 자기소개 + 전체 카탈로그로의 포인터 [2026-07-08] 스테일 정리: 종전엔 레거시 SQLite 경로(SIGNAL_DIR_PATHS 등)를 데이터 소스로 소개하고 endpoints 를 축약판(18개)으로 나열해 meta/discovery 와 불일치했다 (Wave I 이후 실데이터는 전부 PG). 이제 데이터 소스는 PG 스키마 기준으로 서술하고, 카탈로그는 introspection 기반 단일 소스로 위임한다. Returns: 서버 메타 정보 + 카탈로그 포인터 [출력 스키마] name(str), description(str), version(str), data_backend{...}, catalog{discovery,tool_chains}, public_endpoints{...}.
- `` market://meta/discovery ``: [역할] 전체 Resource(static+template)와 Tool 카탈로그 + FELPRA positioning 을 한 번에 반환. 카탈로그는 등록된 tool/resource 의 introspection 결과로 동적 생성되어 시스템이 진화해도 항상 최신. data_freshness 는 PG 실측값. [호출 시점] 세션 시작 시 한 번. Tool/Resource 탐색 출발점이며 거대 AI 가 FELPRA 를 언제 쓸지 판단하는 기초 자료로 쓴다. [선행 조건] 없음. [후속 단계] specialist_domains 와 manifest.tools_by_category 보고 목적에 맞는 tool 선택, 또는 market://meta/tool-chains 의 호출 체인 예시에서 선택. [출력 스키마] version, generated_at, positioning{specialist_domains,trust_principles, what_we_do_NOT_provide,philosophy}, catalog{tools_by_category,static_resources, template_resources,counts}, data_freshness{label→{status,lag_seconds,last_ts, source,ts_basis,stale_after_seconds}}, market_ids[], common_categories[], notes.
- `` market://meta/tool-chains ``: [역할] 도구/리소스 의존관계, 호출 체인 예시, 사용 가이드를 반환합니다. [호출 시점] 어떤 도구를 어떤 순서로 호출해야 하는지 안내 필요 시. 세션 시작 시 한 번 호출. [선행 조건] 없음. [후속 단계] usage_hint.start_here에 명시된 Resource부터 시작. [주의] 메타 정보이므로 실시간 데이터가 아닙니다. [출력 스키마] version(str), tool_chains{chain_id→{name,description,steps[{order,call,type,purpose}]}}, dependency_graph{uri→{requires,recommended,next,note}}, usage_hint{start_here,unified_vs_individual,signal_depth}.
- `` market://structure/all ``: [역할] 모든 시장의 ETF/바스켓 구조 분석 요약. [호출 시점] 시장 구조 전체 파악 시. [선행 조건] 없음. [후속 단계] market://{market_id}/structure, market://global/summary. [주의] 구조 요약 JSON 없는 시장은 건너뜀. [출력 스키마] market_id→{overall{regime,score}, groups{group_id→{regime_dominant,regime_avg,confidence,timing_signal}}}.
- `` market://unified/cross-market ``: [역할] 교차시장 상관관계(금-BTC, 국채-주식, 달러-신흥시장 등 패턴 감지). [호출 시점] 시장간 상관관계/디커플링 분석 시. [선행 조건] market://global/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] market://derived/cross-decoupling, market://all/summary. [주의] TTL=120초. 사전 정의된 패턴 기반. [출력 스키마] _contract 포함. directions{symbol→{direction,regime,category}}, correlations[{pattern_name,interpretation,score,active}], active_count(int), dominant_interpretation(str|null), global_regime{overall_regime,overall_score}, market_structure{market_id→{overall_regime,groups{...}}}, _llm_summary(str).

### Resource templates (14)

- `` market://global/category/{category} ``: [역할] 특정 매크로 카테고리(bonds/forex/vix 등)의 심볼별 레짐/심리/방향. [호출 시점] global/summary에서 특정 카테고리 주목 시 drill-down. [선행 조건] market://global/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] market://derived/cross-decoupling. [주의] category=bonds,commodities,forex,vix,credit,liquidity,inflation + 구조 3종(us_structure,kr_structure,coin_structure). TTL=300초. [출력 스키마] category(str), total_rows(int), by_symbol{symbol→[{regime_label,sentiment_label,integrated_direction,volatility_level,risk_level,regime_confidence}]}, _llm_summary(str). Args: category: Category name (bonds, commodities, forex, vix, credit, liquidity, inflation, us_structure, kr_structure, coin_structure)
- `` market://{market_id}/derived/all ``: [역할] 5가지 파생 시그널을 한번에 반환. [호출 시점] 파생 시그널 전체 파악 시. 개별 5회 호출 대체. [선행 조건] market://{market_id}/status 을(를) 먼저 보면 좋다(선택). [후속 단계] 개별 Resource로 상세 drill-down. [주의] 순차 호출로 응답 느릴 수 있음. TTL=60초. event_leading_scores 블록은 UNVERIFIED (선행 지표 계산 방법 감사 중 — 선행·예측 능력의 근거 아님, 수치 필드 비노출). [출력 스키마] ai_summary 래핑. full_data: market_id(str), event_leading_scores{scores[{event_type,market_id,news_type,sample_count,computed_at}],withheld_fields[str]}, regime_transition_probs{current_regime,transitions[...]}, cross_market_decoupling{pairs[...],overall_decoupling}, news_reaction_speed{speed_bands[...]}, strategy_fitness{fitness[...]}, _contract{...}, _llm_summary(str). 최상위: verification_status(str), verification_note(str).
- `` market://{market_id}/derived/regime-transitions ``: [역할] 레짐 전환 빈도(과거 기록에서 현재 레짐 다음에 각 레짐이 나온 비율 — 앞으로의 가능성이 아니다). [호출 시점] 레짐 전환 이력 확인 시. [선행 조건] market://{market_id}/status 을(를) 먼저 보면 좋다(선택). [후속 단계] market://global/summary, strategy-fitness. [주의] regime_transition_probs 기반. [출력 스키마] ai_summary 래핑. full_data: market_id(str), current_regime(str), transitions[{current_regime,next_regime,probability,avg_duration_hours,cross_market_boost,confidence}], _contract{...}, _llm_summary(str).
- `` market://{market_id}/derived/strategy-fitness ``: [역할] 전략 적합도 점수(현재 레짐에 각 전략의 적합도). [호출 시점] 전략 선택/전환 결정 시. [선행 조건] market://{market_id}/status, regime-transitions 을(를) 먼저 보면 좋다(선택). [후속 단계] market://{market_id}/signals/summary. [주의] agent_history 기반. 거래 이력 필요. [출력 스키마] ai_summary 래핑. full_data: market_id(str), fitness[{regime,strategy_role,fitness_score,historical_win_rate,regime_match_score,transition_risk,confidence,recommended_action}], prefer_count(int), avoid_count(int), _contract{...}, _llm_summary(str).
- `` market://{market_id}/external/summary ``: [역할] 시장별 외부 컨텍스트(뉴스, 펀더멘탈, 예정이벤트, 메트릭) 요약. [호출 시점] 기술적 분석 외 뉴스/이벤트 영향 파악 시. [선행 조건] 없음. [후속 단계] market://{market_id}/external/symbol/{symbol}. [주의] TTL=60초. [출력 스키마] ai_summary 래핑. full_data: market_id(str), counts{symbol_master,fundamentals,news_events,scheduled_events,market_metrics,news_reaction_history}, sectors{sector→count}, news_events[{title,sentiment_score,sentiment_label,impact_level,source}], scheduled_events[{event_type,title,status,scheduled_at}], _contract{...}, _llm_summary(str).
- `` market://{market_id}/external/symbol/{symbol} ``: [역할] 특정 종목의 펀더멘탈/뉴스/예정이벤트. [호출 시점] 특정 종목 외부 요인 분석 시. [선행 조건] external/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] get_signal_detail과 교차 분석, market://{market_id}/unified/symbol/{symbol}. [주의] 종목별 데이터 없을 수 있음. [출력 스키마] _contract 포함. market_id(str), symbol(str), symbol_master[{name_ko,sector,industry}], fundamentals[{market_cap,per,pbr}], news_events[{title,sentiment_score,impact_level}], scheduled_events[{event_type,status}], _llm_summary(str).
- `` market://{market_id}/signals/feedback ``: [역할] 시그널 패턴/전략별 성공률 데이터. [호출 시점] 시그널 패턴 성공률 분석 시. [선행 조건] signals/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] get_trade_history. [주의] 최소 10건 이상 거래 패턴만. TTL=300초. [출력 스키마] market_id(str), top_patterns[{pattern,success_rate,avg_profit,total_trades,confidence}], top_strategies[{strategy,market_condition,success_rate,avg_profit,total_trades}].
- `` market://{market_id}/signals/roles ``: [역할] 역할별(timing/trend/swing/regime) 시그널 집계와 계층 정렬도. [호출 시점] 시간프레임간 시그널 일치/불일치 분석 시. [선행 조건] signals/summary 을(를) 먼저 보면 좋다(선택). [후속 단계] explain_decision(market_id, symbol, include=["roles"]). [주의] hierarchy_context 기반. TTL=300초. [출력 스키마] market_id(str), roles{role→{interval,description,signal_count,avg_score,action_distribution}}, hierarchy_meta{avg_alignment,symbols_with_hierarchy}, _llm_summary(str).
- `` market://{market_id}/signals/summary ``: [역할] 시장 전체 시그널 집계(24h 시그널 수, 액션 분포, 상위 시그널). [호출 시점] 시장 시그널 동향 파악 시. 개별 종목 전에 먼저 호출. [선행 조건] 없음 (시그널 최상위). [후속 단계] get_signals(market_id, coin), market://{market_id}/signals/roles. [주의] 종목별 DB 병렬 순회(최대 150개). TTL=300초. 응답 15초+. [출력 스키마] ai_summary 래핑. full_data: market_id(str), db_count(int), stats{total_signals_24h,unique_symbols,avg_signal_score,avg_confidence}, action_distribution{action→{count,avg_score}}, top_signals[{symbol,interval,signal_score,confidence,action,rsi,macd,wave_phase,direction,strength,reason}], _llm_summary(str).
- `` market://{market_id}/status ``: [역할] 특정 시장의 현재 상태(레짐, 포지션 요약, 성과, 24h 거래). [호출 시점] 특정 시장 현황 빠르게 파악 시. [선행 조건] 없음 (시장별 최상위). [후속 단계] market://{market_id}/signals/summary. [주의] TTL=60초. market_id=crypto,kr_stock,us_stock. [출력 스키마] ai_summary 래핑. full_data: market_id(str), market_regime(str), positions_summary{total,profitable,losing,avg_pnl,max_pnl,min_pnl}, performance{total_trades,winning_trades,win_rate,total_profit_pct}, recent_24h{trades,wins,avg_pnl}, _contract{...}, _llm_summary(str). Args: market_id: Market ID (crypto, kr_stock, us_stock)
- `` market://{market_id}/structure ``: [역할] 특정 시장의 ETF/바스켓 그룹 구조 분석. [호출 시점] 시장 내부 섹터/그룹 분석 시. [선행 조건] market://structure/all 을 먼저 확인하면 좋다. [후속 단계] market://{market_id}/structure/group/{group_id}. [주의] market_id=us_stock,kr_stock,crypto. [출력 스키마] ai_summary 래핑. full_data: market(str), overall{regime,score}, groups{group_id→{regime_dominant,regime_avg,confidence}}, concentration/index_spread/dominance/breadth/alt_strength{state,...}, _llm_summary(str).
- `` market://{market_id}/structure/group/{group_id} ``: [역할] 특정 그룹의 상세 구조 분석(심볼별 레짐/점수/방향). [호출 시점] 특정 섹터/그룹 개별 종목 현황 시. [선행 조건] market://{market_id}/structure에서 group_id 확인. [후속 단계] get_signals(market_id, coin). [주의] group_analysis.db 기반. [출력 스키마] ai_summary 래핑. full_data: market(str), groups{group_id→{regime_dominant,regime_avg,confidence,...}}, _llm_summary(str).
- `` market://{market_id}/unified ``: [역할] 시장 단위 통합 컨텍스트(내부 기술분석 + 외부 뉴스/이벤트 + 교차시장). [호출 시점] 하나의 호출로 시장 전체 맥락 파악 시. 개별 Resource 3-4개 대체. [선행 조건] 없음. 정밀 분석 필요 시 개별 resource 직접 호출이 캐시 효율적. [후속 단계] market://{market_id}/unified/symbol/{symbol}, get_signals. [주의] TTL=120초. 내부 여러 DB 조회로 응답 느릴 수 있음. component_ttls 참고. [출력 스키마] ai_summary 래핑. full_data: market_id(str), internal{regime,positions_count,avg_pnl}, external{recent_news[],high_impact_news_count,upcoming_events[]}, alert_level(str:normal|elevated|high), feature_gate{...}, _contract{...}, _llm_summary(str).
- `` market://{market_id}/unified/symbol/{symbol} ``: [역할] 종목 단위 통합 컨텍스트(기술분석 + 외부 뉴스/이벤트). [호출 시점] 특정 종목의 내부+외부 맥락을 한번에 파악 시. [선행 조건] market://{market_id}/unified 다음 단계(drill-down). [후속 단계] explain_decision(market_id, symbol, include=["roles"]). [주의] 종목별 외부 데이터 없을 수 있음. [출력 스키마] _contract 포함. symbol(str), internal{signal_score,confidence,action,rsi,macd}, external{news[],events[],fundamentals{}}, volatility_spike(bool), external_trigger(bool), correlation_type(str:none|internal_trigger|external_trigger|both_active), _llm_summary(str).
