Skip to main content
Glama

Set Vendor Forecast Sharing

set_vendor_forecast_sharing
DestructiveIdempotent

Decide how much of the demand forecast suppliers see in the vendor portal. Without supplier it changes the tenant default: level and/or forecastHorizonMonths (1-12); an omitted one keeps its value. With supplier (id or exact name) it sets that supplier's own level, which wins over the default, or level=inherit to clear it so the supplier follows the default again. Levels: Off (nothing shared), Forecast (monthly demand history and forecast with its range, pattern and confidence for the house items it default-supplies; never cost, price, stock or customers), ForecastAndOrderTiming (adds the estimated next order date and quantity). The preview lists each supplier whose level changes with its portal users and forecast items. Requires an operator (unpinned) credential with Write + suppliers.execute and an Admin user.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_vendor_forecast_sharing"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoOff, Forecast or ForecastAndOrderTiming; with supplier also inherit (clear its override). Omit to keep the tenant default's level and change only the horizon.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
supplierNoOptional supplier id (GUID) or exact name; omit to change the tenant default.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.
forecastHorizonMonthsNoTenant default only: months ahead a shared forecast reaches (1-12); omit to keep it.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
settingsNo
supplierNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare the safety profile (destructiveHint=true, idempotentHint=true, openWorldHint=true); the description adds real substance beyond that — precisely what data each level exposes and what is never exposed ("never cost, price, stock or customers"), the override-precedence rule, the guarantee that nothing changes until the commit call, and the required operator credential plus Write, suppliers.execute, and Admin user. This is exactly the kind of consequence and permission detail an agent needs before a destructive write.

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?

Front-loads the purpose, then scope rules, then the level taxonomy, then the preview behavior, then prerequisites — a logical order with no filler sentences. It is dense and long-sentenced, but every clause carries operational 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?

For a destructive, multi-mode configuration tool, the definition covers scope selection, enum semantics, override precedence, the two-step write requirement, authorization prerequisites, and data exposure. With an output schema present, return values need not be described, so nothing an agent needs to call this correctly is missing.

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 100%, so the schema already documents each parameter, and much of the description's parameter text (omit keeps value, inherit only with supplier, horizon 1-12 tenant-only) restates it. The description does add the precedence rule that a supplier's own level "wins over the default," but most of the parameter meaning is duplicative.

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?

Opens with a specific verb and resource ("Decide how much of the demand forecast suppliers see in the vendor portal") and immediately distinguishes the two operating modes: tenant default vs. a single supplier's override. An agent can tell exactly what object is being configured and at which scope.

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?

Explicitly states when to omit supplier (change the tenant default) versus when to pass it (set or clear a supplier override), and defines level=inherit as the clear path. It also explains the mandatory preview-then-commit flow. It stops short of naming a sibling such as preview_vendor_forecast or stating when to prefer it over this tool's internal preview, which is the only routing gap.

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