{"uid":"cap_SFabp8JGoL5Wft2cz83XF","slug":"loot-expected-value-calculator-4217349a","name":"Loot Expected-Value Calculator","description":"Loot expected-value calculator: Calculate expected reward value from item values and drop probabilities.","url":"https://market.datapackvibe.com/x402/loot-expected-value?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"values":{"type":"array","items":{"type":"number"},"default":[10,25,100]},"probabilities":{"type":"array","items":{"type":"number"},"default":[0.7,0.25,0.05]}}},"responseSchema":null,"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_NnBa57Mdzo6CJLkN9DYzg","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":"Calculates the expected reward value from a loot table by combining item values with their drop probabilities.","exampleAgentPrompt":"I have three items in a loot table worth 10, 25, and 100 gold with drop chances of 70%, 25%, and 5% — what's the expected value per kill?","exampleUseCases":[{"title":"Balancing RPG enemy loot drops","prompt":"I'm designing a dungeon boss with three possible drops: a common sword worth 15 gold at 65% chance, a rare staff worth 80 gold at 30% chance, and a legendary gem worth 500 gold at 5% chance. What's the expected gold value per kill?"},{"title":"Evaluating gacha banner EV","prompt":"My gacha banner has items worth 50, 200, and 1000 currency with probabilities of 0.6, 0.35, and 0.05 respectively. Calculate the expected value so I can decide if it's worth pulling."},{"title":"Comparing two loot table designs","prompt":"For loot table A, items are worth 20, 50, and 150 with probabilities 0.8, 0.15, and 0.05. Can you compute the expected value so I can compare it against another design?"}],"resultDescription":"Returns the expected reward value — the probability-weighted average of all item values in the loot table, representing the average payout per loot roll.","failureModes":["Mismatched array lengths between values and probabilities may return an error or incorrect result","Probabilities that don't sum to 1.0 may produce misleading expected values","Empty arrays may return zero or a validation error","Non-numeric values in the arrays will likely cause a parsing error"],"whenToPreferThis":"Use this endpoint when you need a fast, single-call computation of expected loot value from a discrete probability distribution — ideal for game designers balancing loot tables, analysts evaluating gacha systems, or agents automating game economy calculations without writing custom math code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:47:57.784Z","isFirstParty":false,"canonicalSlug":"loot-expected-value-calculator-4217349a"}