{"uid":"cap_IVm75dzWm_ZkznDrn8Zip","slug":"gross-margin-return-on-inventory-weighted-result-mean-99b2c14b","name":"Gross Margin Return on Inventory - Weighted Result Mean","description":"Gross margin return on inventory - Weighted result mean: Weighted result mean for Gross margin return on inventory. Supplied retail figures only. Local calculation and scenario analysis; no live inventory, account access, platform fee lookup or order execution. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded weighted result mean deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-retail-inventory-margin-return-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["gross_profit","average_inventory_cost"],"properties":{"gross_profit":{"type":"number","default":5000,"maximum":1000000000000,"minimum":-1000000000000},"average_inventory_cost":{"type":"number","default":2500,"maximum":1000000000000,"minimum":0,"exclusiveMinimum":0}},"additionalProperties":false},"default":[{"gross_profit":5000,"average_inventory_cost":2500},{"gross_profit":5500,"average_inventory_cost":2750},{"gross_profit":5000,"average_inventory_cost":2500},{"gross_profit":5500,"average_inventory_cost":2750}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"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_4suEqYDg1lmwVOU9Yr04Q","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 weighted mean of Gross Margin Return on Inventory (GMROI) across multiple supplied retail data rows using user-specified weights.","exampleAgentPrompt":"Can you calculate the weighted mean GMROI for my four product lines? The gross profits are $5000, $5500, $5000, and $5500, with average inventory costs of $2500, $2750, $2500, and $2750 — weight the second and fourth lines twice as heavily as the first and third.","exampleUseCases":[{"title":"Multi-category retail GMROI summary","prompt":"I have five retail categories with gross profits of $8000, $12000, $6000, $15000, and $9000, and average inventory costs of $4000, $5500, $3000, $7000, and $4500. Weight them by sales volume: 1, 3, 1, 4, 2. Give me the weighted mean GMROI across all of them."},{"title":"Seasonal product profitability weighting","prompt":"For our Q4 scenario analysis, I need the weighted mean gross margin return on inventory for three product lines: gross profits of $20000, $35000, and $10000 with inventory costs of $10000, $14000, and $5000. Weight the holiday line at 5, the accessories at 2, and the basics at 1."},{"title":"Store-segment inventory margin benchmarking","prompt":"Can you compute the weighted GMROI mean for our six store segments? Gross profits are $3000, $7000, $4500, $9000, $2000, and $6000, inventory costs are $1500, $3000, $2000, $4000, $1000, and $2500, and the weights are 1, 2, 2, 3, 1, and 2."}],"resultDescription":"Returns a single weighted mean GMROI value computed from all supplied rows, where each row's GMROI (gross profit divided by average inventory cost) is combined according to the provided weight array. The result reflects a weighted aggregate measure of inventory profitability across the input dataset.","failureModes":["Fewer than 2 rows supplied — validation error","Average inventory cost of zero or negative — rejected by exclusiveMinimum constraint","Mismatch between number of rows and number of weights — likely causes an error or unexpected result","Values exceeding 1,000,000,000,000 — out of bounds error","Non-numeric values in gross_profit or average_inventory_cost — schema validation failure","More than 200 rows submitted — exceeds maxItems limit"],"whenToPreferThis":"Choose this endpoint when you need a single summarized, importance-weighted GMROI statistic across multiple retail data rows rather than individual calculations or a distribution. It is best suited for scenario analysis, benchmarking across product lines or store segments, and situations where some observations should contribute more heavily to the aggregate result than others. Use it instead of a simple mean when your data rows have unequal importance or volume.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T19:03:21.783Z","isFirstParty":false,"canonicalSlug":"gross-margin-return-on-inventory-weighted-result-mean-99b2c14b"}