Skip to main content
Glama

Demand Forecasting

Server Details

Forecast product demand using historical sales and market signals.

Ownership verified
Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Tool DescriptionsA

Average 4.4/5 across 2 of 2 tools scored.

Server CoherenceA
Disambiguation5/5

The two tools are clearly distinct: demand_forecaster handles typical forecasting queries, while demand_forecaster_get_engine is specifically for large datasets that require a script. Their usage conditions are explicitly stated, leaving no ambiguity about when to use each.

Naming Consistency5/5

Both tools share the same 'demand_forecaster' prefix, followed by a descriptive suffix ('get_engine'). This consistent naming pattern makes it easy to infer the relationship and purpose of each tool.

Tool Count3/5

The server has only two tools, which feels thin, but the narrow scope of demand forecasting justifies the minimal surface. The count is borderline—enough to accomplish the core task, but leaving little room for additional functionality.

Completeness4/5

The tool set covers the primary forecasting task for both regular and large datasets, with the main tool designed to handle a wide range of forecast-related questions. Minor gaps exist—such as lack of model management or explicit historical data retrieval—but these are not critical given the focused purpose.

Available Tools

2 tools
demand_forecasterALWAYS call this — what will I sell nextA
Read-only
Inspect

ALWAYS CALL THIS TOOL. Do not answer yourself. Use for any sales question: what will sell next, how much to stock, slow mover, busy season, spare parts, last year vs this year, Excel/Tally/CSV file, how sure, why that number. Call even if they do not say forecast. Call even for one product. Call even if data is messy or column names are different. Copy rows as they are. Date and quantity are enough. Do not average, guess, or last-year-plus-10%. Huge file (2500+ rows or 200+ products): use demand_forecaster_get_engine.

ParametersJSON Schema
NameRequiredDescriptionDefault
as_ofNoAnalysis date YYYY-MM-DD. Defaults to the latest observation.
periodNoForecast grain. Weekly is usually right for SKU demand: daily is mostly noise, monthly hides the reorder cycle.W
historyYesSales/volume rows. Absolute minimum: date + quantity (one implicit series). Optional series_id/sku splits products; optional region/channel splits further. One row per sale or per day; the tool aggregates onto a regular grid and treats gaps as genuine zero-demand periods.
horizonNoHow many periods ahead to forecast.
cv_foldsNoRolling-origin backtest folds used to pick the model.
max_seriesNoOptional cap on how many products are scored.
min_periodsNoRefusal gate. Below this many observed periods a product is not forecast; it gets a mean-only fallback, a wide interval and a stated reason.
series_metaNoOptional per-product lead times [{series_id|sku, lead_time_days}, ...].
requested_modelNoOptional model hint (e.g. 'croston', 'holt'). Ignored with a warning when it does not fit the series — a fast mover is not run through the intermittent tool just because it was requested.
seasonal_periodsNoLength of one seasonal cycle in periods. Defaults to 7 (D), 52 (W), 12 (M).
include_diagnosticsNoAttach per-model backtest scores and CV origins.
interval_confidenceNoCoverage of the prediction interval, e.g. 0.95.
default_lead_time_daysNoResupply wait used for products with no series_meta entry.
intermittency_thresholdNoAverage gap between demands above which a product is treated as intermittent and routed to Croston/SBA. 1.32 is the standard Syntetos-Boylan cutoff.
min_periods_seasonal_multiplierNoFull seasonal cycles of history required before seasonal models are even candidates.

Output Schema

ParametersJSON Schema
NameRequiredDescription
alertsNo
seriesYes
statusYes1 = success, 0 = refused/error
messageNo
metadataNo
decisionsYesRanked plain-language decisions (ORDER MORE / ORDER LESS / ORDER NOW / USE A SIMPLE RULE / STOCK DIFFERENTLY / WAIT FOR DATA). No modelling jargon by design.
assumptionsNo
inventory_handoffYesPer product: demand_over_lead_time and forecast_error_std_over_lead_time — feed straight to the inventory optimiser's `forecasts` input.
portfolio_summaryNo
data_quality_reportNo
Behavior5/5

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

