Skip to main content
Glama

business_forecast_accuracy

Read-only

Forecast accuracy scorecard (MAPE, WAPE, MASE, bias) — Score a forecast against what actually happened. actual= and forecast= equal-length comma-separated numbers (2-5000). Optional season= lag for the naive benchmark (default 1; 12 for monthly seasonal). Returns MAE, RMSE, MAPE, sMAPE, WAPE, mean error bias and bias %, MASE, Theil U2, tracking signal, R-squared, over/under counts, the 5 worst points, grade EXCELLENT/GOOD/FAIR/POOR/VERY_POOR (by WAPE), bias flag UNBIASED/BIASED_HIGH/BIASED_LOW and whether it beats a naive forecast. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "actual": "<actual>",
      "forecast": "<forecast>"
    },
    "name": "business_forecast_accuracy"
  }
}

Input Schema

NameRequiredDescriptionDefault
actualYes100,120,130,90,110,140
forecastYes110,115,120,100,105,150

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds genuinely new behavioral facts: the call costs $0.002 USDC on Base via x402, the required input length bounds (2–5000), and the full graded output profile. It does not state error behavior (e.g., what happens on length mismatch or non-numeric input), which keeps it short of a 5.

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?

A single dense paragraph front-loaded with the purpose, then input format, then return values, then price. Every clause carries information an agent needs, and the metric enumeration earns its place because no output schema exists.

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?

With no output schema, the description fully enumerates the returned statistics, grades, and bias flags, plus the payment requirement — enough for an agent to decide and call correctly. The gaps are the undocumented season parameter mismatch and the absence of error/failure conditions.

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%, but the schema's only parameter text is bare examples, so the description meaningfully adds format requirements: equal-length comma-separated numbers, 2–5000 items, and the season lag defaulting to 1 with 12 for monthly data. The caveat is that 'season=' is described but absent from the input schema, which could lead an agent to pass an unsupported argument.

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?

States a specific verb and resource — 'Score a forecast against what actually happened' — and immediately names the metric family (MAPE, WAPE, MASE, bias). This is clearly an accuracy-evaluation tool, distinguishable from forecasting siblings like util_forecast or weather_forecast which produce forecasts rather than grade them.

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?

Usage is implied by the input contract: supply actuals and forecasts of equal length, with an optional seasonal lag for the naive benchmark. There is no explicit when-to-use/when-not-to-use guidance and no named alternative to select against, so an agent must infer the situation from the parameter shape.

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