{"uid":"cap_NAgMXclGPO5EK9WSZFe8d","slug":"math-expression-calculator-0281d8e8","name":"Math Expression Calculator","description":"Exact calculator + unit conversion (arbitrary precision). e.g. '3 inch to cm', 'sqrt(2)^10'. Send { expression, precision? }.","url":"https://x402-services-production.up.railway.app/api/calc","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bs5ku2d7xKMoj09gmzcIH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates mathematical expressions with optional unit support and configurable decimal precision","exampleAgentPrompt":"Can you calculate (17.5 * 3.14159) / (2^8 - 1) for me and give me the result to 6 decimal places?","exampleUseCases":[{"title":"High-precision financial arithmetic","prompt":"What is 1000000 * 0.000312 + (892.5 / 3.14159265), rounded to 4 decimal places?"},{"title":"Unit-aware engineering calculation","prompt":"Can you compute the expression (9.81 * 70 * 1.5) / 2 with 8 decimal places of precision?"},{"title":"Percentage and ratio computation","prompt":"Calculate (234567 / 1000000) * 100 to 2 decimal places so I know the percentage."}],"resultDescription":"Returns the evaluated numeric result of the input math expression, with output rounded to the specified number of decimal places (0–64). Likely returns a JSON object containing the computed value as a number or string.","failureModes":["Invalid or malformed expression returns a parse error","Division by zero causes an error response","Unsupported units or functions may return an error","Precision out of range (>64) may be rejected","Empty or missing expression field returns a 400-level error"],"whenToPreferThis":"Use this endpoint when you need server-side evaluation of a math expression with configurable high precision (up to 64 decimal places), especially when you don't want to trust client-side floating-point arithmetic. Useful for agents that need deterministic, precise computation without implementing a local math parser.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:03:01.829Z","isFirstParty":false}