Skip to main content
Glama

Commit Replenishment Plan

commit_replenishment_plan
Idempotent

Preview or atomically commit the current Inventory Mission Control revision into created purchase-order, transfer-order and manufacturing-order drafts with durable mission lineage. A manufacture line drafts a manufacturing order at its warehouse from the item's primary bill of materials, planned from the commit day plus the line's lead time; a manufacture line whose item has no bill of materials it can build from blocks the commit by SKU (defer the line or add the BOM). First call without previewReceipt/idempotencyKey; after reviewing the exact draft groups, repeat with both plus the returned artifact fingerprint. Both phases rebuild canonical evidence and fail with PLAN_SOURCE_CHANGED on any drift. Commit requires Write scope plus replenishment.prepare. It never issues a purchase order or manufacturing order, submits or reserves a transfer, receives inventory, or starts production. Client-pinned purchase drafts are supported; client-pinned transfers and manufacturing fail closed until those orders carry client ownership. The committed result lists every created draft with its id and type.

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>",
      "expectedRevision": "<expectedRevision>",
      "expectedSourceFingerprint": "<expectedSourceFingerprint>"
    },
    "name": "commit_replenishment_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesCredential-owned replenishment plan id (GUID).
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt.
previewReceiptNoReceipt returned by the preview call; omit on preview.
expectedRevisionYesExpected current immutable revision.
expectedSourceFingerprintYesExact sourceFingerprint returned by that revision.
expectedArtifactFingerprintNoArtifact fingerprint returned by preview; required for commit.

Output Schema

NameRequiredDescriptionDefault
okNo
resultNo
effectsNo
warningsNo
expiresAtNo
operationNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo
allowedNextActionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), it discloses atomicity, the two-phase preview/commit contract, drift failure with PLAN_SOURCE_CHANGED on both phases, required Write scope plus replenishment.prepare, and a detailed negative space: it never issues a PO/MO, submits or reserves a transfer, receives inventory, or starts production. It also flags fail-closed behavior for client-pinned transfers and manufacturing orders, which an agent could not infer from the annotations.

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 purpose and the two-phase instruction are front-loaded, and the density suits a complex transactional tool. A few sentences are overloaded with semicolon-joined clauses, and the closing sentence about the committed result duplicating the output schema does not fully earn its place.

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 destructive-adjacent, multi-order, permission-gated tool this covers the essentials: preconditions, staging/commit contract, failure mode, authorization scope, explicit non-effects, and known unsupported configurations. Return shape is covered by the output schema, so the brief mention of the result list is sufficient.

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%, so the baseline is 3; the description earns extra credit by explaining the cross-call relationship among previewReceipt, idempotencyKey and expectedArtifactFingerprint (omit on preview, required together on commit). It still does not describe expectedRevision or expectedSourceFingerprint beyond the schema's own wording.

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 description opens with a specific verb pair and resource: 'Preview or atomically commit the current Inventory Mission Control revision into created purchase-order, transfer-order and manufacturing-order drafts.' That is far more precise than the bare name. It falls short of a 5 only because it never names an adjacent sibling (e.g. build_replenishment_plan/cancel_replenishment_plan) to route the agent between plan-lifecycle steps.

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 explicit procedural guidance: call first without previewReceipt/idempotencyKey to preview, then repeat with both plus the returned artifact fingerprint. It also states the blocking condition (a manufacture line with no usable BOM blocks the commit by SKU; defer the line or add the BOM). What is missing is a direct statement of when to prefer a sibling tool instead.

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