Skip to main content
Glama
Gainium

Gainium

Official

run_backtest

Validate, estimate credit cost, or request synchronous or asynchronous backtests for DCA, combo, or grid bots using exchange and settings payload.

Instructions

Run a backtest operation: validate, estimate cost, request async, or request with sync response. Pass a backtest payload with exchange, exchangeUUID, and bot settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesBacktest mode. validate: confirm payload. estimate: check credit cost. request: async backtest. requestSync: wait for result.
botTypeYesBot type for the backtest
payloadYesBacktest request wrapper. Required nesting: payload.data.exchange (string), payload.data.exchangeUUID (UUID string), payload.data.settings (inner bot settings object). Optional: from, to (Unix ms timestamps), interval (default: 1h).
paperContextNoPaper trading context (true = paper, false = real). Default: false
fieldsNoField selection for requestSync mode (optional)
Behavior2/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, but the description does not clarify what the tool actually does beyond 'run backtest'. It omits behavioral details such as whether it consumes credits, returns a backtest ID, or how long async requests take. The description adds minimal value beyond the annotations and schema.

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?

The description is extremely concise: two sentences that cover the tool's purpose and main modes without extraneous information. It is front-loaded with the action (run) and key distinction (four modes), making it easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (nested objects, enums, multiple modes), the description is too brief. It does not explain what the tool returns (no output schema), how to interpret results, or prerequisites like credit balance. However, it covers the basic operation flow. A more complete description would add outcome details.

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 coverage is 100%, so baseline is 3. The description adds a brief summary of required payload fields, but this largely repeats the schema. It does not provide additional context or constraints beyond what the schema already offers. A higher score would require unique semantic insights, which are absent.

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 clearly states the tool runs backtest operations, lists four distinct modes (validate, estimate, request, requestSync), and specifies the required payload elements (exchange, exchangeUUID, bot settings). It distinguishes from siblings like backtest_info, which handles results, and other bot management tools.

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?

The description provides clear context for when to use each mode (validate, estimate, request, requestSync), but does not explicitly state when not to use the tool or offer direct comparisons with alternatives like backtest_info for retrieving results. The guidance is adequate for an agent to choose the correct mode.

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/Gainium/gainium-mcp'

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