{"uid":"cap_QnK22JiRrqsOw_BO2xZd_","slug":"writerslogic-verifiable-dice-roll-6aeed53c","name":"WritersLogic Verifiable Dice Roll","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/dice-roll?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"seed":{"type":"string","maxLength":200,"minLength":1,"description":"Caller seed string. Public: the outcome is a pure function of notation and seed."},"notation":{"type":"string","maxLength":200,"minLength":1,"description":"Dice notation: terms of NdM (N 1-100, M 2-1000) or integers joined by + and -; optional kh/kl/dh/dl with a count on a group. At most 20 groups and 1000 dice."},"expectRolls":{"type":"array","items":{"type":"integer","maximum":1000,"minimum":1,"description":"A claimed face."},"maxItems":1000,"description":"Optional claimed faces in notation order, before keep/drop marks."},"expectTotal":{"type":"integer","maximum":100000000,"minimum":-100000000,"description":"Optional claimed total to verify."},"includeTranscript":{"type":"boolean","description":"Default true. False drops blocks and draws (the transcript digest stays)."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DTbZXQme8uOuz5oYsB3dN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rolls dice notation deterministically from a caller-supplied seed using a documented SHA-256 counter-mode stream, returning all die results, keep/drop marks, and a verifiable transcript anyone can re-derive.","exampleAgentPrompt":"Roll 4d6kh3+2 for me using the seed 'session-42-player-wizard' and give me the full transcript so the referee can re-derive and verify every die.","exampleUseCases":[{"title":"Tabletop RPG character stat generation","prompt":"Roll 6 sets of 4d6kh3 using seed 'campaign2025-char-alice' and show me all the dice and kept values so the dungeon master can verify nothing was fudged."},{"title":"Verifiable NPC loot table roll","prompt":"Roll 1d100 with seed 'loot-room4-encounter7' and include the full transcript — I need to prove to the other players that the loot was determined fairly."},{"title":"Claimed roll audit for tournament play","prompt":"Someone claimed they rolled 3d6+4 and got a total of 17 using seed 'tourney-round3-seat5' — can you re-derive the roll and check if that total holds up?"}],"resultDescription":"Returns each individual die face value in notation order, keep/drop markers per die group, the computed total, a SHA-256 transcript digest, and optionally the full draw transcript blocks. If expectTotal or expectRolls were supplied, also returns a boolean match result for each claimed value against the re-derived outcome.","failureModes":["Unsupported notation features (exploding dice, rerolls, success counting, d%, fudge dice) return an error","Notation exceeding 20 groups or 1000 dice returns a validation error","Seed exceeding 200 characters or notation exceeding 200 characters rejected","expectRolls array length mismatching actual dice count returns a mismatch error","Malformed dice notation string returns a parse error","Payment not provided or insufficient USDC returns 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a reproducible, auditable dice roll that any party can independently re-derive — for example in tabletop RPG refereeing, tournament play adjudication, or any scenario where roll transparency and verifiability matter more than cryptographic unpredictability. Do NOT use it when you need true randomness for security or gambling, as the seed is public and the outcome is fully deterministic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:32:10.363Z","isFirstParty":false,"canonicalSlug":"writerslogic-verifiable-dice-roll-6aeed53c"}