Skip to main content
Glama

Campaign Stock Readiness

get_campaign_readiness
Read-only

Stock readiness for a demand forecast plan (built for campaign plans; any plan type works): for each plan item at the Expected and the Optimistic scenario, the projected stock-out date and the plan day it falls on, days of cover at plan start, open purchase-order receipts landing before and during the plan window, the effective lead time, and whether a reorder placed today still lands before the stock-out (with the latest date to order). Dates are the tenant's local calendar; startsInDays counts from its today. Previews the plan with the same effect Apply would write and runs it through the item page's on-hand projection; nothing is applied or saved. A scenario the plan cannot preview (no assumption set, information-only, retired, already ended) comes back with available=false and the reason. Read-only.

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": {
      "planId": "<planId>"
    },
    "name": "get_campaign_readiness"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesDemand forecast plan id (GUID).

Output Schema

NameRequiredDescriptionDefault
todayNo
endsOnNo
planIdNo
planNameNo
planTypeNo
startsOnNo
scenariosNo
hasStartedNo
planStatusNo
limitationsNo
planVersionNo
startsInDaysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/destructive hints, yet the description adds substantial context beyond them: it previews with the same effect Apply would write, reuses the item page's on-hand projection, confirms nothing is applied or saved, and specifies that unpivotable scenarios return available=false with a reason. It also discloses date semantics (tenant-local calendar, startsInDays offset from its today), which is exactly the kind of operational detail an agent needs.

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 core purpose is front-loaded in the opening clause, and the parenthetical scoping note follows immediately. The middle sentence is a dense enumeration that is informative but long, and some of it restates return values that a dedicated output schema already covers, costing a little economy.

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 read-only preview tool with one parameter and an output schema, the description covers everything an agent needs: what is projected, which scenarios apply, date basis, side-effect guarantees, and the failure shape (available=false plus reason). Nothing required for correct invocation 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?

There is a single required parameter with 100% schema description coverage, so the schema already documents planId as a GUID. The description only reaffirms that the id refers to a demand forecast plan; with one fully-described parameter, the baseline of 3 applies.

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 first clause names a specific verb-and-resource: stock readiness for a demand forecast plan, and the parenthetical clarifies it is built for campaign plans but works for any plan type. The rest of the paragraph enumerates the exact per-item outputs (stock-out date, days of cover, PO receipts, effective lead time, reorder feasibility). It does not name or contrast a concrete sibling such as get_item_stock_outlook or get_data_readiness, so an agent must infer differentiation.

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 rather than stated: 'built for campaign plans; any plan type works' and 'Previews the plan with the same effect Apply would write' tell the agent this is a pre-flight check before applying. There is no explicit when-to-use versus alternatives, and no condition pointing to a different tool for non-plan stock questions.

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