# Agent Data Tools: Dice Roller

> Agent Data Tools: Dice Roller is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Rolls dice using standard RPG notation (e.g. 2d6+3) and returns individual roll results, total, and modifier

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/dice?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-dice-roller-b47e98b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fw-620oeR1R7m39uuyG9F

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 agent-data-tools-dice-roller-b47e98b1
```

Example prompt: Roll 2d6+3 for me using the dice tool and tell me what I got on each die and the total.

## When to prefer this

Choose this endpoint when you need a deterministic, pay-per-call dice simulation with standard RPG notation support (XdY+Z) as part of a larger agent workflow, especially if you are already using Agent Data Tools for crypto, web, or utility functions and want a single unified payment method (USDC on Base via x402) without managing API keys.

## Known failure modes

- Invalid dice notation string returns an error
- Zero or negative die count or sides may return an error or undefined behavior
- Very large dice counts or sides may exceed limits
- Missing required roll parameter returns an error

## How this service works

Roll dice in standard notation such as 2d6+3 or 1d20, up to 100 dice of up to 1000 sides, with a cryptographic random source. Returns every roll, the modifier and the total. Use for tabletop games and simulations.

## Output

Returns a JSON object with the original dice notation string (e.g. '2d6+3'), an array of individual roll values, the total sum including any modifier, and the modifier value separately.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "roll": {
   "type": "string",
   "description": "Dice notation, e.g. 2d6+3 (default 1d6)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "roll": {
   "type": "string"
  },
  "rolls": {
   "type": "array",
   "items": {
    "type": "number"
   }
  },
  "total": {
   "type": "number"
  },
  "modifier": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-dice-roller-b47e98b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
