Skip to main content
Glama
felpra-trading-mcp

felpra-trading-mcp

Official

Explain a Decision

explain_decision
Read-onlyIdempotent

Explains why a symbol's signal is bullish or bearish by combining technical score traces, virtual decision-log regime scores, and news causality, with optional history, feedback, and timeframe roles.

Instructions

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: none — get_symbol_context or get_signals can show the symbol's current signal first, but neither is required. Next steps: none (this completes the explanation chain). Caveats: symbol is case-insensitive (BTC = btc); the response and _next_actions use the upper-case form. 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.

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>",
      "symbol": "<symbol>"
    },
    "name": "explain_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesSymbol to explain, any letter case (e.g., BTC, ETH, 005930)
includeNoOptional extra sections under `included`: history (latest combined signal + recent history), feedback (pattern feedback from paper-trade outcomes), roles (per-role multi-timeframe alignment: timing / trend / swing / regime). Default none = the explanation only.
market_idYesMarket identifier (crypto, kr_stock, us_stock; aliases coin/kr/us)

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?

Beyond the read-only/idempotent annotations, the description discloses that output is not a buy/sell recommendation, that case is normalized to upper-case in the response and _next_actions, and that sections mix live-price signals with simulated paper-trading results per meta.data_type_sections. These are non-obvious behavioral traits that meaningfully change how an agent should interpret and relay the output.

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 trigger list is front-loaded and useful, but the definition is verbose: the opening sentence, the 'Purpose' line, and 'When to call' all restate the same intent, and the bilingual trigger catalog is long. Content is organized but not tight.

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 a complex multi-source explanation tool with an output schema, the description covers prerequisites, next steps, caveats, and the nature of the returned sections. An agent has everything needed to call it correctly and to frame the result appropriately.

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%, so the schema already documents symbol, market_id, and each include value in detail. The description restates the include values and adds only a minor case-insensitivity/upper-case note that the schema largely covers, so it does not add much meaning beyond the structured fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence gives a specific verb and resource: a structured, multi-layer 'why' for one symbol's signal, and the Purpose line enumerates the three sources it combines (score_trace, Thompson/regime from the decision log, news causality). It implicitly separates itself from get_signals/get_symbol_context ('show the current signal first'), though that differentiation is only implied rather than stated as a contrast.

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 are given with concrete example phrasings in both English and Korean, plus a dedicated 'When to call' line, a 'Prerequisites: none' note that names optional precursors, and 'Next steps: none' closing the chain. There is essentially nothing left for the agent to infer about when to select this tool.

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