Skip to main content
Glama

predict

Scores one or more feature objects with a trusted local model bundle, matching stored schema without fitting, to generate predictions from exported artifacts.

Instructions

Score a feature object or array of feature objects with a trusted local model bundle, without fitting. Match feature keys to the stored schema; use load_model_handle to inspect it. Never load artifacts from untrusted sources.

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>",
      "features": "<features>"
    },
    "name": "predict"
  }
}

Input Schema

NameRequiredDescriptionDefault
featuresYesOne feature-name/value object or a list of them.
artifact_nameYesName of the exported model artifact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.4
    • changedInput schema / properties / features / description
      Previous value: -"Feature record(s) to predict on."New value: +"One feature-name/value object or a list of them."
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/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 disclose useful traits: inference without fitting (no model mutation), schema-key matching requirement, and a trust constraint on artifacts. However, it says nothing about what happens on key mismatch, whether the call is read-only against the artifact, batch limits, or what the returned scores look like.

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, front-loaded with the action and the 'without fitting' qualifier, then the schema-matching prerequisite, then the safety note. No filler or redundancy.

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 prediction tool with no annotations and no output schema, the definition should explain what is returned (e.g., scores per row) and mismatch behavior. It covers invocation prerequisites well but leaves the result contract entirely implicit.

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 both parameters are already documented, which sets the baseline at 3. The description adds only modest meaning — that features must align to the stored model schema and that the artifact is a trusted local bundle — without format or example detail beyond the schema.

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 ('Score a feature object or array of feature objects with a trusted local model bundle') and adds the key discriminator 'without fitting', which separates it from training siblings like train_baseline or automl_run. An agent can tell what this does without opening the schema.

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 clear context: inference-only scoring against a stored model bundle, and explicitly routes to load_model_handle to inspect the expected schema before calling. It does not spell out what to do when feature keys mismatch or when to prefer an alternative scoring path, so it stops short of full when/when-not guidance.

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