# Demand-Variability Safety Stock Distribution Histogram

> Demand-Variability Safety Stock Distribution Histogram is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Computes a distribution histogram of safety stock quantities across multiple retail SKU scenarios defined by demand variability, lead time, and service level inputs.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-safety-stock-histogram?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/demand-variability-safety-stock-distribution-histogram-c205c094
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_238ArtVfpn4u6r35J-hwI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability demand-variability-safety-stock-distribution-histogram-c205c094 -d '<json body>'
```

Example prompt: Generate a 5-bin distribution histogram for these 4 retail scenarios — scenario 1: daily demand stddev 4, lead time 10 days, z-score 1.65; scenario 2: daily demand stddev 4.4, lead time 11 days, z-score 1.815; scenario 3: same as scenario 1; scenario 4: same as scenario 2 — so I can see how safety stock values are spread.

## When to prefer this

Choose this endpoint when you need a local, offline-style distribution histogram specifically for demand-variability safety stock calculations across multiple retail scenarios. It is ideal for scenario analysis and planning where you have retail demand standard deviation, lead time, and service level inputs and want to visualize the spread of resulting safety stock values. Prefer this over live inventory platforms when no real-time stock data, account access, or order execution is needed.

## Known failure modes

- Fewer than 2 rows provided — minimum 2 scenario rows required
- More than 200 rows submitted — exceeds maxItems limit
- Bins value outside 1–30 range returns validation error
- Negative or zero daily_demand_stddev or lead_days may produce degenerate distributions
- Missing required fields (service_z, daily_demand_stddev, lead_days) causes schema validation failure
- Payment failure or insufficient USDC balance blocks request execution

## How this service works

Demand-variability safety stock - Distribution histogram: Distribution histogram for Demand-variability safety stock. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded distribution histogram deliverable.

## Output

Returns a bounded distribution histogram object showing how computed safety stock values (derived from service_z × daily_demand_stddev × sqrt(lead_days)) are distributed across the specified number of bins, across all submitted retail scenarios. Includes bin boundaries and frequency counts for scenario analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bins": {
   "type": "integer",
   "default": 5,
   "maximum": 30,
   "minimum": 1
  },
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "service_z",
     "daily_demand_stddev",
     "lead_days"
    ],
    "properties": {
     "lead_days": {
      "type": "number",
      "default": 10,
      "maximum": 1000000000000,
      "minimum": 0
     },
     "service_z": {
      "type": "number",
      "default": 1.65,
      "maximum": 5,
      "minimum": 0
     },
     "daily_demand_stddev": {
      "type": "number",
      "default": 4,
      "maximum": 1000000000000,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "lead_days": 10,
     "service_z": 1.65,
     "daily_demand_stddev": 4
    },
    {
     "lead_days": 11,
     "service_z": 1.815,
     "daily_demand_stddev": 4.4
    },
    {
     "lead_days": 10,
     "service_z": 1.65,
     "daily_demand_stddev": 4
    },
    {
     "lead_days": 11,
     "service_z": 1.815,
     "daily_demand_stddev": 4.4
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/demand-variability-safety-stock-distribution-histogram-c205c094/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
