# Margin of Safety – Threshold Classification

> Margin of Safety – Threshold Classification 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-19).

Classifies up to 200 margin-of-safety values against user-supplied inclusive lower and upper bounds, returning a JSON report with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-margin-safety-threshold?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/margin-of-safety-threshold-classification-aafcd4ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RMB4CVbhS1P7kiW3nOfv3

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 margin-of-safety-threshold-classification-aafcd4ef -d '<json body>'
```

Example prompt: I have 4 periods of sales data — actual sales of 10000, 11000, 10000, 11000 and break-even sales of 7000, 7700, 7000, 7700 — can you classify each margin of safety against a lower bound of 0 and upper bound of 50, and tell me which periods fall inside that range?

## When to prefer this

Choose this endpoint when you need to batch-classify multiple margin-of-safety observations against a consistent threshold band in a single call. It is ideal for periodic audits, multi-unit comparisons, or scenario analysis where you already have actual and break-even sales figures and want a structured JSON report with formula documentation. Prefer this over a single-calculation endpoint when evaluating 2–200 rows at once.

## Known failure modes

- Fewer than 2 rows submitted — minimum of 2 rows required
- More than 200 rows submitted — exceeds maximum batch size
- actual_sales of zero or below — must be a positive non-zero number
- lower bound exceeds upper bound — invalid threshold configuration
- Missing required fields actual_sales or break_even_sales in any row
- Non-numeric values in numeric fields — schema validation failure

## How this service works

Margin of safety - Threshold classification: Classify up to 200 calculated values against supplied inclusive bounds. Metric: Margin of safety. 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 threshold classification report.

## Output

A JSON object containing the margin of safety formula, units, and a classification result for each submitted row indicating whether the calculated margin of safety falls within, below, or above the supplied inclusive lower and upper bounds, plus any limitations of the calculation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "actual_sales",
     "break_even_sales"
    ],
    "properties": {
     "actual_sales": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "break_even_sales": {
      "type": "number",
      "default": 7000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    },
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "lower": {
   "type": "number",
   "default": 0,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  },
  "upper": {
   "type": "number",
   "default": 100,
   "maximum": 1000000000000000000,
   "minimum": -1000000000000000000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/margin-of-safety-threshold-classification-aafcd4ef/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)
