# x402-zoo Dice Roller

> x402-zoo Dice Roller is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Rolls dice using standard tabletop notation (e.g. d20, 2d6, 3d8+2) and returns the result for RPGs, simulations, and randomized decisions.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/dice
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-zoo-dice-roller-2308917d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KwmWDceFWJ232kezJl32l

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 x402-zoo-dice-roller-2308917d
```

Example prompt: Roll 3d8+2 dice for me — I need the result for a tabletop RPG damage calculation.

## When to prefer this

Use this endpoint when you need a fast, cheap, standards-compliant dice roll using tabletop RPG notation (XdY+Z format) for games, simulations, probabilistic branching, or any randomized decision that maps cleanly to dice mechanics. Prefer this over a generic random number generator when the dice-notation semantics (multiple dice, modifiers) are needed.

## Known failure modes

- Invalid dice notation format returns an error (e.g. missing 'd', unsupported notation)
- Extremely large dice counts or sides may be rejected or time out
- Missing 'notation' query parameter may return an error or default behavior
- Network timeouts on the Cloudflare Worker edge

## How this service works

Roll dice such as d20, 2d6 or 3d8+2 for tabletop RPGs, simulations, probability sampling, games and randomized agent decisions.

## Output

Returns the outcome of the dice roll in the requested notation, including the total result and potentially individual die values, computed using standard tabletop RPG dice rules.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "notation": {
       "type": "string",
       "description": "Dice notation, e.g. d20 or 3d6+2"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-zoo-dice-roller-2308917d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
