{"uid":"cap_2EE72Y-mTjMLBCLqlwo2I","slug":"basic-utils-agent-calculator-6e1829eb","name":"Basic Utils Agent – Calculator","description":"A versatile utility agent offering calculator, statistics, datetime, and unit conversion services.","url":"https://basic-utils-agent.up.railway.app/calculator","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"expression":{"type":"string","description":"Mathematical expression to evaluate (e.g., '2+2', '10*5')"}}},"responseSchema":{"type":"json","example":{"result":12,"expression":"2+2*5"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lyAbsSABFJ3f6qKOEaz-Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates a mathematical expression string and returns the numeric result","exampleAgentPrompt":"Can you calculate the result of (15 * 4) + (100 / 5) for me?","exampleUseCases":[{"title":"Quick arithmetic for invoice totals","prompt":"I have 3 line items: 45 times 12, plus 30 times 8, plus 100 — can you calculate the total for me?"},{"title":"Percentage discount calculation","prompt":"What is 250 minus 15% of 250? Can you work that out so I know the discounted price?"},{"title":"Engineering formula evaluation","prompt":"Can you evaluate (9.8 * 70) / (2 * 3.14159) for me? I need the numeric answer for a quick physics check."}],"resultDescription":"Returns a JSON object containing the evaluated numeric result and the original expression string, e.g. {\"result\": 12, \"expression\": \"2+2*5\"}. The result respects standard mathematical operator precedence.","failureModes":["Invalid or malformed expression string returns an error — e.g. unbalanced parentheses or unsupported operators","Division by zero in expression may return an error or infinity value","Non-numeric characters outside of valid operators may cause evaluation failure","Empty expression field likely returns a validation error","Very large or complex nested expressions may exceed evaluation limits"],"whenToPreferThis":"Use this endpoint when you need a lightweight, cheap ($0.0015 USDC) server-side expression evaluator that handles standard arithmetic expressions passed as strings. Prefer it over calling a local math library when operating in an agent context that already pays via x402 micropayments, or when a quick remote calculation is needed without spinning up compute. Not suitable for symbolic algebra, calculus, or statistical computations — use sibling endpoints on the same host for statistics or unit conversion needs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:43:48.875Z","isFirstParty":false}