{"uid":"cap_MFtm-bOa71mna4Num74sz","slug":"agenttools-discount-calculator-de7dcd24","name":"AgentTools Discount Calculator","description":"Calculate the final sale price and the amount saved for any price and percent-off discount, with the working shown. Use this when an agent needs to sale price and savings from a percent off.","url":"https://agenttools-hub.vercel.app/api/v1/calculators/discount-calculator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["price","discount"],"properties":{"price":{"type":"number","description":"Original price"},"discount":{"type":"number","description":"Discount %"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_ayOBN_cEQchTfbVkrpb4C","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":"Calculates the final sale price and total savings for a given original price and percent-off discount, with working shown.","exampleAgentPrompt":"What's the final sale price and how much would I save on a $149.99 item that's 35% off? Show me the working.","exampleUseCases":[{"title":"Shopping deal savings check","prompt":"I found a jacket originally priced at $220 that's 40% off. What's the final price I'd pay and how much am I saving?"},{"title":"E-commerce checkout price display","prompt":"A customer has a $85.00 cart total and a 15% off coupon — what's the discounted total and the dollar amount saved?"},{"title":"Black Friday sale comparison","prompt":"There's a TV listed at $999 with a 25% off Black Friday discount. Can you calculate the sale price and total savings for me, with the math shown?"}],"resultDescription":"Returns the final sale price after applying the discount, the dollar amount saved, and the step-by-step working showing how the result was calculated.","failureModes":["Missing required 'price' query parameter returns an error","Missing required 'discount' query parameter returns an error","Non-numeric values for price or discount cause a validation error","Discount values outside 0-100 range may return an error or unexpected result","Network timeout or service unavailability on Vercel deployment"],"whenToPreferThis":"Use this endpoint when an agent needs to compute a percent-off discount — specifically when you want both the final sale price and the savings amount with calculation steps shown. Ideal for shopping assistants, e-commerce agents, or any workflow where a human-readable breakdown of the discount math is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:13.218Z","isFirstParty":false,"canonicalSlug":"agenttools-discount-calculator-de7dcd24"}