Skip to main content
Glama

Push Inventory Snapshot

push_inventory_snapshot
Destructive

Push a FULL inventory snapshot for an External (non-warehoused) warehouse. Set semantics: the list is the complete on-hand picture — items omitted from it are ZEROED. Empty snapshots, non-External warehouses, oversized lists (max 5000 items — a snapshot is full-replace so it can't be chunked), and negative/absurd quantities or costs are rejected. If the snapshot would zero a large number of currently-stocked items (a truncated push wiping the catalog), it is refused unless confirmZeroing is set. The response always reports wouldZero/zeroed counts. Set dryRun=true to PREVIEW the effect (matched/skipped/wouldZero) without writing anything — nothing is zeroed, no sync timestamp is stamped, and the mass-zeroing guard is not applied so you always see the full blast radius before committing.

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>",
      "items": "<items>"
    },
    "name": "push_inventory_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesComplete on-hand list: identifier (SKU, transfer SKU, or purchase SKU — UPC is NOT matched here, unlike the sales-order tool) + quantity.
dryRunNoPreview only: resolve identifiers and compute wouldZero without changing any on-hand row or stamping the feed. The response has DryRun=true and Zeroed=0. Takes precedence over the governance parameters (preview/previewReceipt) — a dryRun call never issues or consumes a receipt.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured matched/skipped/wouldZero preview plus a single-use previewReceipt. Nothing is written until the commit call.
warehouseIdYesThe External warehouse id (GUID).
confirmZeroingNoSet true ONLY to confirm a deliberate large delisting when the snapshot would zero more currently-stocked items than the safety threshold. Leave false for normal pushes — a false positive means the snapshot is probably truncated.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
dataNo
previewNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false; the description goes well beyond by spelling out exactly what is destroyed (omitted items are zeroed), the 5000-item hard cap with the reason it can't be chunked, which inputs are rejected, and the mass-zeroing guard. It adds a non-obvious behavioral detail not present in annotations: that dryRun bypasses the zeroing guard and stamps no sync timestamp.

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?

Front-loaded with the core set semantics and hard limits before the guard and dryRun mechanics. Every sentence carries information, though the single dense paragraph stacks rejection rules, guard behavior, and preview semantics without visual separation, making it slightly harder to scan.

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, 7-parameter full-replace tool this covers the critical failure modes: truncation, mass zeroing, chunking impossibility, preview/commit sequencing, and dryRun side effects. An output schema exists, so the passing mention that the response reports wouldZero/zeroed counts is sufficient without enumerating return fields.

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, but the description adds causal context — why confirmZeroing exists (truncated push wiping the catalog) and that dryRun overrides the governance parameters while preview is step 1 of a required two-step write. It does not add item-level detail on identifier/quantity/cost semantics beyond what the schema already documents.

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 verb and resource ('Push a FULL inventory snapshot') plus the scoping constraint ('for an External (non-warehoused) warehouse') that separates it from the other push tool. The set semantics sentence makes the operation's meaning unmistakable.

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?

Explicitly covers when to use dryRun (preview the blast radius before committing), when to set confirmZeroing (deliberate large delisting only, false positive implies truncation), and the required two-step preview/commit flow with previewReceipt and idempotencyKey. It also names the distinction from the sales-order tool for UPC matching, so an agent can route correctly.

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