Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Prediction Ledger Integrity

get_ledger_integrity
Read-onlyIdempotent

Verify the prediction ledger's tamper-evidence by retrieving its daily SHA-256 hash chain and canonical recipe, so any third party can recompute hashes and detect silent edits or backfilled history.

Instructions

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 with day=D and with resolved_day=D, format="canonical" (the two row sets behind a day's created_hash and resolved_hash — _next_actions carries both calls for the latest day). 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. The chain covers the macro regime prediction ledger only — scope lists what is and is not chained; time_resolution = one hash per UTC day. Output: full_data { recipe_version, recipe, scope, time_resolution, 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.

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

Input Schema

NameRequiredDescriptionDefault
daysNohow many most-recent chain entries to return (max 400)

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.3/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 context beyond them: chain inception date 2026-03-22, once-per-UTC-day computation, append-only at the serving-role level, prev_chain_hash commitment to prior history, and an explicit scope limitation to the macro regime ledger. The caveat that archived hashes will fail to match if history is edited is exactly the behavioral nuance an agent needs.

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?

Labeled sections (Purpose, Triggers, When to call, Prerequisites, Next steps, Caveats) make it scannable and front-loaded. It is somewhat overlong for one optional parameter, and the full output field enumeration plus the trailing 'Output nature' boilerplate duplicate what the output schema already provides.

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?

Covers prerequisites, scope boundaries, next-step chains, and the verification workflow thoroughly for a one-parameter tool. The minor gap is that the days parameter's behavior (entry ordering, what happens when requested days exceed chain_length) is left entirely to the 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 coverage is 100% and the single days parameter (default 30, max 400) is fully documented in the schema. The description never mentions days, max 400 truncation, or ordering of entries, so it adds no meaning beyond the schema — baseline 3.

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 mechanism (daily SHA-256 hash chain over created/resolved prediction rows) and a specific goal (tamper-evidence, third-party recomputation). It is clearly distinct from siblings by naming get_resolved_predictions as the raw-row source rather than the integrity proof.

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?

Gives explicit triggers and whenever guidance: first step of a credibility audit, then periodically to re-anchor, plus named next steps with exact parameter combinations. It stops short of saying when NOT to call it (e.g., quick answer lookups), so it is strong but not fully exclusive.

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