# SignalDesk AI – Statistical Mode Calculator

> SignalDesk AI – Statistical Mode Calculator is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Computes the mode(s) and their frequency from an array of up to 1000 numeric observations

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/stats/mode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signaldesk-ai-statistical-mode-calculator-1f593452
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MO61oOOnhJKNmaTuXuV4x

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 signaldesk-ai-statistical-mode-calculator-1f593452 -d '<json body>'
```

Example prompt: What's the mode of these numbers: [2, 3, 3, 4, 5, 2, 3, 7, 2, 3]? I want to know which value appears most often and how many times it shows up.

## When to prefer this

Use this endpoint when you need a fast, paid, pay-per-call statistical mode computation on up to 1000 numeric observations without setting up your own compute infrastructure. Prefer it over general-purpose code execution when you want a deterministic, bounded-cost API call with a clear JSON response including multimodal support (ties). Ideal for agents that need lightweight descriptive statistics as a building block without spinning up a full analytics pipeline.

## Known failure modes

- Empty array input returns validation error (minItems:1 not met)
- Array exceeds 1000 items returns error (maxItems:1000)
- Non-numeric or non-finite values (NaN, Infinity) may be rejected
- Values outside ±1,000,000,000,000,000 range are rejected
- Payment not provided or insufficient USDC returns 402 error
- Network timeout on Cloudflare Worker edge

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

Returns a JSON object with a 'modes' array containing all values that appear most frequently (supports multimodal datasets), and a 'frequency' integer indicating how many times each mode value occurs in the input.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number",
    "maximum": 1000000000000000,
    "minimum": -1000000000000000
   },
   "maxItems": 1000,
   "minItems": 1,
   "description": "Up to 1000 finite observations."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "modes": [
   2,
   3
  ],
  "frequency": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-statistical-mode-calculator-1f593452/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
