{"uid":"cap_0l49FMVqpvEUZ3d5x-nHr","slug":"delx-gross-margin-31edc316","name":"Delx Gross Margin","description":"Calculate gross profit, gross margin, and profitability. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and production co…","url":"https://api.delx.ai/api/v1/x402/gross-margin","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"number","description":"Input field: cost."},"price":{"type":"number","description":"Input field: price."}}},"responseSchema":{"type":"json","example":{"cost":35,"price":100,"schema":"delx/util-gross-margin/v1","profitable":true,"gross_profit":65,"gross_margin_percent":65}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wAEvmySzuaZ_oNXkOyAkc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates gross profit, gross margin percentage, and profitability from cost and price inputs","exampleAgentPrompt":"What's the gross margin and gross profit if my product costs $42.50 to make and I'm selling it for $79.99?","exampleUseCases":[{"title":"Pre-launch pricing validation","prompt":"I'm about to launch a new product that costs $18.75 to produce and I want to sell it at $34.99 — can you tell me the gross margin and gross profit so I can decide if the pricing makes sense?"},{"title":"Procurement cost impact check","prompt":"Our supplier just raised the unit cost on one of our items from $22 to $26, and we sell it at $45. Can you recalculate the gross margin so I can see how much profitability we've lost?"},{"title":"Profitability gate in agent workflow","prompt":"Before I approve this deal, check the gross margin: the item costs $110 and we're selling it for $150. Is that above a healthy margin threshold?"}],"resultDescription":"Returns a deterministic JSON object containing gross profit (price minus cost), gross margin percentage, and profitability indicators — all computed locally with no external calls or data retention.","failureModes":["Missing required field (cost or price) returns a validation error","Non-numeric values for cost or price return a type error","Price of zero may cause division-by-zero handling in margin calculation","Negative cost or price values may return unexpected or undefined results"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, deterministic gross margin calculation as a preflight or analysis step inside an agent workflow — especially when you want stateless, local-only computation with no data retention. Prefer this over general-purpose LLM math when you need machine-readable JSON output, consistent precision, and a guaranteed formula rather than an approximated answer.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:44.187Z","isFirstParty":false}