# Basic Utils Agent – Statistics Mode

> Basic Utils Agent – Statistics Mode 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).

Calculates the mode (most frequently occurring value(s)) from a list of numeric values

## Facts

- Endpoint: POST https://basic-utils-agent.up.railway.app/statistics/mode
- 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-mode-75155303
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wan2kH5nm8GqA0FIORvDE

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-mode-75155303 -d '<json body>'
```

Example prompt: What is the mode of this dataset: [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]? I need to find which number appears most frequently.

## When to prefer this

Use this endpoint when you need a dedicated, fast, pay-per-call statistical mode computation without setting up your own math library. Ideal for AI agents that need on-demand descriptive statistics as part of a larger data analysis workflow, particularly when the agent does not have native math capabilities. Supports up to 10,000 data points per call, making it suitable for moderate-sized datasets.

## Known failure modes

- Empty array input may return an error or empty mode result
- Extremely large arrays (over 10,000 elements) will be rejected
- Non-numeric values in the array will cause a validation error
- Malformed request body will return a 400-level error
- All values equally frequent may return all values as mode or an empty result

## How this service works

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

## Output

Returns a JSON object with a 'mode' field containing an array of the most frequently occurring value(s) in the input dataset. If multiple values tie for most frequent, all are returned in the array.

## 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": {
  "mode": [
   3
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basic-utils-agent-statistics-mode-75155303/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)
