{"uid":"cap_LPEryyjUWh6y5LuUsyC2y","slug":"contribution-margin-calculator-c20f8051","name":"Contribution Margin Calculator","description":"Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.","url":"https://x402.agentutility.ai/contribution-margin-calculator","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"fixed_costs":{"type":"number","description":"Fixed costs to recover."},"unit_price":{"type":"number","description":"Revenue per unit."},"variable_cost_per_unit":{"type":"number","description":"Variable cost per unit."},"expected_units":{"type":"number","description":"Optional expected unit volume."}},"required":["fixed_costs","unit_price","variable_cost_per_unit"]}},"required":["type","method","bodyType","body"],"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"calculator":{"type":"string"},"score":{"type":"number"},"grade":{"type":"string"},"recommendation":{"type":"string"},"metrics":{"type":"object","properties":{"contribution_margin_pct":{"type":"number"},"break_even_units":{"type":"number"},"expected_profit":{"type":"integer"}}},"drivers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"score":{"type":"number"},"weight":{"type":"number"},"note":{"type":"string"}}}},"warnings":{"type":"array"},"source":{"type":"string"}}}},"required":["type"]}},"required":["input"]},"responseSchema":{"type":"json","example":{"grade":"strong","score":74.2,"source":"deterministic in-process finance calculator; no upstream API","drivers":[{"name":"debt_service_coverage","note":"1.42x DSCR","score":83.6,"weight":0.3}],"metrics":{"expected_profit":62000,"break_even_units":2428.57,"contribution_margin_pct":71.43},"warnings":[],"calculator":"break-even-calculator","recommendation":"Proceed with standard diligence and covenant checks."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_CzP5pF58uXZh2XgefxF1-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes contribution margin, break-even units, expected profit, and a graded viability score for a business or product scenario using a deterministic in-process finance calculator.","exampleAgentPrompt":"Can you run a contribution margin analysis on my product — it sells at $140/unit, variable costs are $40/unit, fixed costs are $58,000/month, and I expect to sell 1,200 units this month? I want a viability grade and the break-even unit count.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a letter-style grade (e.g. 'strong'), a numeric score (0-100), the source note confirming deterministic in-process calculation, a list of weighted metric drivers with individual scores and notes (e.g. DSCR), computed metrics including expected profit, break-even units, and contribution margin percentage, any warnings, the calculator name used, and a plain-English recommendation.","failureModes":["Missing required financial inputs returns a validation error","Division by zero if unit price equals variable cost (zero contribution margin)","Negative or illogical input values may produce warnings or an error grade","Payment failure via x402 if USDC balance is insufficient results in 402 response","Malformed JSON body returns a 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, no-upstream-API contribution margin and break-even calculation with a graded viability score — ideal for agent workflows evaluating unit economics, underwriting small business financials, or stress-testing product pricing without calling an external financial data provider. Prefer it over LLM-based financial reasoning when you need a reproducible numeric score and structured driver breakdown.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:11:21.488Z","isFirstParty":false}