{"uid":"cap_hbC7_dBd-tXcQIdqdU4tU","slug":"agenttools-percentage-calculator-37ebbdb7","name":"AgentTools Percentage Calculator","description":"Calculate X% of Y, what percent X is of Y, and the percent change between two values — with step-by-step working shown. Use this when an agent needs to percent of a number, ratios and percent change.","url":"https://agenttools-hub.vercel.app/api/v1/calculators/percentage-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":["x","y"],"properties":{"x":{"type":"number","description":"X"},"y":{"type":"number","description":"Y"},"op":{"enum":["percent_of","what_percent","change"],"type":"string","description":"Operation"}}}},"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_BKLeTJN7ioFQBNPQAydOt","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 X% of Y, what percent X is of Y, or the percent change between two values, with step-by-step working shown.","exampleAgentPrompt":"What is 18% of 250, and can you show me the step-by-step working?","exampleUseCases":[{"title":"Tip and discount shopping calculation","prompt":"What is 22% of 85? Show me the steps so I can double-check the math."},{"title":"Grade percentage on an exam","prompt":"What percent is 47 out of 60? I want to see how it's worked out."},{"title":"Price increase tracking","prompt":"What's the percent change from 1200 to 1450? I need to show the step-by-step working in a report."}],"resultDescription":"Returns the numeric result of the requested percentage operation along with step-by-step working that shows how the answer was derived, making it easy to verify or present the calculation.","failureModes":["Missing required parameters x or y returns an error","Invalid op enum value causes a bad request error","Non-numeric values for x or y result in a validation error","Division by zero scenarios (e.g. Y=0 for what_percent or percent_of) may return an error or undefined result"],"whenToPreferThis":"Choose this endpoint when you need a quick, verifiable percentage calculation — especially when the step-by-step working needs to be shown to a user or included in a report. Prefer it over general-purpose math tools when the operation is strictly one of: X% of Y, what percent X is of Y, or percent change between two values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:35:43.772Z","isFirstParty":false,"canonicalSlug":"agenttools-percentage-calculator-37ebbdb7"}