{"uid":"cap_J9zDSQUJ__yvvp2OTri2r","slug":"arithmetic-expression-evaluator-a43e0ff5","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/calc","method":"GET","headers":{},"bodySchema":null,"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_zMNwz2tMEX3dbdUeYUBnF","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 (15 + 7) * 3 - 2^4 modulo 10? Just evaluate that arithmetic expression and give me the number.","exampleUseCases":null,"resultDescription":"A JSON object containing a single 'result' field with the numeric value of the evaluated arithmetic expression. Response is deterministic — same expression always yields the same result.","failureModes":["Malformed or invalid expression returns an error response","Division by zero may return an error or infinity","Unsupported operators or functions beyond the supported set (+, -, *, /, %, ^) return an error","URL encoding issues with special characters like + (must be encoded as %2B) may cause incorrect parsing","Empty or missing expr parameter returns an error"],"whenToPreferThis":"Use this endpoint when you need to evaluate a user-provided or dynamically constructed arithmetic expression and want a deterministic, sandboxed result without executing arbitrary code. Ideal when the expression uses standard operators (+, -, *, /, %, ^) and parentheses. Prefer over general code execution for safety, speed, and simplicity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:43:32.808Z","isFirstParty":false}