Skip to main content
Glama

Fork strategy

fork_strategy

Answers 'copy this published strategy and change one thing.' Give a slug and changes (nested fields merged, e.g. signal lookback 252 to 126); optionally a new title. Returns the fork's slug and page URL. Re-runs the strategy on the server and publishes the fork linked to its parent. Costs one backtest. If the slug is unknown, the error says so - call list_strategies or get_strategy to find a valid slug first.

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": {
      "slug": "<slug>",
      "changes": "<changes>"
    },
    "name": "fork_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
as_ofNoPoint-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC).
titleNo
changesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the tool re-runs the strategy server-side, publishes the fork linked to its parent, and costs one backtest — a material side effect and quota cost an agent must know. It also describes the return payload (fork slug and page URL) and the error behavior for unknown slugs, which the annotations do not cover.

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 description is front-loaded with the core action and follows with mechanics, cost, and error handling in a logical order. It is dense but nearly every clause carries information; the parenthetical example is well-placed rather than padding.

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?

For a mutating, non-idempotent tool with no output schema and sparse parameter documentation, the description covers the essential gaps: what it creates, that it re-runs and publishes, the backtest cost, the return values, and the failure path. An agent has enough to invoke it correctly without further exploration.

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 only 25% (only as_of is documented), so the description must compensate, and it largely does: it explains that changes are nested fields merged with an example (signal lookback 252 to 126) and that title is optional. The slug parameter's meaning is only implied by context rather than defined, leaving a small gap.

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?

The description opens with a concrete verb+resource framing ('copy this published strategy and change one thing') and names the exact inputs and outputs. It is clearly distinguishable from siblings like register_strategy, publish_strategy, and run_strategy because it explicitly describes forking an existing published strategy rather than creating or running one.

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?

It states the use case precisely ('copy this published strategy and change one thing') and gives a recovery path when the slug is invalid, directing the agent to list_strategies or get_strategy. It stops short of explicitly contrasting with register_strategy or publish_strategy, so the when-not-to-use guidance is implied 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.