# Gross Margin Named Scenario Comparison Calculator

> Gross Margin Named Scenario Comparison Calculator 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-22).

Applies up to 20 named input-override scenarios to a gross margin baseline and reports the differences in a structured JSON result.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-gross-margin-scenario?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gross-margin-named-scenario-comparison-calculator-6ed10753
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ixzE5jsbLppibv2fVMud3

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-named-scenario-comparison-calculator-6ed10753 -d '<json body>'
```

Example prompt: Compare our gross margin across three scenarios: baseline is $500,000 revenue with $150,000 gross profit. Scenario 1 called 'Price Increase' raises revenue to $600,000. Scenario 2 called 'Cost Reduction' keeps revenue at $500,000 but bumps gross profit to $200,000. Scenario 3 called 'Both' sets revenue to $600,000 and gross profit to $220,000.

## When to prefer this

Choose this endpoint when you need to evaluate and compare gross margin outcomes across multiple named what-if scenarios simultaneously, rather than recalculating one scenario at a time. It is ideal for structured financial modeling, budget sensitivity analysis, and presenting labelled scenario comparisons to stakeholders. Prefer it over single-scenario calculators when you have 2–20 distinct input combinations to compare against a single baseline in one call.

## Known failure modes

- Missing required baseline fields (revenue or gross_profit) returns a validation error
- Revenue value of zero or negative triggers exclusiveMinimum violation
- More than 20 scenarios in the array exceeds maxItems limit
- Scenario label exceeding 80 characters fails schema validation
- Scenario overrides object with no properties fails minProperties constraint
- Values exceeding the maximum of 1,000,000,000,000 cause schema rejection

## How this service works

Gross margin - Named scenario comparison: Apply up to 20 explicit input-override scenarios to one baseline and report their differences. Metric: Gross margin. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded named scenario comparison report.

## Output

A JSON object containing the gross margin formula used, units, limitations of the calculation, the baseline gross margin result, and a per-scenario breakdown showing the overridden inputs and the resulting gross margin difference versus the baseline.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "baseline": {
   "type": "object",
   "default": {
    "revenue": 10000,
    "gross_profit": 2000
   },
   "required": [
    "gross_profit",
    "revenue"
   ],
   "properties": {
    "revenue": {
     "type": "number",
     "default": 10000,
     "maximum": 1000000000000,
     "minimum": 0,
     "description": "Amount in a consistent supplied currency and reporting period",
     "exclusiveMinimum": 0
    },
    "gross_profit": {
     "type": "number",
     "default": 2000,
     "maximum": 1000000000000,
     "minimum": -1000000000000,
     "description": "Amount in a consistent supplied currency and reporting period"
    }
   },
   "additionalProperties": false
  },
  "scenarios": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "label",
     "overrides"
    ],
    "properties": {
     "label": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "overrides": {
      "type": "object",
      "properties": {
       "revenue": {
        "type": "number",
        "default": 10000,
        "maximum": 1000000000000,
        "minimum": 0,
        "description": "Amount in a consistent supplied currency and reporting period",
        "exclusiveMinimum": 0
       },
       "gross_profit": {
        "type": "number",
        "default": 2000,
        "maximum": 1000000000000,
        "minimum": -1000000000000,
        "description": "Amount in a consistent supplied currency and reporting period"
       }
      },
      "minProperties": 1,
      "additionalProperties": false
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "label": "Supplied alternative",
     "overrides": {
      "gross_profit": 2200
     }
    }
   ],
   "maxItems": 20,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gross-margin-named-scenario-comparison-calculator-6ed10753/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)
