# Gross Margin Return on Inventory - Weighted Result Mean

> Gross Margin Return on Inventory - Weighted Result Mean 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-18).

Calculates the weighted mean of Gross Margin Return on Inventory (GMROI) across multiple supplied retail data rows using user-specified weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-inventory-margin-return-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gross-margin-return-on-inventory-weighted-result-mean-99b2c14b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IVm75dzWm_ZkznDrn8Zip

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 gross-margin-return-on-inventory-weighted-result-mean-99b2c14b -d '<json body>'
```

Example prompt: Can you calculate the weighted mean GMROI for my four product lines? The gross profits are $5000, $5500, $5000, and $5500, with average inventory costs of $2500, $2750, $2500, and $2750 — weight the second and fourth lines twice as heavily as the first and third.

## When to prefer this

Choose this endpoint when you need a single summarized, importance-weighted GMROI statistic across multiple retail data rows rather than individual calculations or a distribution. It is best suited for scenario analysis, benchmarking across product lines or store segments, and situations where some observations should contribute more heavily to the aggregate result than others. Use it instead of a simple mean when your data rows have unequal importance or volume.

## Known failure modes

- Fewer than 2 rows supplied — validation error
- Average inventory cost of zero or negative — rejected by exclusiveMinimum constraint
- Mismatch between number of rows and number of weights — likely causes an error or unexpected result
- Values exceeding 1,000,000,000,000 — out of bounds error
- Non-numeric values in gross_profit or average_inventory_cost — schema validation failure
- More than 200 rows submitted — exceeds maxItems limit

## How this service works

Gross margin return on inventory - Weighted result mean: Weighted result mean for Gross margin return on inventory. 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 weighted result mean deliverable.

## Output

Returns a single weighted mean GMROI value computed from all supplied rows, where each row's GMROI (gross profit divided by average inventory cost) is combined according to the provided weight array. The result reflects a weighted aggregate measure of inventory profitability across the input dataset.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "gross_profit",
     "average_inventory_cost"
    ],
    "properties": {
     "gross_profit": {
      "type": "number",
      "default": 5000,
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "average_inventory_cost": {
      "type": "number",
      "default": 2500,
      "maximum": 1000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "gross_profit": 5000,
     "average_inventory_cost": 2500
    },
    {
     "gross_profit": 5500,
     "average_inventory_cost": 2750
    },
    {
     "gross_profit": 5000,
     "average_inventory_cost": 2500
    },
    {
     "gross_profit": 5500,
     "average_inventory_cost": 2750
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-margin-return-on-inventory-weighted-result-mean-99b2c14b/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)
