Skip to main content
Glama
gitmystuff

MCP Machine Learning Agent

by gitmystuff

predict_logistic_regression

Predict whether breast cancer is malignant (0) or benign (1) from 30 numeric features using a saved Logistic Regression model.

Instructions

Predict malignant (0) or benign (1) using the saved Logistic Regression model.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses almost nothing beyond the purpose line. It does not state what happens if no saved model exists, whether the call is read-only or has side effects (an audit-logged call per the request_id param), or how failures surface. The word 'saved' is the only hint at a dependency.

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?

A single front-loaded sentence with no filler. The output label mapping (0/1) is packed in without wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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-value explanation is unnecessary, and the input schema fully documents the nested feature dictionary. The only real omission is the untrained/unsaved-model prerequisite and any indication of error behavior, which the description leaves unaddressed.

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 as a 30-feature dictionary keyed by exact feature names and even points to get_sample_input, and request_id is documented as an audit-log id. The description adds no parameter detail, so the baseline 3 applies.

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 (predict), the exact output semantics (malignant=0 / benign=1), and the specific model artifact used (the saved Logistic Regression model). This distinguishes it cleanly from the sibling predict_knn without needing to open either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to choose this over predict_knn, nor on prerequisites such as whether a Logistic Regression model must already have been trained via train_models. The only implicit usage cue is that it operates on a 'saved' model.

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