{"uid":"cap_LPCidX4fFL33fkPtY-_le","slug":"agent402-tools-percentage-helper-acdeaf92","name":"agent402.tools Percentage Helper","description":"Percentage helper. op: \"of\" (a% of b), \"change\" (% change a→b), \"ratio\" (a is what % of b).","url":"https://agent402.tools/api/percentage","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"number"},"b":{"type":"number"},"op":{"type":"string","description":"of | change | ratio"}}},"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_HouLm6y6_hIr_5e2ob3uw","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":"Computes percentage operations: percentage of a value, percentage change between two values, or ratio of one value to another.","exampleAgentPrompt":"What is the percentage change from 80 to 120? Use the 'change' operation with a=80 and b=120.","exampleUseCases":null,"resultDescription":"A computed percentage result based on the selected operation: either 'of' (a% of b), 'change' (percentage change from a to b), or 'ratio' (a is what percentage of b). Returns a numeric percentage value.","failureModes":["Missing required fields a, b, or op returns a 4xx error","Invalid op value (not 'of', 'change', or 'ratio') may return an error or unexpected result","Division by zero when b=0 for 'ratio' or 'change' operations","Non-numeric values for a or b cause schema validation failure"],"whenToPreferThis":"Use this endpoint when you need a simple, reliable percentage calculation without writing custom math logic. Ideal for automation workflows where percentage computations must be consistent and auditable. Prefer over ad-hoc code when operating in an agent pipeline that already uses the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.138Z","isFirstParty":false}