Skip to main content
Glama

运行策略工厂

platform_factory_run
Destructive

【策略】发起策略工厂运行(写操作,需确认):sourceType=llm(描述生成)/search(条件扫描)/optimize(优化现有策略,需 strategyId)。同一用户同时只允许一个运行。(cost: base 5 + 10/1k bars(>10000 部分 5/1k) + 1/1k tokens credits)(写操作,外部调用将以 apikey 身份直接执行)

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": "platform_factory_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo回测天数(可选)
intentNo自然语言意图(llm 模式用)
symbolNo交易对(可选,默认 BTC/USDT)
factorIdsNo条件 ID 列表(search 模式用)
timeframeNo周期(可选)
sourceTypeNo运行类型(可选,默认 llm)
strategyIdNo被优化的策略 ID(optimize 必填,支持 s:/t: 前缀)
thresholdsNo指标阈值(可选)
nCandidatesNo生成候选数(llm 模式,可选)
searchBudgetNo搜索预算(可选)
maxCandidatesNo候选上限(可选)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint=false, destructiveHint=true), the description adds substantial operational context: it is a write operation requiring confirmation, external calls execute directly under the apikey identity, only one concurrent run per user is allowed, and it gives a full pricing formula (base 5 + 10/1k bars with 5/1k above 10k bars + 1/1k tokens). This is exactly the kind of cost and authorization detail annotations cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Despite being a single dense sentence block, everything is front-loaded: the action and write/confirm warning come first, then mode routing, then concurrency, then cost. No sentence is filler; the parenthetical cost formula is compact and relevant for an agent deciding whether to invoke.

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?

For an 11-parameter tool with no required fields, nested objects (thresholds), and no output schema, the description covers mode selection, cost, concurrency, and execution identity well. It stops short of saying what a successful run returns (run id, async vs sync), which would help an agent chain into platform_factory_runs.

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 description coverage is already 100%, so the baseline is 3. The description goes beyond the schema by mapping sourceType values to the parameters they require (optimize needs strategyId, llm uses intent/nCandidates, search uses factorIds), which is meaningful cross-parameter semantics the per-field descriptions do not state.

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 description gives a specific verb and resource ('发起策略工厂运行') and immediately enumerates the three run modes (llm for description generation, search for condition scanning, optimize for existing strategies), which lets an agent distinguish this from the sibling list tool platform_factory_runs. It never names a sibling explicitly, so identification relies on the verb 'initiate' versus 'list'.

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?

Usage guidance is embedded per mode: sourceType=llm for description generation, search for condition scanning, optimize for optimizing an existing strategy and that mode requires strategyId. It also states the concurrency constraint that only one run per user is allowed at a time. What is missing is explicit when-not-to-use guidance or a pointer to platform_factory_runs for checking existing runs.

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.