{"uid":"cap_SAV-iQAxHbWoq2oPrMi8W","slug":"dice-notation-parser-2d219372","name":"Dice Notation Parser","description":"Parse and validate tabletop dice expressions such as d20, 2d6 and 3d8+2 without rolling.","url":"https://x402-zoo.lolagent.workers.dev/api/dice-notation-parser","method":"GET","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iPoYJi2l3O_-5Hkq1urhA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and validates tabletop RPG dice notation expressions (e.g. d20, 2d6, 3d8+2) without rolling them, returning structured components.","exampleAgentPrompt":"Can you parse the dice notation '3d8+2' and tell me what the number of dice, die type, and modifier are?","exampleUseCases":[{"title":"Validating user dice input in a game","prompt":"A player typed '4d6-1' into my game's dice roller — can you parse that notation and confirm it's valid before I process the roll?"},{"title":"Explaining dice expressions to a newcomer","prompt":"My friend is new to D&D and doesn't understand what '2d6+3' means — can you break it down into its components so I can explain it to them?"},{"title":"Checking notation before building a probability calculator","prompt":"I want to calculate the probability distribution for 'd20', but first can you parse that notation so I know the die faces and any modifiers?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:43:09.576Z","isFirstParty":false}