{"uid":"cap_W_MvCEJcosYFAYqIBsBSt","slug":"24klabs-percentage-calculator-717a0960","name":"24KLabs Percentage Calculator","description":"Percent-of, percent-change, tip, and X-is-what-percent-of-Y in one endpoint.","url":"https://api.24klabs.ai/api/v1/percentage-calc","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string"},"to":{"type":"number"},"from":{"type":"number"}}},"responseSchema":{"type":"json","example":{"result":25}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qX6GsRm2PC8ZWC34XVW_l","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs percentage computations including percent-of, percent-change, tip calculation, and X-is-what-percent-of-Y in a single endpoint.","exampleAgentPrompt":"What is 18% of 340, and also what percentage change is that from the original 340 if I add 18% to get the new value?","exampleUseCases":[{"title":"Restaurant tip calculation","prompt":"I just had dinner and my bill came to $94.50 — can you calculate an 18% tip and tell me the total I should pay?"},{"title":"Sales growth percentage check","prompt":"Our revenue went from $82,000 last quarter to $97,500 this quarter — what's the percentage change?"},{"title":"Budget allocation percentage","prompt":"I have a $3,200 monthly budget and I spent $480 on groceries — what percentage of my total budget is that?"}],"resultDescription":"Returns the computed numeric result for the requested percentage operation, including the calculated percentage value, derived amount, or ratio depending on the operation type (percent-of, percent-change, tip, or what-percent-of).","failureModes":["Missing or non-numeric input values return a 400 validation error","Invalid or unsupported calculation type returns an error indicating valid operation types","Division by zero scenarios (e.g. base value of 0 for what-percent) return an error or undefined result","Malformed JSON body results in a 400 parse error"],"whenToPreferThis":"Choose this endpoint when an agent needs quick, reliable percentage math without implementing arithmetic logic itself — especially useful for financial summaries, tip calculations, growth metrics, or ratio analysis in a single standardized call. Prefer it over general-purpose code execution when you want a deterministic, low-latency math result with a predictable response shape.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:06.506Z","isFirstParty":false}