Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Resolved Predictions

get_resolved_predictions
Read-onlyIdempotent

Retrieve raw, row-level macro regime predictions with full lifecycle and resolved outcomes so agents can audit forecasts, verify track records, and backtest independently.

Instructions

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). Recompute one UTC day D: call with day=D, format="canonical" (lines behind created_hash) and with resolved_day=D, format="canonical" (lines behind resolved_hash); follow next_cursor on days above 500 rows; meta.hash_rule says how to join and hash them. Caveats: cursor pagination (id-ordered) — follow next_cursor for bulk reads; the next-page action keeps the same filters. day_totals (when a day filter is set) gives the row count of the whole day. Paper-research forecasts, not investment advice. Output: full_data { format, predictions[] {id, source_category, source_regime_change, target_market, target_market_id, predicted_regime_shift, lag_hours, confidence, created_at, resolved_at, outcome, actual_regime_shift}, count, next_cursor, has_more, day_totals, meta }; format="canonical" returns lines[], canonical_form and meta.hash_rule instead of predictions[]. 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.

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

Input Schema

NameRequiredDescriptionDefault
dayNofilter by created day "YYYY-MM-DD" (UTC, string prefix of created_at) — the rows behind that day's created_hash
limitNopage size (max 500)
cursorNolast id from previous page (0 = start)
formatNorows (default) = full rows; canonical = only the recipe line of each row (created form for day, resolved form for resolved_day), for recomputing a daily hash. canonical needs exactly one of day / resolved_day and no other filter.rows
statusNo"all" | "resolved" | "open"all
resolved_dayNofilter by resolved day "YYYY-MM-DD" (UTC, string prefix of resolved_at) — the rows behind that day's resolved_hash, including rows created on earlier days
target_marketNofilter by target market (crypto / kr_stock / us_stock). Aliases coin/kr/us and any letter case are accepted. Rows keep the stored value (coin_market / kr_market / us_market) in target_market and carry target_market_id.
source_categoryNofilter e.g. "vix", "bonds", "commodities"

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

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds substantial behavior beyond them: cursor pagination is id-ordered with next_cursor retention of filters, day_totals reflects the whole day rather than the page, canonical format has a strict filter precondition, and the rows are framed as auditable paper-research evidence. It also discloses the hash-recomputation workflow that governs correct use.

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?

Strongly front-loaded and labeled (Purpose / Triggers / When to call / Prerequisites / Next steps / Caveats / Output), so an agent can skim to the needed section. The weakness is redundancy: the 'Output' enumeration restates fields the output schema already declares, and 'Output nature' partly repeats the credibility framing already given in Purpose.

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 an 8-parameter, read-only ledger tool, everything an agent needs is present: entry points, the multi-call hash recomputation procedure, pagination follow-through, filter interactions, and an explicit non-advice disclaimer. With an output schema already present, the description need not have restated return fields, so nothing material 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 baseline is 3; the description earns an extra point by adding cross-parameter meaning the schema only implies — the day/resolved_day pair maps to created_hash versus resolved_hash, resolved_day includes rows created on earlier days, and format='canonical' requires exactly one day filter and no others. It does not add syntax detail beyond the schema, so it stops short of 5.

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 resource with scope: 'Raw, row-level prediction ledger — every macro regime prediction's full lifecycle (created_at -> resolved_at -> outcome)'. It explicitly positions itself against the sibling aggregate ('the auditable evidence behind get_prediction_accuracy's aggregates'), so an agent can distinguish the two without opening either 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?

Provides literal trigger phrases (including Korean), a 'When to call' section naming three concrete scenarios, prerequisites ('none'), a pairing recommendation with get_ledger_integrity, and explicit next steps. The alternative — get_prediction_accuracy — is named with the condition that separates the two.

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