# agent402.tools Descriptive Statistics

> agent402.tools Descriptive Statistics is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes descriptive statistics (count, sum, mean, median, mode, min, max, range, variance, stddev, percentiles) for an array of numbers.

## Facts

- Endpoint: POST https://agent402.tools/api/stats
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-descriptive-statistics-0c49beaa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_stXXTbvkCp8ko9qQ2ripQ

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 agent402-tools-descriptive-statistics-0c49beaa -d '<json body>'
```

Example prompt: Can you calculate the full descriptive statistics — mean, median, standard deviation, variance, min, max, and percentiles — for this array of numbers: [4, 7, 2, 9, 1, 5, 8, 3]?

## When to prefer this

Choose this endpoint when you need a comprehensive statistical summary of a numeric dataset in a single call, rather than computing individual statistics separately. Ideal for agents that need to report or reason about distributions without running local computation.

## Known failure modes

- Empty or missing array input returns an error
- Non-numeric values in the array cause a validation error
- Malformed JSON body returns a 400 bad request
- Payment failure via x402 protocol prevents execution

## How this service works

Descriptive statistics for an array of numbers: count, sum, mean, median, mode, min, max, range, variance, stddev, and percentiles.

## Output

A JSON object containing count, sum, mean, median, mode, min, max, range, variance, standard deviation, and percentile values computed from the input array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "numbers"
     ],
     "properties": {
      "numbers": {
       "description": "Array of numbers"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "count",
      "mean",
      "median",
      "stddev"
     ],
     "properties": {
      "mean": {
       "type": "integer"
      },
      "count": {
       "type": "integer"
      },
      "median": {
       "type": "number"
      },
      "stddev": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 5,
  "count": 8,
  "median": 4.5,
  "stddev": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-descriptive-statistics-0c49beaa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
