Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_retail_shrinkage_loss

Calculates total annual retail inventory shrinkage loss, analyzes root causes like shoplifting or employee theft, and computes loss prevention ROI using book versus physical inventory data.

Instructions

Retail Shrinkage & Loss Prevention Calculator. Calculate total annual retail inventory shrinkage loss, analyze root causes (shoplifting, employee theft, administrative error), and calculate loss prevention ROI. Discipline: ECOMMERCE. Governing mathematical model / formula: Shrinkage $ = Book Inventory - Physical Count Inventory | Shrink % = (Shrinkage $ / Total Retail Sales) × 100.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of total_shrinkage_loss (Total Inventory Shrinkage Loss), shrinkage_pct_sales (Shrinkage as % of Sales), external_theft_loss (External Theft / Shoplifting Loss), daily_shrink_loss (Average Daily Shrinkage Bleed) using annual_retail_sales (Annual Retail Sales Revenue in $), book_inventory_valuation (Book Inventory Valuation ($ Cost) in $), physical_count_valuation (Physical Audit Valuation ($ Cost) in $), external_theft_pct (Estimated Shoplifting Share (%) in %). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Retail Shrinkage & Loss Prevention Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "retail-shrinkage-loss"

    • category (string): "ecommerce"

    • name (string): "Retail Shrinkage & Loss Prevention Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.total_shrinkage_loss (Total Inventory Shrinkage Loss): Formatted display string (e.g. '$52,500 / year')

      • metrics.shrinkage_pct_sales (Shrinkage as % of Sales): Formatted display string (e.g. '1.50%')

      • metrics.external_theft_loss (External Theft / Shoplifting Loss): Formatted display string (e.g. '$19,950')

      • metrics.daily_shrink_loss (Average Daily Shrinkage Bleed): Formatted display string (e.g. '$143.84 / day')

    • execution_time_ms (number): Latency in milliseconds.

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": "omni_retail_shrinkage_loss"
  }
}

Input Schema

NameRequiredDescriptionDefault
external_theft_pctNoEstimated Shoplifting Share (%) (%). National Retail Federation average is ~36-38%. Default: 38. Min: 10. Max: 80.
annual_retail_salesNoAnnual Retail Sales Revenue ($). Gross sales across retail store network. Default: 3500000. Min: 100000. Max: 100000000.
book_inventory_valuationNoBook Inventory Valuation ($ Cost) ($). Expected inventory based on ERP/POS records. Default: 620000. Min: 20000. Max: 20000000.
physical_count_valuationNoPhysical Audit Valuation ($ Cost) ($). Actual on-hand inventory counted during physical audit. Default: 567500. Min: 20000. Max: 20000000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools