Skip to main content
Glama

Preview Vendor Forecast

preview_vendor_forecast
Read-only

Show exactly what one supplier sees on the vendor portal's demand forecast pages, as the supplier page's Preview as supplier panel does, whatever its sharing level: the house items it default-supplies, each with monthly demand history and forecast (with its range) in the supplier's purchase unit, pattern and confidence. Without item it returns one page of the list (search on name or SKU, sortBy name|sku, pageSize at most 24); with item (id or SKU) that item's page, which adds planned demand events and, at ForecastAndOrderTiming, the estimated next order. Cost, price, stock, customers and the forecast model never appear. Requires an operator (unpinned) credential and an Admin user.

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": {
      "supplier": "<supplier>"
    },
    "name": "preview_vendor_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNoOptional item id (GUID) or SKU: preview that item's forecast page.
pageNoList only: page number from 1 (default 1).
searchNoList only: text matched against item name and SKU.
sortByNoList only: name (default) or sku.
pageSizeNoList only: items per page (default 20, max 24).
supplierYesThe supplier's id (GUID) or exact name.
sortDirectionNoList only: asc (default) or desc.

Output Schema

NameRequiredDescriptionDefault
itemNo
pageNo
itemsNo
messageNo
pageSizeNo
supplierIdNo
totalItemsNo
supplierNameNo
effectiveSharingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover read-only and non-destructive, but the description adds high-value behavioral facts: results are identical whatever the supplier's sharing level, sensitive fields (cost, price, stock, customers, forecast model) never appear, and an operator plus Admin credential is required. It also discloses conditional output behavior — planned demand events, and the estimated next order only at ForecastAndOrderTiming.

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?

Dense but front-loaded, leading with the outcome (what the supplier sees) before mode mechanics. The long parenthetical clauses make it a single heavy paragraph, so it is slightly harder to scan than it could be, but essentially every clause carries operational information.

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?

For a preview tool with seven parameters, an output schema already present, and a nuanced two-mode response, the description covers mode switching, field exclusions, conditional sections, and auth requirements. An agent could invoke this correctly and anticipate what will and will not be returned.

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%, so the baseline is 3, but the description earns above that by explaining the semantics of item (switches the whole response shape, not just a filter) and by noting pageSize is capped at 24 and search matches name or SKU. It does not restate the sortDirection options beyond what the schema provides.

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?

Names a specific verb and resource — show exactly what one supplier sees on the vendor portal's demand forecast pages — and frames the scope as mirroring the supplier-facing 'Preview as supplier' panel. The two operating modes (list vs. single item) are stated up front, which separates it from read-side siblings like get_demand_forecast or get_vendor_portal_settings.

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

Usage Guidelines4/5

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

Gives clear context for when to use each mode: without item returns one page of the list, with item (id or SKU) returns that item's page with extra sections. It also states the credential prerequisite (operator/unpinned plus Admin user), which functions as a usage gate. It stops short of naming an alternative tool for the 'real' vs. 'preview' distinction, so it is not a 5.

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