{"uid":"cap_VJCrXJFco4sh7IRS45yzt","slug":"arithmetic-expression-evaluator-d95deeea","name":"Arithmetic Expression Evaluator","description":"Arithmetic expression evaluator (+ - * / % ^ and parentheses). GET /calc?expr=(2%2B3)*4 → {result}. Deterministic JSON, instant, no code execution.","url":"https://aniccanomac-mini-1.tail7a0ba4.ts.net:10000/calc","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":["expr"],"properties":{"expr":{"type":"string","description":"arithmetic expression"}}}},"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_iC-CV0slFcALCMm0Phb-Q","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":"Evaluates arithmetic expressions (supporting +, -, *, /, %, ^, and parentheses) and returns the numeric result as JSON","exampleAgentPrompt":"What is the result of (150 * 3.5) + 200 / 4 - 18 ^ 2? Just evaluate that arithmetic expression for me.","exampleUseCases":null,"resultDescription":"A JSON object containing a 'result' field with the numeric value of the evaluated arithmetic expression, returned instantly and deterministically.","failureModes":["Invalid or malformed expression returns an error response","Division by zero may return error or infinity","Unsupported operators or functions not in the supported set cause parse failures","URL-encoding issues with special characters (e.g. + must be %2B) can cause incorrect parsing"],"whenToPreferThis":"Choose this endpoint when you need fast, deterministic evaluation of arithmetic expressions without executing arbitrary code. Ideal for formula evaluation in agent workflows where you want a sandboxed, side-effect-free numeric computation. Prefer over LLM-based math when exactness and reliability matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:34:33.661Z","isFirstParty":false}