{"uid":"cap_RMB4CVbhS1P7kiW3nOfv3","slug":"margin-of-safety-threshold-classification-aafcd4ef","name":"Margin of Safety – Threshold Classification","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-finance-margin-safety-threshold?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9PxzmcACovqyBddxEQCGU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Monthly safety band audit","prompt":"I have 12 months of actual and break-even sales figures for my retail chain. Can you calculate the margin of safety for each month and classify them against a lower threshold of 10 and an upper threshold of 40, so I can see which months are within our acceptable safety band?"},{"title":"Multi-division risk screening","prompt":"I want to screen 8 business divisions — I have actual sales and break-even sales for each. Classify their margins of safety using a lower bound of 5 and upper bound of 35 so I can flag any divisions that fall outside those limits."},{"title":"Scenario comparison for budget planning","prompt":"We're doing budget planning and I have two scenarios with actual sales of 500000 and 420000, and break-even sales of 380000 and 390000. Classify both against thresholds of 0 and 25 and give me the formula and units used."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:55:53.000Z","isFirstParty":false,"canonicalSlug":"margin-of-safety-threshold-classification-aafcd4ef"}