Skip to main content
Glama
sktime

sktime-mcp

Official
by sktime

fit

Fit an estimator to data using feature and target handles. Supports forecast horizon and async background execution.

Instructions

Fit an estimator on data. Provide explicit X_handle and/y_handle (or datasets) depending on the estimator's scitype.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fhNoOptional: Forecast horizon (e.g. 12 or [1,2,3]) to pass to fit
X_handleNoOptional: Handle from load_data_source for X data (features, panel, etc.)
y_handleNoOptional: Handle from load_data_source for y data (target, labels, etc.)
X_datasetNoOptional: Demo dataset name for X data
run_asyncNoIf True, runs the fit asynchronously in the background and returns a job_id.
y_datasetNoOptional: Demo dataset name for y data
estimator_handleYesHandle from instantiate_estimator
Behavior3/5

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

No annotations provided. Description discloses the need for appropriate data handles or datasets depending on estimator type, and mentions run_async. However, it does not detail mutation behavior, prerequisites, or failure modes.

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?

Single sentence, front-loaded with main action, no unnecessary words.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 parameters, no output schema, and no return value description, the description is too minimal. Lacks details on async behavior, return format, and scitype-specific examples.

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 100% with descriptions for all parameters. The description adds value by tying the choice of X_handle/y_handle vs datasets to the estimator's scitype and referencing handles from load_data_source and instantiate_estimator.

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?

The description clearly states the action (fit an estimator) and the resource (estimator on data). It distinguishes from sibling tools like predict or evaluate_estimator by specifying the need to provide handles or datasets depending on scitype.

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?

Provides context on when to use X_handle/y_handle vs datasets based on estimator scitype, but does not explicitly exclude alternatives or mention when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sktime/sktime-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server