# Gross Margin Return on Inventory (GMROI) Two-Input Scenario Grid

> Gross Margin Return on Inventory (GMROI) Two-Input Scenario Grid 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).

Computes a two-input scenario grid for Gross Margin Return on Inventory (GMROI) by varying gross profit and average inventory cost across user-defined value ranges.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-retail-inventory-margin-return-stress-grid?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-gmroi-two-input-scenario-grid-91b8b090
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X22V0pgMxz_WOI2cPvox-

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-gmroi-two-input-scenario-grid-91b8b090 -d '<json body>'
```

Example prompt: Run a two-input GMROI scenario grid with a baseline gross profit of $5,000 and average inventory cost of $2,500, varying gross profit across $4,000, $5,000, $6,000, $7,000 and average inventory cost across $2,000, $2,500, $3,000 — I want to see how all combinations affect my gross margin return on inventory.

## When to prefer this

Choose this endpoint when you need a local, offline-style sensitivity grid for GMROI across two retail financial inputs without requiring live inventory data, platform integrations, or order access. Ideal for planning, reporting, or what-if analysis where the user supplies all figures directly.

## Known failure modes

- average_inventory_cost of zero or negative triggers validation error (exclusiveMinimum:0)
- values_x or values_y arrays exceeding 10 items rejected
- field_x and field_y set to same variable may produce a trivially diagonal grid
- values outside the ±1,000,000,000,000 bounds rejected
- malformed baseline object missing required fields returns error

## How this service works

Gross margin return on inventory - Two-input scenario grid: Two-input scenario grid 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 two-input scenario grid deliverable.

## Output

A two-dimensional scenario grid showing computed GMROI values (gross profit divided by average inventory cost) for each combination of the provided gross_profit and average_inventory_cost input arrays, enabling sensitivity and what-if analysis across retail inventory performance scenarios.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "field_x": {
   "enum": [
    "gross_profit",
    "average_inventory_cost"
   ],
   "type": "string",
   "default": "gross_profit"
  },
  "field_y": {
   "enum": [
    "gross_profit",
    "average_inventory_cost"
   ],
   "type": "string",
   "default": "average_inventory_cost"
  },
  "baseline": {
   "type": "object",
   "default": {
    "gross_profit": 5000,
    "average_inventory_cost": 2500
   },
   "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
  },
  "values_x": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    5000,
    5500
   ],
   "maxItems": 10,
   "minItems": 1
  },
  "values_y": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": -1000000000000
   },
   "default": [
    2500,
    2750
   ],
   "maxItems": 10,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-margin-return-on-inventory-gmroi-two-input-scenario-grid-91b8b090/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)
