Skip to main content
Glama
tabular-ds-mcp
by YusufErem

fit_predict

Train a baseline model on training data, generate test predictions in the sample submission format, and validate the output CSV before upload.

Instructions

Fit the baseline model on all training rows and write a submission file in the sample submission's format: one probability or value per row, a label, space-separated top-k labels (MAP@k) or one probability column per class. Run check_submission on the result before uploading.

Args: train_path: training table. test_path: test table. target: target column. id_col: ID column, copied to the submission. out_path: where to write the submission CSV. sample_submission_path: the competition's sample submission (sets the output format). task: 'auto', 'binary', 'multiclass' or 'regression'. metric: the competition metric (rmsle trains on log1p(target); map@k writes k labels). group_col: key column to leave out of the features, as in cv_baseline.

Input Schema

NameRequiredDescriptionDefault
taskNoauto
id_colYes
metricNo
targetYes
out_pathYes
group_colNo
test_pathYes
train_pathYes
sample_submission_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/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 load. It does disclose genuine behavior: a CSV is written to out_path, the output layout is dictated by the sample submission, rmsle triggers a log1p transform on the target, and map@k emits k space-separated labels. It omits whether an existing file at out_path is overwritten, whether a model artifact is persisted, and what the tool reports back.

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?

The purpose is front-loaded in one dense sentence before the Args block, which is the right structure for a nine-parameter tool. A few entries waste words by restating the parameter name, and the format enumeration in the first sentence is long but load-bearing.

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 nine-parameter, no-annotation, no-output-schema tool, the description covers inputs and file side effects well. The gap is the return side: with no output schema, the agent is never told what fit_predict reports (scores, the written path, a summary) or how failures surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the Args block is the only documentation and it covers all nine parameters. Several entries add real meaning beyond the names (id_col 'copied to the submission', sample_submission_path 'sets the output format', group_col 'leave out of the features, as in cv_baseline', metric's rmsle/map@k effects). train_path and test_path are bare restatements ('training table', 'test table'), and the allowed task values are listed but their effect of 'auto' is unexplained.

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 opening sentence gives a specific verb chain (fit the baseline model, write a submission file) and states the scope ('all training rows') plus the format rule (follows the sample submission). It implicitly distinguishes itself from cv_baseline by producing a file and from check_submission by delegating validation, but it never states the contrast outright.

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?

There is real workflow guidance: 'Run check_submission on the result before uploading' and the note that map@k/rmsle change behavior. However, there is no explicit when-to-use-this-vs-cv_baseline or explain_model guidance, and no prerequisites (does cv_baseline need to run first?).

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