{"uid":"cap_hfYAs-MdUyGCVdDcpNLdf","slug":"margin-of-safety-record-ranking-6849d80b","name":"Margin of Safety – Record Ranking","description":"Margin of safety - Record ranking: Rank up to 200 supplied records by calculated value, preserving row indices; higher is not necessarily better. 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 record ranking report.","url":"https://market.datapackvibe.com/x402/assistant-finance-margin-safety-rank?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}}},"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_AW8tU1YlyC7FvO_V_cAxY","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":"Ranks up to 200 supplied records by their calculated margin of safety, preserving original row indices and returning results with formula, units, and limitations.","exampleAgentPrompt":"I have 8 business units — can you rank them by margin of safety? Their actual sales and break-even sales are: Unit A: $120,000 actual, $80,000 break-even; Unit B: $95,000 actual, $75,000 break-even; Unit C: $200,000 actual, $110,000 break-even; Unit D: $60,000 actual, $50,000 break-even; Unit E: $180,000 actual, $140,000 break-even; Unit F: $300,000 actual, $150,000 break-even; Unit G: $75,000 actual, $60,000 break-even; Unit H: $110,000 actual, $90,000 break-even.","exampleUseCases":[{"title":"Portfolio financial cushion ranking","prompt":"I've got 12 companies in my investment portfolio — rank them by margin of safety using these actual and break-even sales figures so I can see which ones are most financially resilient: Company 1: $500k actual, $320k break-even; Company 2: $1.2M actual, $900k break-even; Company 3: $750k actual, $600k break-even…"},{"title":"Retail product line risk comparison","prompt":"We have 6 product lines and I want to know which has the biggest safety buffer above break-even. Can you rank them by margin of safety? Line 1: $80,000 actual sales, $55,000 break-even; Line 2: $120,000 actual, $100,000 break-even; Line 3: $95,000 actual, $60,000 break-even; Line 4: $200,000 actual, $140,000 break-even; Line 5: $65,000 actual, $50,000 break-even; Line 6: $310,000 actual, $180,000 break-even."},{"title":"Multi-branch break-even proximity report","prompt":"Our 5 regional branches all have different actual and break-even sales — rank them by margin of safety so leadership can see which branches are closest to their break-even point: North: $900k actual, $700k break-even; South: $1.1M actual, $950k break-even; East: $750k actual, $500k break-even; West: $600k actual, $580k break-even; Central: $850k actual, $620k break-even."}],"resultDescription":"A JSON response containing the supplied records re-ordered by their calculated margin of safety score, with original row indices preserved. Includes the formula used (margin of safety = (actual_sales − break_even_sales) / actual_sales), the units assumed, and a limitations section describing caveats such as reliance on supplied figures only and no live data.","failureModes":["Fewer than 2 rows supplied — minimum of 2 records required","actual_sales of 0 or omitted — field is required and must be greater than 0 (exclusiveMinimum)","break_even_sales missing — required field","More than 200 rows submitted — maxItems limit exceeded","Non-numeric values passed in numeric fields — schema validation failure","break_even_sales exceeds actual_sales — ranking still computed but margin of safety will be negative, indicating operating below break-even"],"whenToPreferThis":"Choose this endpoint when you need to rank a batch of records (2–200) by margin of safety in a single call, with row indices preserved and formula/units documentation included in the response. It is purpose-built for margin of safety ranking, unlike generic statistical ranking endpoints. Prefer it when you have user-supplied actual_sales and break_even_sales figures and need a bounded, auditable ranking report without live market data or financial advice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:39.763Z","isFirstParty":false,"canonicalSlug":"margin-of-safety-record-ranking-6849d80b"}