Skip to main content
Glama

plan campaign supply

plan_campaign_supply
Read-onlyIdempotent

Campaign demand vs supply: from weekly demand, opening stock, weekly production capacity and the lead time for extra production, returns the first stockout week, total shortage, fill rate, the uniform extra production per week needed from the first week extra output can arrive, and the shortage that extra production cannot fix in time. Same engine as tools.oiyo.net.

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": {
      "demand": "<demand>",
      "openingStock": "<openingStock>",
      "capacityPerWeek": "<capacityPerWeek>",
      "leadTimeWeeks": "<leadTimeWeeks>"
    },
    "name": "plan_campaign_supply"
  }
}

Input Schema

NameRequiredDescriptionDefault
demandYesWeekly demand, 1-52 weeks
safetyStockNoStock to keep at all times, default 0
openingStockYesStock on hand at the start
leadTimeWeeksYesWeeks before extra production arrives
capacityPerWeekYesUnits produced or received per week

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds that this is a deterministic planning engine ('Same engine as tools.oiyo.net') and spells out the return semantics in detail, which matters because no output schema exists. It does not cover edge behavior such as infeasible inputs or how safetyStock affects the shortage figures.

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?

Inputs are front-loaded before the long output list, and every listed output is substantive rather than filler. The single trailing clause about the engine origin is mild padding, and the sentence is dense enough that the return values are harder to scan than a short bulleted form would be.

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 carries the return-value burden and does so thoroughly, and the annotations cover the safety profile. The remaining gap is that the optional safetyStock parameter's effect on stockout and fill-rate results is never explained.

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 all five parameters are already documented in structured form. The description restates four of them and adds a little interpretive value on lead time ('from the first week extra output can arrive'), but omits safetyStock entirely and adds no format or unit detail beyond the schema.

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?

The description opens with a precise verb-and-resource framing ('Campaign demand vs supply') and enumerates exactly what is computed: first stockout week, total shortage, fill rate, uniform extra production, and unfixable shortage. This is clearly distinguishable from the sibling calculators (tax, salary, loan, SWOT), which share no computational domain.

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?

The inputs ('from weekly demand, opening stock, weekly production capacity and the lead time') imply the planning scenario, but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent can infer the supply-planning context but gets no routing guidance.

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.