Skip to main content
Glama
Dor1Toes

BackTest_MCP

by Dor1Toes

get_backtest_result

Retrieve the status and summary of a backtest job using its job ID. Returns metrics and metadata once the job completes.

Instructions

Fetch status and summary for a backtest job stored in SQLite.

Args: job_id: Job identifier returned by run_backtest_dynamic.

Returns: {"ok": true, "job_id": str, "status": str, "job_type": str, "error_message": str|null, "result": dict|null} where result holds metrics and metadata when status is "done". On unknown job: {"ok": false, "error": str}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
Behavior4/5

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

With no annotations, the description carries the burden of explaining behavior. It fully documents the return schema, including the `ok` flag, status, error handling, and the `result` field conditionally populated when status is `'done'`. It also covers the unknown job case. It doesn't mention replication or side effects, but for a fetcher that's a reasonable trade-off.

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 well-organized with an Args section and a Returns section, both concise and free of fluff. Every sentence adds value, and the return format is presented in a compact but complete manner.

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 simple one-parameter fetch operation, the description is fully sufficient. It specifies input provenance, success and error return shapes, and conditional behavior of the `result` field. No output schema exists, but the description provides one inline, ensuring the agent understands what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema provides only the name and type of `job_id`, the description explains it is a 'Job identifier returned by `run_backtest_dynamic`'. This provenance clue adds essential meaning beyond the schema, fully compensating for the 0% schema description coverage.

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 action ('Fetch status and summary') and the resource ('a backtest job stored in SQLite'). It distinguishes itself from sibling tools like get_backtest_artifacts and list_backtest_jobs by focusing on job results rather than artifacts or a list.

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 by referencing `run_backtest_dynamic` as the source of `job_id`, implying this tool is used after starting a backtest. However, it doesn't explicitly mention when not to use it or suggest alternative tools for other needs (e.g., get_backtest_artifacts for file outputs).

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/Dor1Toes/BackTest_MCP'

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