Skip to main content
Glama
MCP Machine Learning Agent

MCP Machine Learning Agent

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
train_modelsB

Train Logistic Regression and KNN on the breast cancer dataset and export joblib artifacts.

get_sample_inputA

Return one test-set patient as a ready-to-use input_data dictionary for the predict tools, along with that patient's true diagnosis.

predict_logistic_regressionB

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

predict_knnA

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

confusion_matrix_metricsA

Compute the confusion matrix plus accuracy/precision/recall for both models on the test set. Precision and recall are for the malignant class. Confusion matrix order is [malignant, benign]; rows = actual, columns = predicted.

select_best_modelB

Select the best model using a rule (default: recall, then precision, then accuracy).

shap_explain_selectedB

Run SHAP for the selected model: global top features plus a local explanation for one test row. Positive SHAP values push toward malignant.

export_parquet_auditB

Export a copy of the Parquet audit log for submission.

predict_bothB

Run Logistic Regression and KNN on the same patient and compare their predictions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 9 tools

Disambiguation5/5

Each tool has a clearly distinct role in the ML workflow: training, sample retrieval, per-model prediction, comparison, metrics, model selection, explanation, and audit export. The two single-model prediction tools are differentiated by model name, and predict_both has an explicit comparison purpose.

Naming Consistency4/5

All tools use snake_case, which is consistent and readable. Most names are verb-led, but a few are noun- or prefix-led such as confusion_matrix_metrics and shap_explain_selected, creating minor stylistic deviation.

Tool Count5/5

Nine tools is well-scoped for an ML agent covering training, prediction, evaluation, selection, explanation, and audit export. Each tool earns its place without obvious redundancy.

Completeness5/5

The surface covers the full lifecycle implied by the server: training both models, getting sample input, predicting with each model or both together, computing metrics, selecting the best model, explaining the selected model with SHAP, and exporting the audit log. No obvious lifecycle gaps remain for the stated breast-cancer ML workflow.