Math Expression Evaluator (math.js)
mathjs/evaluate
Evaluates one math expression with math.js and returns the result as text. Supports arithmetic, functions (sqrt, sin, log, round), constants (pi, e), unit arithmetic and conversion (12.7 cm to inch), matrices and complex numbers. The expression is at most 500 characters; precision optionally sets the number of significant digits (1 to 16). The same expression always gives the same result. An expression the parser cannot read is refused as a bad request. Computed by the math.js API, served by Eden Engine; not an official math.js product.
Price
$0.0026 per call
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $0.50.
Data source
Expression results computed by the math.js API (api.mathjs.org), passed through unmodified. Served by Eden Engine; not an official math.js product.
Use it
Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.
Connect once and your AI can find and run this tool, and any other it needs.
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "mathjs/evaluate" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "mathjs/evaluate" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "mathjs/evaluate", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "mathjs/evaluate", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per call | $0.0026 |
- Updated
- Oct 25, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"expr"
],
"properties": {
"expr": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "The expression to evaluate, for example 2*(7-3) or 12.7 cm to inch. At most 500 characters."
},
"precision": {
"type": "integer",
"maximum": 16,
"minimum": 1,
"description": "Optional number of significant digits in the result, 1 to 16."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"required": [
"result",
"error"
],
"properties": {
"error": {
"type": [
"string",
"null"
],
"description": "null on success."
},
"result": {
"type": [
"string",
"null"
],
"description": "The result as text, for example 8 or 7.07107 inch."
}
}
}