{"uid":"cap_x3TSBK9tVL1Elz-YTHL3c","slug":"procurement-secondary-measure-weighted-mean-bbc33e5e","name":"Procurement Secondary-Measure Weighted Mean","description":"Procurement - Secondary-measure weighted mean: Secondary-measure weighted mean for Procurement. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded secondary-measure weighted mean deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-procurement-weighted-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","supplier","date","ordered_units","unit_cost"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"supplier":{"type":"string","default":"","maxLength":80},"unit_cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"ordered_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","supplier":"group-a","unit_cost":1,"ordered_units":10},{"date":"2026-10-02","row_id":"row-2","supplier":"group-b","unit_cost":2,"ordered_units":20},{"date":"2026-10-03","row_id":"row-3","supplier":"group-a","unit_cost":3,"ordered_units":15},{"date":"2026-10-04","row_id":"row-4","supplier":"group-b","unit_cost":4,"ordered_units":30}],"maxItems":200,"minItems":1},"field":{"enum":["ordered_units","unit_cost"],"type":"string","default":"ordered_units"}}},"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_8gLO_70MrodpYQKbE3gwo","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":"Computes a secondary-measure weighted mean over procurement records (up to 200 rows), weighting one numeric field by another locally without external enrichment.","exampleAgentPrompt":"Calculate the weighted mean of unit_cost across these procurement records — I have 4 rows with suppliers group-a and group-b, dates from 2026-10-01 to 2026-10-04, unit costs of 1 to 4, and ordered units of 10, 20, 15, and 30 respectively; use ordered_units as the weighting field.","exampleUseCases":[{"title":"Supplier cost analysis by volume","prompt":"I have 50 procurement rows with supplier names, dates, ordered units, and unit costs. Can you compute the weighted mean of unit_cost weighted by ordered_units so I can see the true average cost per unit across all my orders?"},{"title":"Monthly purchasing quantity summary","prompt":"Here are 120 purchase order records for October. Calculate the weighted mean of ordered_units using unit_cost as the secondary measure so I can understand how our order volumes cluster around cost levels."},{"title":"Comparing two supplier groups","prompt":"I've got procurement data for two supplier groups with about 80 rows total — each row has a date, ordered_units, and unit_cost. Can you compute the secondary-measure weighted mean of unit_cost weighted by ordered_units for me?"}],"resultDescription":"A single numeric weighted mean value computed from the supplied procurement records, where one field (ordered_units or unit_cost) is weighted by the other, returned as a bounded deliverable with data-quality metadata.","failureModes":["Exceeds 200-row limit — request rejected with validation error","Missing required fields (row_id, supplier, date, ordered_units, unit_cost) cause row-level rejection","Null values in numeric fields may be excluded or cause NaN results","Invalid date format (not YYYY-MM-DD) triggers schema validation failure","Empty rows array returns error","All numeric values null results in undefined weighted mean"],"whenToPreferThis":"Choose this endpoint when you need a fast, local weighted mean computation over procurement-specific records (with supplier and date context) without needing external data enrichment or forecasting. It is purpose-built for the procurement domain with a fixed schema, making it ideal for structured purchase order data pipelines where up to 200 rows need a secondary-measure weighted average at low cost ($0.01 per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:47:34.957Z","isFirstParty":false,"canonicalSlug":"procurement-secondary-measure-weighted-mean-bbc33e5e"}