---
name: "xpay-math-mean"
description: "Calculates the arithmetic mean of a list of numbers"
version: "1.0.0"
price: "$0.01/call"
provider: "Math"
---

# Mean

Calculates the arithmetic mean of a list of numbers

**Provider:** Math
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to calculates the arithmetic mean of a list of numbers. This is part of the Math provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 21+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("math/mean")`
2. **`xpay_run`** — Execute: `xpay_run("math/mean", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `numbers` | array | Yes | Array of numbers to find the mean of |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Math (all tools)](https://xpay.tools/skills/math/SKILL.md) — 22 tools
- [Add](https://xpay.tools/skills/math/add/SKILL.md) — $0.01/call
- [Subtract](https://xpay.tools/skills/math/subtract/SKILL.md) — $0.01/call
- [Multiply](https://xpay.tools/skills/math/multiply/SKILL.md) — $0.01/call
- [Division](https://xpay.tools/skills/math/division/SKILL.md) — $0.01/call
- [Sum](https://xpay.tools/skills/math/sum/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/math/mean/
- Provider: https://xpay.tools/math/
- All tools: https://xpay.tools/explore
