Skip to main content
Glama

Backtest Vault

Re-run with changes

rerun
Idempotent

What it does: re-runs a saved strategy with changes merged into its spec (objects merge one level down, e.g. {"exit": {"stop_ticks": 50}} changes only the stop; scalars and arrays replace) as a normal backtest and saves a new run. Returns: the same shape as run_backtest. When to use: variations of an existing run, so everything else stays identical. Costs the same credits as run_backtest; an unchanged spec is a free cache hit.

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": {
      "run_id": "<run_id>",
      "changes": "<changes>"
    },
    "name": "rerun"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
changesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations (which only cover readOnly/destructive/idempotent/openWorld) by disclosing the merge rules, that a new run is persisted, credit cost, and cache behavior for unchanged specs. Minor tension: 'saves a new run' sits uneasily with idempotentHint=true, though the free cache-hit note largely reconciles it. It does not mention permissions or failure behavior on an invalid run_id.

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?

Front-loaded and labeled (What it does / Returns / When to use), two short paragraphs with zero filler. The nested-object merge rule, which is the only non-obvious part, is placed in the first sentence where it is needed.

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?

With no output schema, the description covers the return value by reference ('same shape as run_backtest') and covers cost, merge semantics, and persistence. Given a schema with completely undocumented parameters, it is close to sufficient, though error cases for a bad run_id or invalid change keys are unaddressed.

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 0% and the description compensates well, defining the deep-merge semantics of `changes` with a concrete example ({"exit": {"stop_ticks": 50}}) and the object/scalar/array rules. It leaves `run_id` entirely unexplained and doesn't state whether unknown spec keys are rejected.

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?

States a specific verb+resource (re-run a saved strategy, save a new run) and pins down the transformation: changes are merged into the spec as a normal backtest. This is clearly distinct from run_backtest (full spec) and from get_run/delete_run on sibling tools, so an agent can pick it without opening the schema.

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

Usage Guidelines5/5

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

Explicit when-to-use: 'variations of an existing run, so everything else stays identical', which names the selecting condition and implies run_backtest for whole-spec changes. It also gives the cost tradeoff versus run_backtest and notes the unchanged-spec cache hit, which is exactly what an agent needs to decide between the two tools.

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.

Resources