Skip to main content
Glama

FELPRA Trading Intelligence

Explain a Decision

explain_decision
Read-onlyIdempotent

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.

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 (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 observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds real behavioral context beyond them: the output is explicitly not a buy/sell recommendation, and the output mixes observed live signals with simulated paper-trading results via meta.data_type_sections. The lowercase filename constraint on `symbol` is also disclosed. It stops short of describing size or latency characteristics, so not a 5.

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?

Front-loaded and labelled with Purpose/Triggers/When to call/Prerequisites/Caveats headings, which aids scanning. However, the trigger list is long and partly redundant with the 'When to call' line and the opening sentence, and the Thompson parenthetical is a detour for the caller rather than guidance on invocation.

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?

An output schema exists, so return values need not be documented, yet the description still flags the mixed observed/simulated nature of the output — the one interpretive risk an agent would otherwise miss. Prerequisite, next step, caveat, and scope are all covered for a three-parameter read tool.

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 would be 3, but the description adds a constraint absent from the schema — that `symbol` must match the per-symbol signal store filename in lowercase — and characterises what `include` sections contribute in the explanation narrative. The repeated enumeration of include values is largely redundant with the schema.

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 verb and resource ('structured, multi-layer why for one symbol') and enumerates the three composed sources (score_trace from signals store, Thompson + regime from virtual decision log, news causality). It distinguishes itself from get_signals, which is framed as the prerequisite rather than a substitute.

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 explicit triggers in two languages, a 'When to call' line, a prerequisite (identify the symbol via get_signals first), a 'Next steps: none' terminator, and an alternative (get_signals) for the setup step. Little is left to inference about when this tool is the right choice.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.