Skip to main content
Glama

start_training_job

Queue a named model training job with dataset, target, and task type, returning a job ID immediately so you can poll its status instead of waiting.

Instructions

Queue one named model fit and return a job_id without waiting for training. Supply a dataset, target and task, then poll get_training_status for results. Use train_baseline when you want the metrics in the same call.

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": {
      "name": "<name>",
      "target_column": "<target_column>",
      "task_type": "<task_type>",
      "model_name": "<model_name>"
    },
    "name": "start_training_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDataset filename.
stratifyNoStratify split (classification only, default true).
delimiterNoCSV delimiter (comma, semicolon, tab, pipe). Auto.
task_typeYes'classification' or 'regression'.
test_sizeNoTest fraction (default 0.2).
model_nameYesModel to train.
random_stateNoRandom seed (default 42).
target_columnYesTarget variable column.
exclude_columnsNoFeature columns to exclude before preprocessing/training.
split_manifest_idNoID of a validated split manifest to enforce indices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / delimiter
      Added value: +{
      +  "description": "CSV delimiter (comma, semicolon, tab, pipe). Auto.",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclude_columns
      Added value: +{
      +  "description": "Feature columns to exclude before preprocessing/training.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / split_manifest_id
      Added value: +{
      +  "description": "ID of a validated split manifest to enforce indices.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.4/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 burden and it does disclose the most important trait: the call is non-blocking and returns a job_id that must be polled via get_training_status. It stops short of failure behavior, whether duplicate job names are rejected, or how to abort the job (cancel_training_job is never referenced).

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 short sentences, each doing distinct work: what it does, how to use it, and when to pick the sibling. The core contract about returning a job_id is front-loaded with zero filler.

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 a 10-parameter async training tool with no annotations and no output schema, the definition covers the essential workflow: inputs, the returned job_id, the polling follow-up, and the synchronous alternative. Minor gaps remain around error/validation behavior and cancellation, but nothing blocks a correct invocation.

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 description coverage is 100%, so the schema already documents all ten parameters including stratify, delimiter, test_size, and split_manifest_id. The description only restates the dataset/target/task trio and adds no format or interaction detail beyond the schema, which is the expected baseline.

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?

States a specific verb and resource ('Queue one named model fit') plus the key contract ('return a job_id without waiting for training'), which makes the async nature unmistakable. It also implicitly separates this from the synchronous sibling train_baseline, so an agent can choose without inspecting either schema.

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?

Gives the direct usage sequence ('Supply a dataset, target and task, then poll get_training_status for results') and names the alternative with the selecting condition ('Use train_baseline when you want the metrics in the same call'). The when-to-use and the competing option are both explicit.

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