{"uid":"cap_G5hUfDH-4Ulm9DRi6Id1u","slug":"coco-percentage-calculator-37b99c68","name":"CoCo Percentage Calculator","description":"Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.","url":"https://cocoeatsai.com/area4/agent/tools/percent?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"enum":["GET"]},"queryParams":{"type":"object","properties":{"a":{"type":"string"},"b":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"const":"json"},"example":{"type":"object","required":["result"],"properties":{"result":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"result":10,"explain":"10.0% of 100.0"},"exampleNote":"Computed offline with demonstration inputs; time/random values are illustrative."},"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_uhlEJLdpYf1O4R4hoIEgw","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 the percentage of one number relative to another, returning the numeric result and an explanation string.","exampleAgentPrompt":"What percentage is 45 out of 180? Use a=45 and b=180 to get the result.","exampleUseCases":[{"title":"Discount percentage at checkout","prompt":"I paid $35 for something originally $140 — what percentage of the full price did I pay? Use 35 as a and 140 as b."},{"title":"Test score as a percentage","prompt":"My student got 73 questions right out of 95 total — what percentage did they score? Calculate using a=73 and b=95."},{"title":"Budget spend rate","prompt":"I've spent $4,200 of my $10,000 monthly budget so far — can you tell me what percentage of the budget that is? Use a=4200 and b=10000."}],"resultDescription":"A JSON object containing a numeric 'result' field (the percentage value, e.g. 10 meaning 10%) and an optional 'explain' string that spells out the computation in plain language (e.g. '10.0% of 100.0').","failureModes":["Missing required query params 'a' or 'b' returns an error or undefined result","Division by zero if b=0 may return an error or null result","Non-numeric strings passed as a or b may cause a parse error","Invalid 'mode' value may fall back to default or return an error"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid, on-demand percentage computation with a built-in human-readable explanation. Useful in agent workflows where arithmetic results need to be surfaced to end users with a clear textual explanation, or when you want to offload math to an external service rather than computing inline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:43:45.641Z","isFirstParty":false,"canonicalSlug":"coco-percentage-calculator-37b99c68"}