Skip to main content
Glama

Inventory shrinkage check

wever_inventory-shrinkage-check
Read-only

Agent Inventory: submit a shrinkage record with the loss, count and sales records it answers to: the shrinkage record with its reference, its first and last day, currency, the write-off value above which an approval must be named, each write-off with the item, category, location, units, value, day, the loss record it rests on and who approved it, and each explanation recorded for a category or location; the loss records with each reference and cause; optionally the count variances with each item, location and units counted less stock on hand, and the sales periods with each first and last day, units sold and shrinkage units recorded. The signed report gives the shrinkage record, each write-off against the loss record it rests on, each write-off above the approval threshold against the approval it names, the shrinkage spread over the categories and locations against the explanations recorded, and the sales periods against the shrinkage recorded in them, and counts them, and names a divergent shrinkage record: a loss written off with no loss record, a write-off above the stated threshold with no approval named, shrinkage concentrated in one category or location with no explanation recorded, and periods with sales but no shrinkage ever recorded; then a count shortfall with no write-off and a write-off dated outside the period, with the fix for each and what would change the verdict. No write-offs, no approval threshold or write-off values, no category or location on each of three or more write-offs, or fewer than two sales periods with units sold leaves those points unverified. Loss records match by their references read as letters and digits, items by their SKU or their words, and categories and locations by their words; shrinkage is concentrated when one category or location carries 60 percent or more of it, by value or else by units, over three or more write-offs in two or more groups; amounts compare to the cent, units to the hundredth and dates by the day. This reads whether stock losses are recorded and supported, against the counts and sales they should show in. Verdict inventory_shrinkage_divergent, inventory_shrinkage_partial, inventory_shrinkage_unverified or inventory_shrinkage_consistent. POST /api/inventory-shrinkage-check. Reads the inventory records supplied in the call and returns a signed report with the verdict, the evidence read, the findings with their fixes, and what would change the verdict; it reads the records as supplied only: it never moves stock, never places or cancels an order, never writes to anyone’s inventory system and never adjusts a record, which stay with the business and its staff, and the records stay in the report, with no network request, fetch, message, payment or external write. Agent Inventory reads inventory records: a stock count, receiving records, shrinkage and loss records, a stock adjustment log, an inventory valuation, reorder records, a dead stock record and consignment stock records, each against the system stock record, the purchase or consignment orders, the count and sales records, the count and the period close, the counts and purchase records, the stock levels and lead times, the movement window and period report, or the sale and settlement records it answers to. The family checks whether the stock record can be trusted; the Agent Bookkeeping family reads the ledger the stock feeds, and the boutique tools act on one store’s orders. Paid URL: 0.10 USDC per call on Base via x402 exact, with the shared 10 signed-wallet free calls per rolling 30 days. Bind X-Wever-Wallet-Proof to the exact JSON arguments and the tool route. Returns a report with an Ed25519 signed receipt. Contract: /api/agent-inventory-contract. Human page: https://weverlabs.com/agent-inventory/.

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": {
      "shrinkage": "<shrinkage>",
      "loss_records": "<loss_records>"
    },
    "name": "wever_inventory-shrinkage-check"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional name recorded in the report.
shrinkageYes
loss_recordsYesEach loss record.
sales_periodsNoEach sales period.
count_variancesNoEach count variance.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint and destructiveHint annotations, the description discloses extensive behavior: it reads records only as supplied, never moves stock, places orders, writes to inventory systems, adjusts records, or makes network/external writes. It also explains the verdict logic, unverified cases, matching rules, concentration threshold, and signed report, which is substantial context beyond 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.

Conciseness2/5

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

The description is a dense, run-on wall of text with repeated phrasing and multiple distinct subjects packed into long sentences. It is front-loaded with purpose, but it is far longer than needed and lacks structure, making it difficult to scan for key rules.

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?

With no output schema and a complex nested input, the description carries the burden well: it explains the submitted records, the report contents, all four verdicts, example divergence findings, fixes, unverified conditions, matching rules, and read-only limitations. An agent has enough information to invoke and interpret the tool correctly.

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 already 80%, so the baseline is 3, but the description adds useful meaning beyond the schema: it explains that the approval threshold is the write-off value above which approval must be named, that count variances represent counted less stock on hand, and how loss records, items, categories, and locations are matched. It also defines the concentration rule, adding validation semantics not fully captured by the schema.

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 clearly states a specific verb and resource: it reads whether stock losses are recorded and supported, returns a signed shrinkage report with a verdict, and names the verdict values. It distinguishes itself broadly within the Agent Inventory family but does not explicitly contrast itself with siblings such as inventory-count-check or inventory-adjustment-check.

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 clear usage context: this tool is for checking whether shrinkage is recorded and supported against counts and sales, and lists conditions under which points are left unverified. It does not explicitly say when to choose it over named sibling inventory checks, so it falls short of full alternative routing.

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