Skip to main content
Glama
limam-B
by limam-B

force_training

Launch a new ML-Agents training run as a background process, overwriting previous results for the specified run ID. Blocks until the Unity environment is ready to train.

Instructions

Launch a new mlagents-learn training run as a background process. Always overwrites previous results for the same run_id. To continue from a checkpoint, use resume_training instead.

By default, blocks until ready: in editor mode (no env_path), waits until mlagents-learn says 'Listening on port... press Play'. In batch mode (with env_path), waits until the executable connects.

Args: config_path: Path to the YAML training config file. run_id: Unique identifier for this training run. env_path: Path to a built Unity environment executable. Omit to use the Unity Editor. num_envs: Number of parallel Unity environment instances. no_graphics: Disable graphics rendering for faster training. torch_device: PyTorch device (e.g. 'cuda', 'cpu', 'cuda:0'). seed: Random seed (-1 for random). time_scale: Unity time scale multiplier. base_port: Base port for Unity communication (auto-assigned if omitted). wait: Block until ready (default true). Editor mode: waits for 'press Play'. Batch mode: waits for connection. wait_timeout: Max seconds to wait when wait=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNo
waitNo
run_idYes
env_pathNo
num_envsNo
base_portNo
time_scaleNo
config_pathYes
no_graphicsNo
torch_deviceNo
wait_timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral disclosure burden. It reveals that the training runs as a background process, that it always overwrites previous results for the same run_id, and that it blocks until ready with mode-specific conditions. It stops short of explaining process lifecycle details such as whether launch failures clean up partial processes, but the disclosed behaviors are important and clearly stated.

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?

The description is well structured: purpose and critical warning first, then blocking behavior, then a clean Args list. No sentence is purely decorative, and the overwrite warning is front-loaded where an agent will see it. The Args list is somewhat long, but it is necessary given the zero-coverage schema.

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?

For an 11-parameter launch tool with no annotations, the description is fairly complete. It covers all parameters, explains the blocking semantics in both modes, and highlights the destructive overwrite behavior. Since an output schema exists, omitting return-value details is acceptable. A little more context about post-launch monitoring or failure cleanup would round it out, but the core operational picture is present.

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 description coverage is 0%, so the description must compensate for the schema's silence. It does this by providing a one-line semantic explanation for every parameter, including useful details like torch_device example values, base_port auto-assignment, seed -1 meaning random, and the wait behavior split by mode. It could add more nuance, such as constraints on time_scale or port ranges, but it meaningfully enriches all parameters.

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: 'Launch a new mlagents-learn training run as a background process.' It clearly identifies what the tool does and immediately distinguishes it from resume_training by warning about overwriting previous results for the same run_id. This gives an agent a precise mental model of the tool's role.

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?

The description provides explicit when-to-use and when-not-to-use guidance: 'To continue from a checkpoint, use resume_training instead.' It also explains the two modes (editor vs batch) and the blocking behavior in each, which helps an agent decide how to invoke it and what to expect. This is strong, actionable usage guidance.

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

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/limam-B/mlagents-mcp-server'

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