Skip to main content
Glama

Get Replenishment Settings

get_replenishment_settings
Read-only

How each item is restocked at each warehouse, and every input behind it, in one row per item x warehouse: method (build, buy, transfer or none) and why, the source (supplier, supply warehouse or primary bill of materials), the inventory policy (reorder point and quantity, pinned or auto-calculated, typed lead time and safety stock), the lead time and safety stock the reorder math actually uses with where each came from (leadTimeSource, safetyStockSource), the calculated reorder point and quantity, whether the sweep would reorder now, and missingInputs (no_policy, no_supplier, bom_not_primary, transfer_source_missing, lead_time_fallback). The same read as the item page's Replenishment view. Rows are the warehouses an item is planned at (a policy or stock there); pass sku or itemId with allWarehouses=true for every warehouse. Filter by warehouse, method, supplier, item group, missingInput (any or one value except lead_time_fallback), pinned, or a SKU/name search. Change the policy fields with set_inventory_policy, the supply route with set_warehouse_supply_route. Paged: total counts every matching row before paging (default limit 50, max 200); to read them all, call again with offset=nextOffset until hasMore is false.

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_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuNoOptional item SKU (or UPC) to read one item.
limitNoPage size (default 50, max 200).
itemIdNoOptional item id (GUID) to read one item.
methodNoOptional method: build, buy, transfer or none.
offsetNoZero-based row offset (default 0).
pinnedNoOptional: true for pinned policies only, false for auto-calculated policies only.
searchNoOptional case-insensitive substring matched against SKU or name.
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants: only that client's items. Client-pinned credentials omit this.
supplierIdNoOptional supplier id (GUID): bought rows restocked from that supplier.
itemGroupIdNoOptional item group id (GUID).
warehouseIdNoOptional warehouse id (GUID).
missingInputNoOptional: any, no_policy, no_supplier, bom_not_primary or transfer_source_missing.
allWarehousesNoWith sku or itemId: true returns every warehouse, including ones the item has no policy or stock at, showing how it would be restocked there.
includeDecisionsNoWhether to decide needsReorder and lookAheadDays per row (default true). Pass false when only the settings are needed: the decision reads forecasts and open supply.

Output Schema

NameRequiredDescriptionDefault
okNo
rowsNo
limitNo
totalNo
offsetNo
hasMoreNo
nextOffsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=false), and the description adds substantial behavior beyond that: pagination semantics (total counts all matching rows before paging, default 50 / max 200, loop offset=nextOffset until hasMore=false) and the cost implication of includeDecisions, which 'reads forecasts and open supply'. That is exactly the kind of operational detail annotations cannot express.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope statement is front-loaded and the paging sentence is well placed, but the bulk of the definition is one dense run-on list of output fields (method, source, policy, lead time sources, computed points, missingInputs) that duplicates the output schema, which exists for this tool. Useful sentences are padded with field enumeration that the agent can already read structurally.

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 14-parameter, zero-required, paginated read with an output schema, the definition covers scope, filtering, paging, per-item expansion, credential behavior implications (implicitly via clientId semantics), and cost trade-offs of the decision computation. Nothing an agent needs in order to invoke it correctly is missing.

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?

With 100% schema description coverage the baseline is 3, and the description earns above that by explaining cross-parameter interaction the schema documents only per-property: 'pass sku or itemId with allWarehouses=true for every warehouse' and the note that missingInput accepts any or one value 'except lead_time_fallback' while missingInputs output lists it. It does not add further syntax or format detail for the id filters, so it is not a 5.

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?

States a specific read of a specific resource — 'how each item is restocked at each warehouse... in one row per item x warehouse' — and enumerates the exact contents (method, source, policy, lead time/safety stock with sources, computed reorder points, missingInputs). It also distinguishes itself from the write siblings by naming set_inventory_policy and set_warehouse_supply_route as the tools that change those same fields.

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 concrete usage context: 'The same read as the item page's Replenishment view', the sku/itemId + allWarehouses=true pattern for full coverage, and explicit routing to set_inventory_policy / set_warehouse_supply_route when modification is the goal. It does not state when this read is the wrong choice versus planning-oriented siblings such as get_replenishment_plan, so it stops short of full when/when-not coverage.

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