# Agent Dev Tools – Dice Roller

> Agent Dev Tools – Dice Roller is a paid API for AI agents from agent-dev-tools.frcompanycheck.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Rolls dice using standard tabletop notation (e.g. 2d6+3, 4d6kh3) and returns individual rolls, kept dice, modifier, and total

## Facts

- Endpoint: GET https://agent-dev-tools.frcompanycheck.workers.dev/v1/dice?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-dev-tools-dice-roller-8719d8cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bTPZlaK_xK99-CmhRaUR5

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-dev-tools-dice-roller-8719d8cc
```

Example prompt: Roll 4d6 keep highest 3 for me — I'm generating D&D character ability scores.

## When to prefer this

Use this endpoint when you need stateless, instant dice rolling with standard tabletop notation support (including keep-highest selectors like 4d6kh3) and no setup — no API key, no account, just pay $0.001 USDC per call via x402. Ideal for AI agents running tabletop RPG logic, simulations, or any workflow needing dice semantics rather than raw uniform random numbers.

## Known failure modes

- Invalid or malformed dice notation returns an error (not charged)
- Missing required 'notation' query parameter returns an error (not charged)
- Unsupported notation variants may not parse correctly
- Network timeout on Cloudflare Worker edge (rare)

## How this service works

Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.

## Output

A JSON object containing: the original notation string, an array of all individual die rolls, an array of kept dice (after any keep-highest/keep-lowest selector), the numeric modifier, and the final total (sum of kept dice plus modifier).

## 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": [
      "notation"
     ],
     "properties": {
      "notation": {
       "type": "string",
       "example": "2d6+3",
       "description": "e.g. 1d20, 2d6+3, 4d6kh3, 3d8-1"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "kept": [
   4,
   6
  ],
  "rolls": [
   4,
   6
  ],
  "total": 13,
  "modifier": 3,
  "notation": "2d6+3"
 }
}
```

## More

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