{"uid":"cap_W7OffmJerjB8Oig5opgPU","slug":"agenttools-percentage-calculator-b26131d3","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://agentstoolshub.com/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.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_oEjDa-8KQ2S8CCyi6UzU8","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 X% of Y, what percent X is of Y, and percent change between two values, with step-by-step working shown","exampleAgentPrompt":"What is 17.5% of 340, and can you show me the working step by step?","exampleUseCases":[{"title":"Discount percentage on sale price","prompt":"A product originally cost $85 and is now $68 — what percentage discount is that? Show me the working."},{"title":"Grade score as class percentage","prompt":"A student scored 43 out of 60 on an exam. What percent is that of the total marks?"},{"title":"Revenue growth percent change","prompt":"Our revenue went from $120,000 last quarter to $154,000 this quarter. What's the percentage change, with the calculation steps?"}],"resultDescription":"Returns the numeric result of the requested percentage operation along with step-by-step working that shows how the answer was derived, making the calculation transparent and verifiable.","failureModes":["Missing required x or y query parameters returns a validation error","Invalid op enum value returns an error listing accepted operations","Division by zero scenario (e.g. Y=0 for percent_of) may return an error or undefined result","Non-numeric values for x or y are rejected with a schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a reliable, auditable percentage calculation with step-by-step working shown — especially useful when the agent needs to explain the math to a user. Supports three distinct operations: computing X% of Y, finding what percent X is of Y, and calculating percent change between two values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:50:31.939Z","isFirstParty":false,"canonicalSlug":"agenttools-percentage-calculator-b26131d3"}