mcp-proxyml
v0.1.14MCP server for the ProxyML API
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
proxyml_infer_schema
Infer a ProxyML feature schema from a local CSV file. Reads the file locally — no data is sent to the ProxyML server. Returns a schema dict ready to pass to proxyml_put_schema. It includes n_samples (the CSV's row count); keep it when uploading so data-drift checks can allow for small training sets. If you upload the schema unedited, also add "source": "data"; if you changed types or statistics by hand, "hand_written". It is reported as baseline_source on drift checks (unknown if left out). Integer columns default to 'count'; consider 'categorical_ordinal' for ordered categories like rating…
| Parameter | Type | Description |
|---|---|---|
csv_path * | string | |
immutable_cols |
proxyml_train_challenger
Train a local challenger model on a CSV file and assemble an upload-ready payload. Trains entirely locally — no data leaves this process. Requires the 'challenger' extra: pip install 'mcp-proxyml[challenger]'. complexity is one of 'simple', 'moderate', 'flexible'; task is 'classification', 'regression', or 'auto' to infer from target_col. Rows with a missing target_col value are dropped before training, the CV split, and champion scoring — never silently included. The response reports n_samples_total, n_samples_dropped_unlabeled, and a population_note that is also embedded in upload_payl…
| Parameter | Type | Description |
|---|---|---|
csv_path * | string | |
target_col * | string | |
champion_predictions | ||
complexity | string | |
feature_names | ||
immutable_cols | ||
task | string | |
test_size | number |
proxyml_score_champion
Score a champion model's predictions against real labels, locally. task must be 'classification' or 'regression' (no 'auto' — pass the same task a paired challenger resolved to, so the two stay comparable). Returns {"f1":..., "accuracy":..., "data_fingerprint":...} for classification or {"r2":..., "data_fingerprint":...} for regression. Requires the 'challenger' extra: pip install 'mcp-proxyml[challenger]'. data_fingerprint is a hash of `labels` — since this tool call has no connection to any proxyml_train_challenger() call that ran separately, there's nothing here to guarantee the two w…
| Parameter | Type | Description |
|---|---|---|
labels * | array | |
predictions * | array | |
task * | string |
proxyml_upload_challenger
Upload a challenger comparison to a ProxyML project using a CI token. upload_payload is the upload_payload from proxyml_train_challenger (with champion_metrics filled in). Authenticates with a project-scoped CI token — passed as ci_token or read from PROXYML_CI_TOKEN — instead of PROXYML_API_KEY; the token authorizes writes to exactly one project. Mint it from that project's page in the ProxyML dashboard. Returns the new challenger_version. Requires a ProxyML server with /ci/challenger (alposit 0.2.0+).
| Parameter | Type | Description |
|---|---|---|
upload_payload * | object | |
ci_token |
proxyml_get_challenger_summary
Fetch a CI-ready summary of a project's latest challenger comparison. Returns the winner, primary metric and delta, and a ready-to-post markdown snippet. The project is determined by the CI token (ci_token or PROXYML_CI_TOKEN). Errors if nothing has been uploaded to the project yet.
| Parameter | Type | Description |
|---|---|---|
ci_token |
proxyml_check_data_drift
Check whether recent data has drifted from the data a model was trained on. Not the same as proxyml_detect_drift, which compares two model versions. This compares a local CSV of recent data against the model's stored training schema. The CSV is summarized locally; only statistics (means, standard deviations, category names with frequencies, count rates) and the row count are sent, never rows. Features are compared one at a time; changes in relationships between features are not detected. The verdict is stored (last 100 per model). csv_path: recent data with the same columns as the training d…
| Parameter | Type | Description |
|---|---|---|
csv_path * | string | |
model_id * | string | |
align_to_model | boolean | |
baseline_n_samples | ||
label | ||
thresholds |
proxyml_list_data_drift_checks
List a model's recent data drift verdicts, newest first (summaries only). Use proxyml_get_data_drift_check for one verdict's per-feature findings.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
limit | integer |
proxyml_get_data_drift_check
Fetch one stored data drift verdict, including per-feature findings.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
snapshot_id * | string |
proxyml_delete_data_drift_check
Delete one stored data drift verdict, e.g. a test run you don't want in the history. Permanent. Use proxyml_list_data_drift_checks to find the snapshot_id.
| Parameter | Type | Description |
|---|---|---|
model_id * | string | |
snapshot_id * | string |
proxyml_get_schema
Retrieve a stored feature schema by name.
| Parameter | Type | Description |
|---|---|---|
schema_name * | string |
proxyml_put_schema
Upload or replace a feature schema. An optional top-level n_samples (as returned by proxyml_infer_schema) records how many rows the statistics came from; data-drift checks use it by default. An optional top-level source, "data" (computed from real rows, unedited) or "hand_written", records where the statistics came from; it is reported as baseline_source on drift checks. Leave it out if unsure.
| Parameter | Type | Description |
|---|---|---|
schema * | object | |
schema_name * | string |
proxyml_synthesize_data
Generate synthetic samples from the stored feature schema. If instance is provided, blends schema samples with perturbations around that point (useful for local explanations and counterfactual search). Returns samples, feature_names, and feature_types. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
schema_name * | string | |
instance | ||
num_points | integer |
proxyml_train_surrogate
Train a linear surrogate model on samples scored by the user's model. samples: rows returned by proxyml_synthesize_data. predictions: your model's output for each sample, in the same order. task: 'classification', 'regression', or 'auto' (default). Returns version ID, fidelity metrics, and any training warnings. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
predictions * | array | |
samples * | array | |
schema_name * | string | |
comments | ||
feature_names | ||
name | ||
task | string | |
test_size | number |
proxyml_list_surrogates
List trained surrogate models, newest first. Returns model metadata (version ID, task, metrics, name, trained_at). Use version IDs from here with other tools.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
offset | integer |
proxyml_get_summary
Get feature importances and model summary for a surrogate. Omit version to use the most recently trained model.
| Parameter | Type | Description |
|---|---|---|
version |
proxyml_explain_local
Per-feature contribution breakdown for a single instance. Returns prediction, feature_contributions (sorted by abs contribution), intercept, and optionally probabilities and per-class contributions. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
instance * | array | |
version |
proxyml_find_counterfactual
Find a counterfactual: the nearest point that flips the prediction to target_label. A counterfactual is not guaranteed — check the 'counterfactual' field in the response (None means none was found within the search budget). Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
instance * | array | |
target_label * | ||
n_neighbors | integer | |
perturbation_scale | number | |
version |
proxyml_diff_models
Compare feature importances between two surrogate versions. Both surrogates must share the same task type and at least one feature.
| Parameter | Type | Description |
|---|---|---|
version_a * | string | |
version_b * | string |
proxyml_detect_drift
Detect behavioural drift between two surrogate versions. Calls diff_models and applies thresholds to produce a structured pass/fail suitable for use in CI/CD pipelines. coefficient_threshold: flag features whose absolute coefficient delta exceeds this (default 0.1). fidelity_threshold: flag metrics that drop by more than this amount (default 0.05). Returns: passed: False if any feature or metric breach a threshold, or if features were added/removed. flagged_features: features whose |delta| exceeded coefficient_threshold, sorted by |delta| desc. metric_changes: per-metric deltas…
| Parameter | Type | Description |
|---|---|---|
version_a * | string | |
version_b * | string | |
coefficient_threshold | number | |
fidelity_threshold | number |
proxyml_predict_batch
Get surrogate model predictions for a list of instances. Returns predictions in the same order as instances, along with the model version used. Useful for comparing surrogate predictions against a dev model's output on the same synthetic samples. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
instances * | array | |
version |
proxyml_get_usage
Return current tier, request count, and quota for the authenticated account. Useful as a pre-flight check before expensive operations like training or large synthesis runs.
proxyml_export_surrogate
Export the full surrogate model: coefficients, intercepts, scaler params, and classes. Returns everything needed to reconstruct the surrogate outside ProxyML. Richer than proxyml_get_summary — use this for audit trails and governance reports.
| Parameter | Type | Description |
|---|---|---|
version * | string |
proxyml_explain_local_batch
Per-feature contribution breakdown for multiple instances in one call. Equivalent to calling proxyml_explain_local for each instance, but more efficient. Returns a 'results' list in the same order as instances. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
instances * | array | |
version |
proxyml_list_schemas
List all named feature schemas for the authenticated account.
proxyml_delete_schema
Delete a named feature schema. Returns success or a structured error.
| Parameter | Type | Description |
|---|---|---|
schema_name * | string |
proxyml_get_model_schema
Retrieve the feature schema that was snapshotted when a surrogate was trained. Useful for auditing which schema version a model was trained against.
| Parameter | Type | Description |
|---|---|---|
version * | string |
proxyml_update_surrogate
Update the name or comments of a surrogate without retraining. Omit a parameter to leave that field unchanged. Pass null/None to clear a field.
| Parameter | Type | Description |
|---|---|---|
version * | string | |
comments | ||
name |
proxyml_delete_surrogate
Delete a surrogate model by its UUID. Returns success or a structured error.
| Parameter | Type | Description |
|---|---|---|
model_id * | string |
proxyml_predict
Get a surrogate model prediction for a single instance. Returns prediction, and optionally probability (classification) or a regression value. Use proxyml_predict_batch for multiple instances. Array features (embeddings or other vectors) are never sent to the server: put null in an array feature's slot.
| Parameter | Type | Description |
|---|---|---|
instance * | array | |
version |
proxyml_find_counterfactuals
Find counterfactuals for multiple instances in one call. Equivalent to calling proxyml_find_counterfactual for each instance. Each result has a 'counterfactual' field (None if none was found).
| Parameter | Type | Description |
|---|---|---|
instances * | array | |
target_label * | ||
n_neighbors | integer | |
perturbation_scale | number | |
version |
proxyml_health_check
Check API connectivity. Does not require authentication and does not count against usage quota. Returns status, model_loaded, and API version. Useful as a pre-flight check before training or synthesis operations.