Skip to main content
Glama

predict

Score new data with a trained AutoML model by providing the run ID and absolute path to a CSV or JSON file; returns the path to a JSON results file.

Instructions

Make predictions using a trained model.

- NOTE: Please use absolute paths for data_path to avoid path resolution errors.

Args:
    run_id: The ID of the training run (returned by train_classifier or train_regressor).
    data_path: The path to the CSV or JSON file containing the input data.

Returns:
    The absolute path to the JSON file containing the predictions.

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": {
      "run_id": "<run_id>",
      "data_path": "<data_path>"
    },
    "name": "predict"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes
data_pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.8

TDQS

A3.5/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 behavioral burden. It discloses the output artifact (a JSON file at an absolute path) and an important operational gotcha (absolute paths for data_path), but says nothing about side effects on disk, permissions, runtime, or error behavior for malformed data.

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-loads the one-line purpose, then uses a NOTE for the path caveat and Args/Returns blocks for scannable structure. The 'Args:'/'Returns:' scaffolding is slightly verbose but every sentence conveys usable information.

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?

An output schema exists, so return values need not be re-explained, and both parameters are covered. But for a prediction tool the description omits what input data is expected (required columns, compatibility with the trained model's schema), which is a meaningful gap for correct invocation.

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 0%, so the description must document the parameters, and it does: run_id is the ID returned by the training tools, and data_path is a CSV or JSON file of input data, plus the absolute-path requirement. This adds real meaning beyond the bare string types in the schema.

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?

States a specific verb and resource ('Make predictions using a trained model'), which clearly distinguishes it from the train_classifier/train_regressor siblings that produce the run_id it consumes. It does not explicitly contrast with query_data or inspect_data, but the 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use/when-not-to statement. However, it does tie the run_id parameter to train_classifier or train_regressor, which implies the workflow ordering (train first, then predict). An agent must infer that predictions require a prior training run.

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