{"uid":"cap_ZJw2v22FBJeFTygOTgRw-","slug":"trusted-agent-market-snapshot-dice-roll-x402-9707800e","name":"Trusted Agent Market Snapshot — Dice Roll (x402)","description":"Agent-market demand snapshot API. Pay $0.01 USDC via x402 for category demand scores across defi, nft, infra, social, and analytics, or $0.03 per category for the named services behind it.","url":"https://trusted-x402.compose.land/v1/utilities/dice-roll?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["notation"],"properties":{"seed":{"type":"string","description":"Optional seed for reproducible output."},"rolls":{"type":"integer","description":"How many times to evaluate the expression. Default 1."},"notation":{"type":"string","description":"Dice notation: [count]d<sides>[kh|kl<n>][+|-<mod>], e.g. 2d6+3, 4d6kh3, 2d20kl1. URL-encode + as %2B."}}},"responseSchema":{"type":"object","required":["generated_at","notation","parsed","rolls_requested","results","grand_total","meta"],"properties":{"meta":{"type":"object"},"seed":{"type":["string","null"]},"parsed":{"type":"object","required":["dice","sides","modifier"],"properties":{"dice":{"type":"number"},"keep":{"type":["object","null"],"properties":{"mode":{"enum":["highest","lowest"],"type":"string"},"count":{"type":"number"}}},"sides":{"type":"number"},"modifier":{"type":"number"}}},"results":{"type":"array","items":{"type":"object","required":["roll","dice","kept","dropped","subtotal","modifier","total"],"properties":{"dice":{"type":"array","items":{"type":"number"},"description":"Every die rolled."},"kept":{"type":"array","items":{"type":"number"}},"roll":{"type":"number","description":"1-based index of this evaluation."},"total":{"type":"number","description":"subtotal + modifier."},"dropped":{"type":"array","items":{"type":"number"},"description":"Dice discarded by kh/kl keep notation."},"modifier":{"type":"number"},"subtotal":{"type":"number","description":"Sum of kept dice, before the modifier."}}}},"notation":{"type":"string","description":"Canonical form of the parsed notation."},"grand_total":{"type":"number","description":"Sum of every roll's total."},"generated_at":{"type":"string"},"notation_input":{"type":"string","description":"Notation exactly as supplied."},"rolls_requested":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2JjZijzHaunOfOzBBtkqt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rolls dice using standard notation (e.g. 2d6+3, 4d6kh3) and returns detailed per-roll breakdowns including kept/dropped dice and totals, paid via x402 micropayment.","exampleAgentPrompt":"Roll 4d6 keep highest 3, six times over, with seed 'hero42' so I can generate reproducible D&D character stats.","exampleUseCases":[{"title":"D&D character stat generation","prompt":"Roll 4d6 keeping the highest 3 dice, 6 times, using seed 'paladin99' so I get reproducible ability scores for my D&D character."},{"title":"Advantage roll for tabletop combat","prompt":"Roll 2d20 keep highest 1 for an advantage check, and add a +5 modifier — I need to see the full breakdown of both dice."},{"title":"Batch damage rolls with modifier","prompt":"Roll 3d6+2 five times in a row so I can simulate consecutive attack damage rolls and see the grand total."}],"resultDescription":"Returns a JSON object with the canonical notation string, parsed dice/sides/modifier breakdown, an array of per-roll results (each with all dice rolled, kept dice, dropped dice, subtotal, modifier, and total), the grand total across all rolls, a timestamp, and optional seed echo.","failureModes":["Invalid dice notation string returns a parse error","Missing required 'notation' field returns 400-equivalent error","Payment not provided or insufficient causes x402 payment-required response","Unsupported notation modifiers may cause parsing failures","Seed value mismatch or type error may return unexpected output"],"whenToPreferThis":"Choose this endpoint when you need a paid, auditable, server-side dice roll with full breakdown of kept/dropped dice and support for standard tabletop RPG notation (e.g. kh/kl keep mechanics, modifiers). Prefer it over client-side randomization when reproducibility via seed and a trusted third-party result are required. The x402 micropayment model makes it suitable for agent-to-agent or automated pipelines needing verifiable random outcomes.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:36:19.658Z","isFirstParty":false,"canonicalSlug":"trusted-agent-market-snapshot-dice-roll-x402-9707800e"}