A股因果链推演的独立 MCP 服务。把 Athena internal/causal 的因果推断能力暴露成 MCP 工具:事件↔标的匹配、CAR 计算、方向/置信度定级、估计窗清洗、端到端链路构建。
Server has 11 tools with complete input schemas and descriptions. Naming follows verb_noun convention (match_, filter_, compute_, grade_, build_, propagate_, query_, db_). Descriptions are detailed (100-300 chars) and explain purpose, alignment to Athena, and parameters. However, output schemas are NOT documented, tools return JSON but LLMs cannot see what fields to expect. Parameter descriptions are present but some lack format/constraint details (e.g., 'event_date' says 'YYYY-MM-DD' but no validation guidance). Error handling is minimal, no recovery guidance or categorization. No tool annotations (readOnlyHint/destructiveHint). Two tools (build_causal_chain, propagate_impact) are WRITE operations but lack confirmation/dry-run patterns.
端到端因果链构建:事件 → 标的匹配 → CAR 计算 → 方向定级 → 反驳评分。
估计窗清洗(对齐 Athena cleanEstimationWindow):剔除与本标的相关的冲突事件日期,返回洗净的逐日异常收益序列。
区间累计异常收益 CAR(对齐 Athena computeCAR):个股区间收益 − 基准区间收益。越界或收盘价为 0 一律返回 0(与原实现一致,不插值)。
查询数据库统计信息(因果链总数 / 显著链数 / 已评分链数 / 传播结果数 / 不同标的数)。
按事件板块把 watchlist 收窄(对齐 Athena filterBySector)——用于扇区门控兜底,避免把全量 watchlist 扇出到每个无板块事件(athena 注释:曾每轮产生 ~52k 对、几乎全不显著)。
反驳评分(对齐 Athena gradeRefutation):综合 CAR / 方向 / 置信度 / 估计窗洗净度,给出 strong / moderate / weak / none。
事件驱动方向 + 置信度(对齐 Athena grangerDirection 与 confidenceFromPValue,含全部阈值与舍入规则)。
Output schemas not documented. Tools return JSON (e.g., {error: msg}, {symbols: [...], count: N}) but LLMs cannot see expected fields, types, or structure. Forces LLMs to guess what to extract for downstream calls.
WRITE operations (build_causal_chain, propagate_impact) lack confirmation/dry-run patterns. No way for agents to preview results before persisting to SQLite. Risks unintended data writes.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). LLMs cannot distinguish safe reads from destructive writes without reading descriptions. Violates current MCP spec (2026-07-28).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 59 | <=2025-11-25 | v2 |
事件→标的匹配(对齐 Athena matchEventToSymbols):已有 symbols 直接沿用,否则用标题关键词表 + 事件板块字段匹配到代表股票池。
知识图谱传播:从事件出发,沿供应链/竞争关系传播影响到间接相关标的。
查询已持久化的因果链(按标的 / 方向 / 显著性 / 反驳等级 / 时间范围过滤)。
查询已持久化的知识图谱传播结果(按目标标的 / 事件 / 跳数过滤)。
Error handling is minimal. Functions return {error: msg} but do not categorize errors (retryable vs user-fixable vs fatal) or provide recovery guidance. E.g., 'event_title 不能为空' gives no hint to retry or call a discovery tool.
Parameter constraints lack detail. E.g., 'event_date' says 'YYYY-MM-DD' but no validation guidance on what happens if date is outside K-line range. 'car_windows' is array but no min/max per-element constraints documented.