{"uid":"cap_DJjmv5pKM0g5APd6lt_wa","slug":"control-operativo-margin-calculator-f8387305","name":"Control Operativo Margin Calculator","description":"Plantillas y manuales digitales para controlar inventario, ventas y margen.","url":"https://herramientas-cobrables.consultoressasic.chatgpt.site/api/paid/margin-calculator","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["revenue","variable_costs","fixed_costs","units"],"properties":{"units":{"type":"string","pattern":"^[1-9]\\d*$"},"revenue":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"fixed_costs":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"},"variable_costs":{"type":"string","pattern":"^\\d+(?:\\.\\d+)?$"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["ok","inputs","result"],"properties":{"ok":{"type":"boolean"},"inputs":{"type":"object"},"result":{"type":"object"},"chargedUsd":{"type":"string"},"transactionHash":{"type":"string"}}}},"additionalProperties":false}},"additionalProperties":false},"responseSchema":{"type":"json","example":{"ok":true,"inputs":{"units":100,"revenue":1000,"fixedCosts":300,"variableCosts":400},"result":{"netProfit":300,"grossProfit":600,"netMarginPct":30,"breakEvenUnits":50,"grossMarginPct":60,"breakEvenRevenue":500},"chargedUsd":"0.250000","transactionHash":"0x..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Nii4SYa8pvPn4d-YpDivW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates gross margin, net margin, break-even point, and profit for a business given revenue, variable costs, fixed costs, and unit volume.","exampleAgentPrompt":"My asadero brought in $5,000 in revenue this month, with $1,800 in variable costs and $1,200 in fixed costs across 200 units sold — can you calculate my gross margin, net margin, and break-even point?","exampleUseCases":[{"title":"Monthly profitability check for grill restaurant","prompt":"Last month my asadero had $8,000 in revenue, $3,000 in variable costs, $2,000 in fixed costs, and sold 400 units — what were my gross and net margins and how many units did I need to break even?"},{"title":"New menu pricing decision","prompt":"If I price my new combo at $12 per unit and expect to sell 150 units, with $600 in variable costs and $400 in fixed costs, what will my net margin and break-even point be?"},{"title":"Weekly cost control review","prompt":"This week we made $2,500 in revenue selling 100 portions, with $900 in variable costs and $500 in fixed costs — can you tell me my gross profit, net profit, gross margin percentage, and net margin percentage?"}],"resultDescription":"Returns a JSON object with gross profit, net profit, gross margin percentage, net margin percentage, break-even units, and break-even revenue — along with the original inputs echoed back, the USD amount charged, and a blockchain transaction hash confirming the micropayment.","failureModes":["Missing required query parameters (revenue, variable_costs, fixed_costs, units) returns an error","Non-numeric or zero-value units causes validation failure due to regex pattern requiring positive integers","Revenue or cost values in wrong format (e.g. negative numbers or non-numeric strings) fail schema validation","Network or payment processing failure may result in no response or unpaid transaction","Edge case: variable_costs + fixed_costs exceeding revenue returns valid result with negative net profit"],"whenToPreferThis":"Choose this endpoint when you need a fast, structured profitability computation for a food-service or small-business context — especially when you want gross margin, net margin, and break-even metrics in a single call without setting up a spreadsheet or accounting system. It is particularly suited to restaurant and asadero operators wanting per-period margin snapshots programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:39:03.246Z","isFirstParty":false}