Skip to main content
Glama
chestnutsheep

DeepFusion MCP Server

策略回测

backtest_strategy

Backtest trading strategies on historical prices using technical indicators (SMA, RSI, MACD, BOLL, MA_CROSS, KDJ) for any stock symbol, market, and period.

Instructions

基于历史价格与技术指标进行简单策略回测(SMA/RSI/MACD/BOLL/MA_CROSS/KDJ)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo回测天数
marketNo市场: sh=沪市, sz=深市, bj=北交所, hk=港股, us=美股sh
symbolYes股票代码
strategyNo策略类型: SMA/RSI/MACD/BOLL/MA_CROSS/KDJSMA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

无任何注解,描述需承担完全的行为披露责任。描述仅说明回测基于历史价格与技术指标,但未披露该操作是只读模拟、是否依赖特定数据源、是否有计算开销或结果形式。对于回测工具,未说明不会产生实际交易或需要额外权限。

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?

描述为单个简洁句子,核心动作和策略列表均前置,没有冗余内容。但缺少任何结构化信息(如使用条件、返回值),不过就其呈现的内容而言,已经做到简洁高效。

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

工具拥有4个参数和6种策略,复杂度中等,且无输出schema。描述未说明回测结果的形态(如收益率、信号、图表),也未说明与crypto回测的边界,agent无法充分判断调用后的返回内容或限制。

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描述覆盖率达到100%,所有参数(symbol、days、market、strategy)在schema中已有清晰说明。描述中列出的策略类型与schema中strategy参数的枚举完全重复,未增加额外语义,因此维持基线3。

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?

描述明确说明了工具功能:基于历史价格与技术指标进行策略回测,并列出六种具体策略(SMA/RSI/MACD/BOLL/MA_CROSS/KDJ)。这足以让agent理解工具用途,但未明确区分于兄弟工具backtest_crypto_strategy,因为描述未指明本工具仅适用于股票市场,尽管schema中market参数暗示了这一点。

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

描述完全没有提供使用场景或与替代方案的对比。没有说明何时应使用此工具而非backtest_crypto_strategy或其他技术指标类工具(如stock_tech_indicators),缺少when/when-not指导。

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

Deploy Server

Other Tools