{"uid":"cap_6zLXIcHfZzB0YRZ9vsGIK","slug":"municipal-waste-numeric-row-ordering-secondary-measure-weighted-mean-d78a53a7","name":"Municipal Waste Numeric Row Ordering + Secondary-Measure Weighted Mean","description":"Municipal waste — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean for supplied municipal waste records (collected_tonnes, recycled_tonnes). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-economics-11-121?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","region","date","collected_tonnes","recycled_tonnes"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"region":{"type":"string","default":"","maxLength":80},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"recycled_tonnes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"collected_tonnes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","region":"group-a","row_id":"row-1","recycled_tonnes":1,"collected_tonnes":10},{"date":"2026-10-02","region":"group-b","row_id":"row-2","recycled_tonnes":2,"collected_tonnes":20},{"date":"2026-10-03","region":"group-a","row_id":"row-3","recycled_tonnes":3,"collected_tonnes":15},{"date":"2026-10-04","region":"group-b","row_id":"row-4","recycled_tonnes":4,"collected_tonnes":30}],"maxItems":200,"minItems":1},"field":{"enum":["collected_tonnes","recycled_tonnes"],"type":"string","default":"collected_tonnes"}}},"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_03GnmItKRx3h3Q-FMEY4E","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":"Performs numeric row ordering and secondary-measure weighted mean analysis on municipal waste records (collected_tonnes, recycled_tonnes) for up to 200 rows, returning two analytical reports per call.","exampleAgentPrompt":"I have a dataset of municipal waste records for four regions — can you rank the rows numerically by collected_tonnes and also compute the weighted mean of collected_tonnes across all rows? Here are the rows: row-1 group-a 2026-10-01 collected=10 recycled=1, row-2 group-b 2026-10-02 collected=20 recycled=2, row-3 group-a 2026-10-03 collected=15 recycled=3, row-4 group-b 2026-10-04 collected=30 recycled=4.","exampleUseCases":[{"title":"Regional waste collection ranking","prompt":"I've got monthly waste collection data for 10 regions — can you rank all the rows by collected_tonnes so I can see which areas collected the most waste? I also want a weighted mean of collected_tonnes across all regions."},{"title":"Recycling rate weighted average analysis","prompt":"Here's a table of 50 municipal waste records with collected_tonnes and recycled_tonnes per date and region — please order the rows numerically by recycled_tonnes and give me the weighted mean of recycled_tonnes using collected_tonnes as the weight."},{"title":"Multi-region waste data summary","prompt":"I have quarterly waste data for 8 city districts going back two years, each row has a region, date, collected_tonnes, and recycled_tonnes — run numeric row ordering and a weighted mean on collected_tonnes so I can benchmark performance across districts."}],"resultDescription":"Returns two analytical reports: (1) a numeric row ordering that ranks the supplied waste records by the chosen measure (collected_tonnes or recycled_tonnes), and (2) a secondary-measure weighted mean that computes the weighted average of the chosen field across all supplied rows, weighted by the other measure. Both reports are computed locally without external lookups.","failureModes":["More than 200 rows submitted — exceeds maximum row limit","Missing required fields (row_id, region, date, collected_tonnes, or recycled_tonnes) — validation error","Invalid date format (must match YYYY-MM-DD) — pattern mismatch error","Numeric values outside allowed range (±1,000,000,000,000) — schema validation failure","Empty rows array — minItems violation","Invalid field enum value (must be collected_tonnes or recycled_tonnes) — enum validation error"],"whenToPreferThis":"Choose this endpoint when you have municipal waste tabular data (up to 200 rows) and need both a ranked ordering of records and a weighted mean statistic in a single low-cost call ($0.01 USDC). It is ideal for offline/local analytical workflows where no live data lookup, external API calls, or predictions are needed — just deterministic computation on supplied rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T00:40:05.178Z","isFirstParty":false,"canonicalSlug":"municipal-waste-numeric-row-ordering-secondary-measure-weighted-mean-d78a53a7"}