# Basic Utils Agent – Statistics Mean

> Basic Utils Agent – Statistics Mean is a paid API for AI agents from basic-utils-agent.up.railway.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Computes the arithmetic mean (average) of a provided list of numeric values.

## Facts

- Endpoint: POST https://basic-utils-agent.up.railway.app/statistics/mean
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basic-utils-agent-statistics-mean-d82f95e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v_J9ELbFHbjpql3TXGdga

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 basic-utils-agent-statistics-mean-d82f95e4 -d '<json body>'
```

Example prompt: Can you calculate the arithmetic mean of these numbers for me: 4, 7, 13, 2, 19, 8, 5?

## When to prefer this

Choose this endpoint when you need a quick, low-cost computation of the arithmetic mean for a numeric dataset up to 10,000 values. Ideal for agents performing lightweight statistical summaries without needing a full statistics library or heavy computation environment. Prefer over general-purpose code execution when a fast, dedicated mean calculation with a clean JSON response is required.

## Known failure modes

- Empty array input may return an error or undefined result
- Non-numeric values in the array will cause a validation error
- Array exceeding 10,000 elements will be rejected
- Malformed JSON body returns a 400 Bad Request
- Network or server unavailability returns a 5xx error

## How this service works

A versatile utility agent offering calculator, statistics, datetime, and unit conversion services.

## Output

Returns a JSON object containing a single 'mean' field with the arithmetic average of the input array as a numeric value (e.g. {"mean": 3}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "List of numeric values for statistical analysis. Maximum length: 10000"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basic-utils-agent-statistics-mean-d82f95e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from basic-utils-agent.up.railway.app](https://www.zero.xyz/host/basic-utils-agent.up.railway.app/llms.txt)
