Skip to main content
Glama
alforge-labs

alpha-forge-mcp

Official

run_backtest

Execute a backtest for a given symbol using a registered strategy. Requires prior data fetch; supports optional date range.

Instructions

Run a backtest for symbol with a registered strategy. Optional dates are YYYY-MM-DD.

Prerequisite: call `fetch_data` for the symbol first so the OHLCV cache exists.
Long-running: up to a 300-second timeout; reports progress to capable clients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
startNo
symbolYes
strategy_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataYes
errorYes
Behavior4/5

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

Adds useful behavioral info beyond annotations: mentions 300-second timeout and progress reporting. No contradiction with annotations (readOnlyHint=false, destructiveHint=false are consistent with run action).

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?

Three sentences, each adding distinct value: purpose, prerequisite, performance details. No fluff.

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?

Covers key aspects: required prerequisites, runtime behavior, and hints at return (via output schema). Missing details about error states or what happens if cache is missing, but generally sufficient.

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?

With 0% schema description coverage, the description adds some value (date format YYYY-MM-DD, lists required params) but does not fully explain each parameter's meaning or constraints.

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?

Clearly states it runs a backtest for a symbol with a registered strategy. However, does not distinguish from siblings like run_optimize or run_monte_carlo, which are different backtest variants.

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?

Provides a prerequisite (call fetch_data first) and mentions long-running behavior with timeout. But lacks guidance on when to use this vs. other backtest-related sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alforge-labs/alpha-forge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server