{"name":"dice-roll","description":"Rolls dice from standard dice notation for tabletop RPGs. Evaluates XdY, flat modifiers (+/-), and keep-highest / keep-lowest (4d6kh3 for stat rolls, 2d20kh1 / 2d20kl1 for advantage/disadvantage). Returns each individual die, which were kept vs dropped, the per-roll total, and the grand total; roll the whole expression up to 100 times with 'rolls'. Pass 'seed' for reproducible output. Use it as a dice roller API, dice notation evaluator, or tabletop random roll engine.","price":"$0.005","method":"POST","input_schema":{"properties":{"notation":{"type":"string","description":"Dice notation: 1d20, 3d6+2, 4d6kh3 (keep highest 3), 2d20kl1 (keep lowest 1)."},"rolls":{"type":"number","description":"How many times to evaluate the whole expression. 1-100, default 1."},"seed":{"type":"number","description":"Optional integer seed for reproducible rolls."}},"required":["notation"]},"input_example":{"notation":"4d6kh3","rolls":6,"seed":42},"output_example":{"notation":"4d6kh3","parsed":{"count":4,"sides":6,"keep":{"mode":"h","n":3},"modifier":0},"rolls":[{"dice":[4,3,6,5],"kept":[4,6,5],"dropped":[3],"modifier":0,"total":15}],"grand_total":15,"range":{"min":3,"max":18}},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}