Skip to main content
Glama

export_model

Train a model from a dataset or copy a trusted bundle, then save a named local artifact with fitted preprocessing and schema for reproducible predictions.

Instructions

Write a named local model bundle with fitted preprocessing and feature schema for predict. Supply name, target_column, task_type and model_name to train, or pass a trusted existing bundle name as model_handle to copy it. Reusing artifact_name can overwrite a saved 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": {
      "artifact_name": "<artifact_name>"
    },
    "name": "export_model"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDataset filename (to train and export).
stratifyNoStratify split (classification only).
delimiterNoCSV delimiter (comma, semicolon, tab, pipe). Auto.
task_typeNo'classification' or 'regression'.
test_sizeNoTest fraction (default 0.2).
model_nameNoModel to train and export.
model_handleNoName of a trusted model bundle already saved as an artifact.
random_stateNoRandom seed (default 42).
artifact_nameYesName for the saved artifact.
target_columnNoTarget 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. Changed1 schema field changedv0.3.4
    • changedInput schema / properties / model_handle / description
      Previous value: -"Handle of a previously trained model."New value: +"Name of a trusted model bundle already saved as an artifact."
  2. 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"
      +}
  3. First observedv0.1.0

TDQS

A4.1/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 does the most important part: it warns that reusing artifact_name can overwrite a saved bundle, which is the key destructive behavior an agent must know before calling. It also qualifies model_handle as a 'trusted' bundle and discloses that the artifact bundles preprocessing plus feature schema. It omits training duration/long-running characteristics and failure behavior.

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 sentences, front-loaded with the artifact definition, then the two call modes, then the overwrite hazard. Every sentence carries information an agent needs and nothing is repeated from the schema verbatim.

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?

The description covers artifact content and both invocation modes, which is the core of this tool. However, with 12 parameters, no annotations, and no output schema, an agent still lacks return-value expectations and any sense of cost or side effects from training. Adequate but with clear remaining gaps for a tool of this complexity.

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 coverage is 100%, so every one of the 12 parameters is already documented in the schema; the baseline is 3. The description does add modest value by grouping four parameters into a coherent training call and pairing model_handle with the copy mode, but it says nothing about the remaining parameters (test_size, stratify, random_state, exclude_columns, split_manifest_id).

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 ('Write a named local model bundle') and specifies the bundle's contents ('fitted preprocessing and feature schema for predict'), which tells an agent exactly what artifact this produces and who consumes it. It also splits the tool into two clearly named operating modes (train vs. copy), which no sibling name alone would reveal.

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?

Gives explicit selection logic: supply name/target_column/task_type/model_name to train, or pass a trusted existing bundle name as model_handle to copy. That is genuine when-to-use guidance for the two paths. It stops short of naming alternatives such as train_baseline, tune_model, or start_training_job, so an agent must still infer when this is preferable to those siblings.

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