# Dice Notation Parser

> Dice Notation Parser 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).

Parses and validates tabletop RPG dice notation expressions (e.g. d20, 2d6, 3d8+2) without rolling them, returning structured components.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/dice-notation-parser
- 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/dice-notation-parser-2d219372
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SAV-iQAxHbWoq2oPrMi8W

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 dice-notation-parser-2d219372
```

Example prompt: Can you parse the dice notation '3d8+2' and tell me what the number of dice, die type, and modifier are?

## When to prefer this

Choose this endpoint when you need to parse and validate dice notation strings without actually simulating a roll — ideal for input validation, display formatting, probability setup, or teaching users what a dice expression means. Prefer this over a full dice roller when you only need the structure, not a random result.

## Known failure modes

- Malformed or unrecognized notation string returns a validation error
- Missing 'notation' query parameter causes a 400 bad request
- Non-standard extensions beyond XdY+Z format may not be supported
- Empty string input likely returns invalid/error response

## How this service works

Parse and validate tabletop dice expressions such as d20, 2d6 and 3d8+2 without rolling.

## Output

A structured breakdown of the dice notation expression, including the number of dice, the number of faces on each die, and any numeric modifier (e.g. +2 or -1), along with a validity flag indicating whether the notation is well-formed.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dice-notation-parser-2d219372/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)
