Skip to main content
Glama

Replenishment Defaults

get_replenishment_defaults
Read-only

Read the tenant's replenishment defaults: the purchase lead time and flat safety stock an item falls back to when nothing more specific covers it, tenant-wide and per item group, with the value in force and where it came from (item_group_default, tenant_default or system_default; the system values are 14 days and 7 days). Pass itemIds to see which defaults specific items resolve to. Reorder and lead-time tools report these as lead-time sources ItemGroupDefault / TenantDefault. Change them with set_replenishment_defaults.

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": "get_replenishment_defaults"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdsNoOptional item ids (up to 200) to resolve defaults for.

Output Schema

NameRequiredDescriptionDefault
itemsNo
tenantNo
nextStepNo
itemGroupsNo
precedenceNo
systemLeadTimeDaysNo
systemSafetyStockDaysNo
inheritingItemGroupCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a safe, closed-world read (readOnlyHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description still adds real behavioral context the annotations cannot: the fallback hierarchy, the three source labels, and the concrete system values (14 days lead time, 7 days safety stock). It does not describe output shape, but an output schema exists, so that omission is acceptable.

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 definition is front-loaded: the core read is stated first, then the fallback semantics, then the itemIds usage, then the write alternative. Every clause carries information (source labels, system values, sibling pointer) with no filler. It is dense in a single block, which slightly reduces scanability, but nothing is wasted.

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 zero-required-parameter read tool with a full output schema, the description supplies everything an agent needs: what the values mean, the resolution hierarchy, the source vocabulary, the default system numbers, how itemIds scopes results, and which tool mutates the same data. No gap remains that would cause a misinvocation.

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% for the single parameter, so the baseline is 3. The description goes slightly beyond the schema by framing itemIds as a resolution query ('see which defaults specific items resolve to'), which tells the agent the parameter changes what is reported rather than merely filtering rows. The 200-item cap lives only in the schema, which is fine given full coverage.

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 specific verb and resource ('Read the tenant's replenishment defaults') and immediately defines the payload: purchase lead time and flat safety stock fallbacks, tenant-wide and per item group. It also names the read/write counterpart (set_replenishment_defaults) and the downstream consumers (reorder and lead-time tools), so an agent can distinguish it from siblings without opening a schema.

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?

It gives concrete usage guidance: pass itemIds to resolve defaults for specific items, and use set_replenishment_defaults to change values. It also clarifies the relationship to reorder/lead-time tools that surface these as ItemGroupDefault / TenantDefault. It stops short of explicit 'when not to use' conditions, such as when a per-item override makes this tool unnecessary, so it is clear but not exhaustive.

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