{"uid":"cap_4IbKVDjBfWs5cJaF8_dKh","slug":"agenttools-discount-calculator-5c5c2fc0","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://agentstoolshub.com/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.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3UKT75Bed1iN6mCz11Xdh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 with 35% off? Show me the working.","exampleUseCases":[{"title":"Retail product discount check","prompt":"I'm looking at a jacket that costs $189.99 and it's 25% off — what's the final price I'd pay and how much am I saving?"},{"title":"Flash sale savings comparison","prompt":"There's a flash sale with 40% off a $250 item. Can you calculate the discounted price and total savings for me?"},{"title":"Coupon value verification","prompt":"I have a 15% off coupon for a $64.95 purchase — what will my final price be and what's the dollar amount I'll save?"}],"resultDescription":"Returns the calculated sale price after the discount is applied, the dollar amount saved, and a breakdown of the working showing how the discount was computed from the original price and percentage.","failureModes":["Missing required 'price' or 'discount' query parameters returns a 400 error","Non-numeric values for price or discount cause validation errors","Discount values outside 0–100 range may return errors or unexpected results","Network or server timeouts returning 5xx errors","Payment failure (402) if USDC balance is insufficient for the $0.002 per-call fee"],"whenToPreferThis":"Use this endpoint when you need to compute a sale price and savings amount from a percent-off discount with the calculation steps shown. Ideal for e-commerce agents, shopping assistants, or any workflow that needs to present discount math transparently to a user rather than just returning a bare number.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:40.565Z","isFirstParty":false,"canonicalSlug":"agenttools-discount-calculator-5c5c2fc0"}