# SignalDesk AI – Median Calculator

> SignalDesk AI – Median 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 statistical median from an array of up to 1000 numeric observations

## Facts

- Endpoint: POST https://x402-agent.kariguetoazul.workers.dev/api/stats/median?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-median-calculator-c649f0f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_On8JfiLi4AIeO-3B43zjz

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-median-calculator-c649f0f3 -d '<json body>'
```

Example prompt: What's the median of these numbers: 3, 7, 2, 9, 4, 1, 8, 5, 6?

## When to prefer this

Choose this endpoint when you need a quick, paid, serverless median computation over up to 1000 numeric values without running local code. Useful in agent pipelines where statistical summarization is needed as a discrete step and you want a reliable external computation rather than inline code execution.

## Known failure modes

- Empty array or missing 'values' field returns a validation error
- Array exceeds 1000 items returns a rejection (maxItems constraint)
- Values outside the allowed range (-1e15 to 1e15) are rejected
- Non-numeric values in the array cause a schema validation failure
- Payment failure (x402) results in a 402 response before computation

## 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 single 'median' field containing the computed median value as a number (e.g. {"median": 2.5}). For odd-length arrays, this is the middle value; for even-length arrays, the average of the two middle values.

## 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": {
  "median": 2.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signaldesk-ai-median-calculator-c649f0f3/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)
