# math.agentutil.net Math Evaluator

> math.agentutil.net Math Evaluator is a paid API for AI agents from math.agentutil.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Evaluates a math expression (with optional variables) and returns the numeric result

## Facts

- Endpoint: POST https://math.agentutil.net/v1/evaluate
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/math-agentutil-net-5e9fdf6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dbwrE03vViqZoaHnCXnwQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability math-agentutil-net-5e9fdf6f -d '<json body>'
```

Example prompt: Calculate the value of the expression '3 * x^2 + 2*x - 5' where x = 4, and give me the numeric result.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Evaluate a math expression

## Output

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.

## Example request

```json
{
 "variables": {},
 "expression": "2 + 3 * 4"
}
```

## Request schema (JSON Schema)

```json
{
 "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)')"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/math-agentutil-net-5e9fdf6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from math.agentutil.net](https://www.zero.xyz/host/math.agentutil.net/llms.txt)
