Skip to main content
Glama

train_baseline

Fit a named model to a dataset using a target column and task type, then return evaluation metrics and feature metadata for baseline assessment.

Instructions

Fit one named model and return evaluation metrics and feature metadata. Supply a dataset, target and task. Use start_training_job for background evaluation or export_model to fit and save a reusable bundle.

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": "train_baseline"
  }
}

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. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. To its credit it states the return payload (evaluation metrics and feature metadata), which is otherwise undocumented since there is no output schema, and it implies a synchronous inline fit rather than a background job. It does not say whether a model artifact is persisted, whether the call blocks for long periods, what permissions it needs, or what it does when name/target/model_name are invalid.

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?

Two tight sentences: the first covers what it does and returns, the second covers routing to alternatives. There is no restating of the tool name and no filler, and the payload statement is front-loaded.

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?

For a 10-parameter, 4-required training tool with no annotations and no output schema, the description covers purpose, return payload and alternatives, which is the core. It leaves out persistence semantics, expected duration/blocking behavior, and preconditions that an agent would need to call this confidently in a pipeline.

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 every one of the 10 parameters is already documented in the schema, which sets the baseline at 3. The description adds only the high-level reminder to supply a dataset, target and task, and says nothing about the more consequential parameters (split_manifest_id enforcement, exclude_columns, stratify) beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Fit one named model and return evaluation metrics and feature metadata" states a specific verb (fit/train) and scope (single model), plus what comes back. It also names two siblings it is not (start_training_job, export_model), so an agent can place it without opening a schema. It stops short of contrasting with tuning/AutoML siblings, but the core purpose is unambiguous.

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 gives explicit routing conditions for two alternatives: start_training_job when background evaluation is wanted, export_model when a saved reusable bundle is wanted. What is missing is any precondition on this call itself (e.g. dataset must be prepared/inspected first) or an explicit statement of when not to use it.

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