{"uid":"cap_dbwrE03vViqZoaHnCXnwQ","slug":"math-agentutil-net-5e9fdf6f","name":"math.agentutil.net Math Evaluator","description":"Evaluate a math expression","url":"https://math.agentutil.net/v1/evaluate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"variables":{"type":"object","description":"Optional variable values as key-value pairs","additionalProperties":{"type":"number"}},"expression":{"type":"string","description":"Math expression to evaluate (e.g. '2 + 3 * 4', 'sqrt(x)')"}}},"responseSchema":{"type":"object","required":["result","service","expression","request_id","variables_used","related_services"],"properties":{"result":{"type":"number"},"service":{"type":"string"},"expression":{"type":"string"},"request_id":{"type":"string"},"variables_used":{"type":"object","required":[],"properties":{}},"related_services":{"type":"array","items":{"type":"object","required":["url","name","description"],"properties":{"url":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}}}}}},"example":{"request":{"variables":{},"expression":"2 + 3 * 4"},"response":{"result":14,"service":"https://math.agentutil.net","expression":"2 + 3 * 4","request_id":"4e5d29ce-653e-44bf-9cde-0dd7c699bb28","variables_used":{},"related_services":[{"url":"https://verify.agentutil.net","name":"verify","description":"Fact verification against live data sources -- exchange rates, crypto, stocks, entities, geography"},{"url":"https://docs.agentutil.net","name":"docs","description":"Search pre-indexed platform documentation -- semantic vector search across 10+ platforms"},{"url":"https://think.agentutil.net","name":"think","description":"Intent security -- pre-flight safety checklists, instruction expansion, and post-action review for autonomous agents"},{"url":"https://convert.agentutil.net","name":"convert","description":"Unit conversion (80+ units), live currency rates, and encoding (base64, hex, URL)"},{"url":"https://weather.agentutil.net","name":"weather","description":"Current conditions and multi-day forecasts for any location worldwide via Open-Meteo"},{"url":"https://validate.agentutil.net","name":"validate","description":"Validate emails (RFC 5322), URLs, phone numbers (E.164), credit cards (Luhn), and JSON schemas"},{"url":"https://time.agentutil.net","name":"time","description":"Timezone conversion, current time in any timezone, date arithmetic, and epoch conversions"},{"url":"https://hash.agentutil.net","name":"hash","description":"Hash with MD5/SHA-256/SHA-512, encode/decode base64/hex/URL, generate UUIDs, identify hash algorithms"},{"url":"https://text.agentutil.net","name":"text","description":"Regex match/replace/extract, text diff, slugify, word count, and markdown/HTML/JSON transforms"},{"url":"https://geocode.agentutil.net","name":"geocode","description":"Forward geocoding (address to lat/lon), reverse geocoding (lat/lon to address), and haversine distance"},{"url":"https://dns.agentutil.net","name":"dns","description":"DNS record lookups (A/MX/TXT/NS), reverse DNS, WHOIS/RDAP domain data, and IP geolocation"},{"url":"https://undo.agentutil.net","name":"undo","description":"Reversibility intelligence -- check if actions can be undone, find safer alternatives, batch safety warnings"},{"url":"https://norm.agentutil.net","name":"norm","description":"Baseline reality checks -- statistical anomaly detection for values against published industry benchmarks"},{"url":"https://context.agentutil.net","name":"context","description":"Situational awareness -- timezone, holiday, business calendar, and platform status checks before taking action"}]}},"exampleRequest":{"variables":{},"expression":"2 + 3 * 4"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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_hsmRGrvD9IRmaTDL0Gwox","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a math expression (with optional variables) and returns the numeric result","exampleAgentPrompt":"Calculate the value of the expression '3 * x^2 + 2*x - 5' where x = 4, and give me the numeric result.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the numeric result of the evaluated expression, the original expression string echoed back, the variable values used in evaluation, a unique request ID, and a list of related agentutil services.","failureModes":["Invalid or unparseable expression returns an error","Division by zero in the expression may return an error or Infinity","Referencing an undefined variable without providing it in the variables map may fail or return NaN","Malformed JSON body returns a 400-level error","Payment not included or insufficient causes a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need to programmatically evaluate a math expression — especially one that contains variables whose values are known at runtime. Prefer it over a general-purpose LLM math answer when you need a deterministic, exact numeric result. It handles standard arithmetic, operator precedence, and common math functions like sqrt.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:37:20.320Z","isFirstParty":false}