skforecast-ai
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
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.
Deterministic time series forecasting with skforecast. Every decision (forecaster, estimator, lags, metric, cross-validation) comes from rules, never from a language model, and is reproducible.
The server reads CSV files ('.csv', '.tsv', '.csv.gz', '.tsv.gz'; separated by ',', ';' or tabulators, which profile detects) only inside '/tmp' (subdirectories included). Tools take absolute paths: a file the user names by a relative path or by its name is looked for there, so build the path from that directory instead of searching the file system. When the file is outside it, stop and answer the user: only they can copy it there or restart the server with another --allow-dir. Never copy, move or rewrite it into that directory yourself (no cp, no reading it and writing it again).
Workflow: profile a CSV file (absolute path inside that directory) -> plan with a horizon (steps) -> optionally refine_plan -> create_cv (check its cost) -> backtest -> optionally compare -> forecast. Each tool returns an id; later tools take ids, never objects. Every response has a plain-text summary and the warnings of the call in notices; it never holds rows of data, which go to CSV files (files). What you do see of the data: the messages of errors and warnings can name columns and series and quote up to 5 values, a traceback of get_failure can quote values, and scripts and plan summaries name the path of the file.
Errors are JSON objects with code, message, field, hint and details: act on code and field, and follow hint. Dates are ISO 8601 text ('2012-01-01'); counts are numbers.
Rules (the skforecast-ai-forecasting skill has the rest):
Trust: a
comparewhose winner beats the baseline > abacktest> aforecastwithtest_size(one window) > aforecastof the future (no error measure). Without a baseline (several series, or a target with gaps), judge each series bymean_absolute_scaled_errorin the CSV of metrics and name the worst one: the summary only has the average. Below 1 it beats the one-step naive forecast (repeat the previous value) over the observations known when each prediction is made, which is not a seasonal naive forecast nor the baseline ofcompare. Never invent a number, nor derive one: no percentage, ratio or difference that a response does not give.Cost: read
costofcreate_cvbefore running. Before a run above 50 estimator fits (acompare: all its candidates together), stop: tell the user the number of fits and the cheaper strategies itsCostNoticenames and run the expensive one only if they choose it, passing that number asconfirm_cost(without it,backtestandcomparerefuse the run and give the number). Asking to retrain is not that choice.Read
noticesbefore reporting and tell the user about data problems (missing dates, rows without target) and plan warnings.comparewithoutintervaluses the interval of the plan of the strategy; with an asymmetric one there is no baseline ([0.1, 0.9] is symmetric).Never modify the user's data, nor write data for them: future values of exogenous variables come from the user, or the plan leaves them out (
use_exog: false) and you say so. If the CSV has a problem, tell the user; only with their permission write a corrected copy inside the allowed directory under a new name and profile it.Foundation models other than the default (Chronos-2) have their own license and size: tell the user before choosing one. State the license of a model only as a notice or an error gives it.
Report what was measured, never why: give no cause, even hedged, for a ranking, a metric or the shape of a forecast.
comparesays which candidate has the lowest error over the folds, not what makes it better.The server does not search hyperparameters (it compares the candidates you list), detect anomalies or select features. Say so and stop there: do not do them another way (your own script, reading the file) unless the user then asks.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| profileA | Profile a CSV file: frequency, series, exogenous columns and the recommended forecaster and estimator. The first step: returns a profile id, which |
| planA | Build a forecasting plan (lags, window features, metric, preprocessing, interval) from a profile id and a horizon. Returns a plan id, which |
| refine_planA | Build a new plan from an existing one, changing some of its decisions and keeping the others: use it instead of |
| create_cvA | Build a time series cross-validation strategy (TimeSeriesFold) for a plan id. Returns a cv id, which |
| backtestA | Backtest one plan with a cv id of |
| compareA | Backtest several configurations on the folds of a cv id of |
| forecastA | Run a plan: forecast the future, or evaluate on a test set with |
| get_codeA | Return the Python script of an object and the packages it needs: the one that ran, or that would run for a plan (a profile has none). For a run that failed, use |
| get_failureA | Return the traceback and the code of a failed run (the |
| list_objectsA | List the ids of the profiles, plans, strategies and runs the server keeps, most recently used first; beyond its limits the least recently used are removed, and none survives a restart. Use |
| describe_objectA | Return again the response that created an object (summary, links, notices, files), from an id of any response or of |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 11 tools
Each tool has a fairly distinct role in the pipeline, and the descriptions explicitly resolve the riskiest pairs (get_failure vs get_code, plan vs refine_plan, backtest vs compare, list_objects vs describe_object). Residual overlap remains between backtest and compare, and between profile/plan/forecast as bare nouns, but the descriptions steer selection well.
Most names are snake_case, but the convention is split: verb_noun for retrieval/utility tools (get_failure, list_objects, describe_object, refine_plan, create_cv) and bare nouns for the modeling steps (profile, plan, backtest, compare, forecast). It is readable and semi-predictable (nouns create objects, verbs retrieve them), but not a uniform pattern.
Eleven tools map cleanly onto a short ML workflow (profile → plan → cv → backtest/compare → forecast) plus inspection helpers, with no redundant entries. Each tool earns its place and the set stays within a comfortable range.
The core forecasting lifecycle is covered end-to-end, including refinement, cross-validation, ranking, and script/failure retrieval. Minor gaps: no way to delete or clean up objects and no cancel operation, even though compare is described as cancellable, and artifact CSVs must be read outside the server.