Skip to main content
Glama

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.

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):

  1. Trust: a compare whose winner beats the baseline > a backtest > a forecast with test_size (one window) > a forecast of the future (no error measure). Without a baseline (several series, or a target with gaps), judge each series by mean_absolute_scaled_error in 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 of compare. Never invent a number, nor derive one: no percentage, ratio or difference that a response does not give.

  2. Cost: read cost of create_cv before running. Before a run above 50 estimator fits (a compare: all its candidates together), stop: tell the user the number of fits and the cheaper strategies its CostNotice names and run the expensive one only if they choose it, passing that number as confirm_cost (without it, backtest and compare refuse the run and give the number). Asking to retrain is not that choice.

  3. Read notices before reporting and tell the user about data problems (missing dates, rows without target) and plan warnings.

  4. compare without interval uses the interval of the plan of the strategy; with an asymmetric one there is no baseline ([0.1, 0.9] is symmetric).

  5. 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.

  6. 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.

  7. Report what was measured, never why: give no cause, even hedged, for a ranking, a metric or the shape of a forecast. compare says which candidate has the lowest error over the folds, not what makes it better.

  8. 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

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

Tools

Functions exposed to the LLM to take actions

NameDescription
profileA

Profile a CSV file: frequency, series, exogenous columns and the recommended forecaster and estimator. The first step: returns a profile id, which plan takes.

planA

Build a forecasting plan (lags, window features, metric, preprocessing, interval) from a profile id and a horizon. Returns a plan id, which create_cv and forecast take. To change a decision of an existing plan, use refine_plan.

refine_planA

Build a new plan from an existing one, changing some of its decisions and keeping the others: use it instead of plan to change a plan. Returns a new plan id; the original plan is kept.

create_cvA

Build a time series cross-validation strategy (TimeSeriesFold) for a plan id. Returns a cv id, which backtest and compare take, and its cost in cost: read it before running them.

backtestA

Backtest one plan with a cv id of create_cv: metrics over the folds, with the predictions and metrics in CSV files named by the new id, so no run overwrites another. To rank several configurations, use compare. Returns a backtest id.

compareA

Backtest several configurations on the folds of a cv id of create_cv and rank them by metric; for one plan, use backtest. Reports progress per candidate and can be cancelled between candidates. Returns a comparison id and the plan of the winner in links.best_plan_id, which forecast takes.

forecastA

Run a plan: forecast the future, or evaluate on a test set with test_size. Predictions and metrics go to CSV files. A forecast of the future has no error measure: backtest or compare the plan first. Returns a forecast id.

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_failure.

get_failureA

Return the traceback and the code of a failed run (the details.failure_id of an error) or of a failed candidate of a comparison. The id of an object that did not fail is invalid_argument; for the script of a run that worked, use get_code.

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_object to read one.

describe_objectA

Return again the response that created an object (summary, links, notices, files), from an id of any response or of list_objects.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 11 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityNo data
ResponsivenessOutdated data