Skip to main content
Glama

发布策略

platform_publish_strategy
Destructive

【策略】提交策略审核(提交后进入 pending_review,不会直接上架)。name / category / agentCategory / code 必填;同时必须披露样本外结果 oos、搜索尝试次数 n_trials、经济解释 economicRationale(≥10 字)。live_observation_days 为实盘观察天数(可选;source=factory 来源时后端要求达到上架门槛)。strategy_id 可指定已有草稿提交。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)

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": {
      "name": "<name>",
      "category": "<category>",
      "agentCategory": "<agentCategory>",
      "code": "<code>",
      "oos": "<oos>",
      "n_trials": "<n_trials>",
      "economicRationale": "<economicRationale>"
    },
    "name": "platform_publish_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
oosYes样本外结果(必填)
codeYes策略代码(必填)
nameYes策略名称(必填)
paramsNo策略参数(可选)
categoryYes分类(必填)
n_trialsYes搜索尝试次数(必填,≥1)
descriptionNo策略描述(可选)
performanceNo历史表现数据(可选)
strategy_idNo已有草稿 ID(可选,提交该草稿)
agentCategoryYes应用类别(必填,AGENT_CATEGORIES 之一,如 quant-trading)
payment_tokenNo支付代币,默认 ETH
economicRationaleYes经济解释(必填,至少 10 字)
subscription_priceNo订阅价格(可选)
live_observation_daysNo实盘观察天数(可选;factory 来源需达到上架门槛)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed8 schema fields changed
    • addedInput schema / properties / agentCategory
      Added value: +{
      +  "description": "应用类别(必填,AGENT_CATEGORIES 之一,如 quant-trading)",
      +  "type": "string"
      +}
    • changedInput schema / properties / code / description
      Previous value: -"策略代码(可选)"New value: +"策略代码(必填)"
    • addedInput schema / properties / economicRationale
      Added value: +{
      +  "description": "经济解释(必填,至少 10 字)",
      +  "type": "string"
      +}
    • addedInput schema / properties / live_observation_days
      Added value: +{
      +  "description": "实盘观察天数(可选;factory 来源需达到上架门槛)",
      +  "type": "string"
      +}
    • addedInput schema / properties / n_trials
      Added value: +{
      +  "description": "搜索尝试次数(必填,≥1)",
      +  "type": "string"
      +}
    • addedInput schema / properties / oos
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "样本外结果(必填)",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / strategy_id / description
      Previous value: -"已有草稿 ID(可选,发布该草稿)"New value: +"已有草稿 ID(可选,提交该草稿)"
    • changedInput schema / required
      Previous value: -[
      -  "name",
      -  "category"
      -]New value: +[
      +  "name",
      +  "category",
      +  "agentCategory",
      +  "code",
      +  "oos",
      +  "n_trials",
      +  "economicRationale"
      +]
  4. Added
  5. Removed
  6. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations, it discloses that submission does not publish directly but enters pending_review, that the call is free, and that external invocation executes under the apikey identity. It also flags the conditional backend threshold on live_observation_days when source=factory, which is real behavioral context an agent cannot get from the schema. It does not describe what the response contains, which is the only meaningful gap.

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?

The key constraint, that this submits into pending_review rather than listing, is front-loaded before the field requirements. Density is justified by 14 parameters and 7 required fields, though the trailing cost/auth parentheticals are terse tags rather than fully integrated prose.

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 a 14-parameter mutation with nested objects, the description covers required fields, the conditional factory-source rule, the draft-submission path, cost, and execution identity. The main omission is the return value (e.g., the resulting strategy/draft identifier or review status), which matters since no output schema exists.

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 description coverage is 100%, so the baseline is 3, and most of the description's parameter text (required names, economicRationale ≥10 chars, strategy_id as draft) restates schema descriptions. The factory-source note on live_observation_days adds a little conditional meaning but is also present in the schema. No syntax or format detail is added beyond the schema.

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: submit a strategy for review, with the parenthetical clarifying that it lands in pending_review and is not listed directly. That distinguishes it from live-listing/manage siblings without naming them, so the agent can separate submission from management. It stops short of an explicit contrast to platform_manage_strategy.

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

Usage Guidelines3/5

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

It implies the usage context (submit a new strategy, or an existing draft via strategy_id) and lists the mandatory disclosure fields, which tells the agent what a valid call looks like. However, there is no explicit when-not-to-use guidance and no named alternative for editing or managing an already-submitted strategy. Usage is inferable rather than stated.

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.