Skip to main content
Glama

Get Training Result

get_training_result
Read-onlyIdempotent

Wait for a training started by train_strategy and return its result.

Waits up to wait_s seconds (default 30, at most 120). While it runs: done false and the status; call again with the same job_id. When done: model_stem, the out-of-sample test_stats and the train_stats (ret, mdd and wr are fractions, pf the profit factor, n the trade count), long_stats, short_stats, exits (trades by exit reason: TP, SL, signal, close_only, end) and the last 50 out-of-sample trades with pips and pnl_usd. A failed training answers ok false with the reason. Read only; nothing is charged.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_training_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job_id train_strategy returned.
wait_sNoSeconds to wait for the result, 0 to 120. Default 30.

Output Schema

NameRequiredDescriptionDefault

No arguments

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 readOnly/idempotent annotations, it discloses the blocking behavior and its cap (wait_s default 30, max 120), the two possible response shapes (partial with done false vs. complete), the failure shape (ok false plus reason), and that 'nothing is charged'. This is exactly the behavioral context annotations cannot express.

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?

Front-loaded with purpose and polling mechanics, and every clause is functional. The long enumeration of return fields (stats, exits, last 50 trades) is somewhat redundant given the tool has an output schema, which costs a little efficiency.

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 two-parameter polling tool, the description covers preconditions, wait semantics, intermediate and terminal return states, and error handling, all on top of an existing output schema. Nothing an agent needs to invoke it correctly is missing.

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 100%, so baseline is 3, but the description adds real meaning: wait_s is a bounded wait (30 default, 120 max) rather than a generic timeout, and job_id must be reused unchanged across repeated calls. That clarifies the intent of both parameters beyond their schema text.

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 specific verb and resource ('Wait for a training started by train_strategy and return its result'), immediately tying it to the sibling that produces the job_id. An agent can distinguish it from get_deploy_result or get_model_chart without opening any schema.

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 clearly states the precondition (after train_strategy) and the polling protocol: if 'done' is false, 'call again with the same job_id'. That is strong when-to-use guidance. It stops short of naming alternatives or exclusions, but none are plausibly confusable here.

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