Skip to main content
Glama

Set Warehouse Supply Route

set_warehouse_supply_route
DestructiveIdempotent

Set a warehouse-level supply route. Use purchase_order with no supplyWarehouseId for local purchase/production, or transfer with a supplying warehouse. Optional supplyTransitDays is 0–365 calendar days from the supplier; omit for unknown. Multiple shipping warehouses may share one production warehouse; chains are supported, cycles are rejected. This reroutes dependent raw-material demand and refreshes material projections; it does not move stock or create orders. Requires an unpinned operator with Write + planning.execute. Preview first, then repeat identical arguments with sourceVersion, previewReceipt and idempotencyKey. In-app assistants get a confirm card the user applies.

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": {
      "warehouseId": "<warehouseId>",
      "replenishmentMode": "<replenishmentMode>"
    },
    "name": "set_warehouse_supply_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNo
warehouseIdYes
sourceVersionNo
idempotencyKeyNo
previewReceiptNo
replenishmentModeYes
supplyTransitDaysNo
supplyWarehouseIdNo

Output Schema

NameRequiredDescriptionDefault
routeNo
previewNo
nextStepNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses key behavioral traits: it reroutes dependent demand and refreshes projections but does not move stock or create orders, chains are supported while cycles are rejected, and the in-app assistant returns a confirm card. These details substantially clarify the destructive and idempotent annotations without contradicting them.

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

Conciseness5/5

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

The text is dense but well ordered: operation, mode selection, transit-day semantics, graph constraints, side effects, preconditions, then the preview protocol. Every sentence adds operational value and there is no filler.

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 an eight-parameter mutation with an output schema, the description covers modes, constraints, side effects, permissions and the preview/confirm workflow. Return values need not be explained because an output schema exists, so nothing an agent needs to invoke this 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?

Schema coverage is 0%, so the description carries the load and does well: it defines the two replenishmentMode cases, explains supplyWarehouseId, gives a 0–365 day range for supplyTransitDays with omission meaning unknown, and explains sourceVersion, previewReceipt and idempotencyKey in the preview flow. Only warehouseId and the preview flag are left implicit, keeping it just short of 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 ("Set a warehouse-level supply route") and immediately distinguishes the two route modes, purchase_order versus transfer. It also names the downstream effect (rerouting raw-material demand and refreshing projections), so an agent can tell what operation this is rather than merely restating the title.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says when to use purchase_order with no supplyWarehouseId versus transfer with a supplying warehouse, and it gives a mandatory workflow (preview first, then repeat identical arguments with sourceVersion, previewReceipt and idempotencyKey). It also states the permission and operator preconditions, leaving little to inference.

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