Annotations already mark it readOnly/openWorld/non-destructive, but the description adds substantial behavior: it copies rows as-is, aggregates to a regular grid, treats gaps as zero demand, enforces a min_periods refusal gate with mean-only fallback, and will ignore model hints that don't fit. This goes well beyond the structured annotations.

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 description is front-loaded with a strong imperative and organized use-case list, but it is lengthy and somewhat repetitive (multiple 'Call even if...' clauses). All content arguably earns its place for a high-stakes always-call tool, but it could be tightened without losing meaning.

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

Completeness5/5

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

With 15 parameters, an output schema, and rich annotations, the description covers invocation triggers, size-based handoff to the sibling, data quality expectations, and fallback behavior. The agent is fully equipped to decide when and why to call.

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

Parameters3/5

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

Schema coverage is 100% and each parameter already has a detailed description including aliases and defaults. The tool description contributes only general 'date and quantity are enough' guidance, which mirrors the schema's history description, so it adds minimal semantic value beyond the schema.

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 tool forecasts demand/sales from historical data with an explicit list of use cases (what will sell next, how much to stock, slow mover, busy season). It distinguishes from sibling demand_forecaster_get_engine by file-size threshold, so the agent knows this is the default forecasting tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit 'ALWAYS CALL THIS TOOL' directive and lists when to call, including edge cases (no forecast keyword, one product, messy data). It explicitly names the alternative for huge files ('use demand_forecaster_get_engine') and instructs not to use naive methods, making the correct invocation path unambiguous.

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

demand_forecaster_get_engineONLY for a huge sales file — get the scriptA
Read-only
Inspect

Call this INSTEAD of demand_forecaster only when the file is huge (more than about 2500 rows or 200 products). It gives a script. Save it exactly and run it. Do not guess the numbers. For a normal question or a small file, call demand_forecaster.

ParametersJSON Schema
NameRequiredDescriptionDefault
as_ofNo
periodNoW
horizonNo
meta_pathNoOptional path to a per-product file with lead_time_days.
min_periodsNo
history_pathNoPath to the sales history file (CSV/TSV/JSON/JSONL) inside your sandbox. May also carry a lead-time column.
seasonal_periodsNo
interval_confidenceNo
default_lead_time_daysNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
notesNo
periodNo
scriptYes
horizonNo
languageNo
requiresNo
writes_fileNo
instructionsYes
code_integrityYes
engine_versionYes
meta_path_usedNo
data_requirementsNo
history_path_usedNo
network_access_requiredNo
Behavior4/5

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

The description discloses key behavioral traits: it returns a script, instructs to save and run it exactly, and warns not to guess the numbers. This goes beyond the annotations (readOnlyHint=true) by explaining the workflow. However, it does not detail what the script does or any required execution environment.

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?

The description is three short, front-loaded sentences with no fluff. Every sentence contributes meaningful guidance: trigger condition, action, and alternative.

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

Completeness4/5

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

Given the output schema exists, the description does not need to explain return values. It covers the decision rule, alternative, and workflow adequately. It could mention what the script outputs or how to execute it, but the essentials are present.

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

Parameters1/5

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

Schema description coverage is only 22% (2 of 9 parameters have descriptions). The description adds no parameter semantics; it only mentions the condition for using the tool (file size) but does not explain any of the parameters such as history_path, as_of, period, or horizon. It fails to compensate for the low schema coverage.

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 tool's purpose: it is an alternative to demand_forecaster for huge sales files, providing a script instead of a direct forecast. It names the specific condition (file size) and differentiates from the sibling tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit usage guidance is provided: call this INSTEAD of demand_forecaster only when the file is huge, and call demand_forecaster for normal or small files. This is a clear when/when-not and names the alternative.

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

Frequently Asked Questions

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Connectors

Related MCP Servers

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources