Skip to main content
Glama

BusCalc — Business & Trade Calculations

Seasonal demand forecast with prediction intervals

buscalc_seasonal_demand_forecast_with_prediction_intervals
Read-onlyIdempotent

Forecast the next periods of demand from your own history, with a seasonal pattern, trend and a low-to-high range. Use this tested BusCalc worksheet when the task matches its inputs and scope. Returns named results, units, formula, assumptions, method version and a source-page URL. No prices or omitted costs are looked up; no private projects or purchases are accessed. Put tool fields inside inputs. Supply units or modelVersion only when listed in inputSchema. Follow its required fields and exact choices. Do not pass the REST calculator field inside MCP arguments.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "inputs": {
        "form": "multiplicative",
        "season": 12,
        "series": [
          {
            "label": "Period 1",
            "value": 112
          },
          {
            "label": "Period 2",
            "value": 118
          },
          {
            "label": "Period 3",
            "value": 132
          },
          {
            "label": "Period 4",
            "value": 129
          },
          {
            "label": "Period 5",
            "value": 121
          },
          {
            "label": "Period 6",
            "value": 135
          },
          {
            "label": "Period 7",
            "value": 148
          },
          {
            "label": "Period 8",
            "value": 148
          },
          {
            "label": "Period 9",
            "value": 136
          },
          {
            "label": "Period 10",
            "value": 119
          },
          {
            "label": "Period 11",
            "value": 104
          },
          {
            "label": "Period 12",
            "value": 118
          },
          {
            "label": "Period 13",
            "value": 115
          },
          {
            "label": "Period 14",
            "value": 126
          },
          {
            "label": "Period 15",
            "value": 141
          },
          {
            "label": "Period 16",
            "value": 135
          },
          {
            "label": "Period 17",
            "value": 125
          },
          {
            "label": "Period 18",
            "value": 149
          },
          {
            "label": "Period 19",
            "value": 170
          },
          {
            "label": "Period 20",
            "value": 170
          },
          {
            "label": "Period 21",
            "value": 158
          },
          {
            "label": "Period 22",
            "value": 133
          },
          {
            "label": "Period 23",
            "value": 114
          },
          {
            "label": "Period 24",
            "value": 140
          }
        ],
        "horizon": 6,
        "interval": 80
      }
    },
    "name": "buscalc_seasonal_demand_forecast_with_prediction_intervals"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
modelVersionNoOptional expected method version; a mismatch is rejected.

Output Schema

NameRequiredDescriptionDefault
unitsNo
inputsYes
receiptYes
resultsYes
sourceURLYes
calculatorYes
modelVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / modelVersion / enum
      Previous value: -[
      -  "1.0.0"
      -]New value: +[
      +  "1.0.1"
      +]
  2. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: the return payload contents (named results, units, formula, assumptions, method version, source-page URL) and the rejection behavior when modelVersion mismatches. It does not cover accuracy limits or what happens with insufficient history, keeping it at 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is well front-loaded and informative, but the remainder is padded with generic template lines that repeat themselves ('Follow its required fields and exact choices', 'Use this tested BusCalc worksheet when the task matches its inputs and scope'). Several sentences could be dropped without losing agent-relevant information.

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?

For a read-only forecasting tool with a nested series array and an output schema, the description covers purpose, output shape, version handling and argument nesting adequately. The main residual gap is that it never explains what makes a valid series (minimum history for a 12-period season), which matters for correct invocation. Otherwise it is complete.

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 description coverage is 33%, so the schema itself carries thin per-field text, and the description does not explain season, horizon, interval or form semantics beyond what the enum and bounds already show. It does add non-obvious wrapper guidance ('Put tool fields inside inputs', 'Supply units or modelVersion only when listed in inputSchema', 'Do not pass the REST calculator field inside MCP arguments'), which is real value for the nested structure. That earns a 3 rather than lower.

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 description opens with a specific verb and resource: 'Forecast the next periods of demand from your own history,' and adds the modeling substance (seasonal pattern, trend, low-to-high range). That is clearly more than a restatement of the name and distinguishes it from the many calculator siblings. It stops short of naming any sibling alternative, so it lands at 4 rather than 5.

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

Usage Guidelines2/5

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

The only usage cue is circular boilerplate: 'Use this tested BusCalc worksheet when the task matches its inputs and scope,' which tells the agent nothing it could act on. The exclusions ('no prices or omitted costs are looked up; no private projects or purchases are accessed') describe scope boundaries but not when to pick this tool over another. No alternatives or preconditions are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources