Skip to main content
Glama
MCP Machine Learning Agent

MCP Machine Learning Agent

predict_both

Compare Logistic Regression and KNN predictions for the same patient by running both models on shared feature data.

Instructions

Run Logistic Regression and KNN on the same patient and compare their 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": {
      "input_data": "<input_data>"
    },
    "name": "predict_both"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_dataYesFeature dictionary with all 30 breast cancer features as numbers, keyed by their exact names (e.g. 'mean radius', 'worst area'). Use get_sample_input to get a valid example.
request_idNoYour own id for this call; recorded in the audit log.unknown

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does state the core behavior (two models run on the same patient and their predictions compared), but says nothing about cost/latency of running two models, whether models must be pre-trained, or failure modes for malformed feature input.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity is part of why guidance is thin.

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 output schema covers return values and the input schema fully documents the feature dictionary, so the main missing piece is operational context — that trained models must exist first and roughly what the comparison returns — which for an unannotated tool leaves a meaningful gap.

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%: input_data is documented with the 30-feature requirement and a pointer to get_sample_input, and request_id is described as an audit-log id. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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?

The description names specific verbs and resources — Logistic Regression and KNN on the same patient — and the word 'both' plus 'compare' implies it subsumes the two single-model siblings. It does not name those siblings explicitly, but the action 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?

Usage is only implied: the comparative framing suggests using it when you want both models side by side rather than calling predict_knn and predict_logistic_regression separately. There is no explicit when-to-use/when-not guidance, no mention of prerequisites such as models having been trained, and no stated alternatives.

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