# x402-toolbox Dice Roll

> x402-toolbox Dice Roll is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

Simulates a dice roll and returns a random result, paid per-call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/math/dice-roll?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-dice-roll-2602d4d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fo_1pGO-YktoizoC12VMR

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-toolbox-dice-roll-2602d4d7
```

Example prompt: Roll two six-sided dice for me right now — I need a random result for my board game.

## When to prefer this

Choose this endpoint when you need a trustless, no-signup dice roll computation paid via USDC micropayment on Base. Ideal for AI agents that need randomness in gaming, simulations, or decision-making scenarios and are already operating in the x402 payment ecosystem. Prefer this over free alternatives when operating in a pay-per-call agent framework where payment doubles as identity.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- Invalid or malformed schema parameter — may return an error or unexpected result
- Cloudflare Worker downtime — service unavailable 503
- Missing schema parameter — may default to a standard single d6 roll or return an error

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with ok:true, paid:true, and the dice roll result (e.g. face values, total) based on the requested dice schema.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-dice-roll-2602d4d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
