{"uid":"cap_LghC1BilAkFLlo3a0Wxg1","slug":"validation-rule-results-secondary-measure-weighted-mean-keyed-dataset-0514b887","name":"Validation Rule Results — Secondary-Measure Weighted Mean + Keyed Dataset Comparison","description":"Validation rule results — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison for supplied validation rule results records (passed_rules, total_rules). 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-analytics-08-186?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","passed_rules","total_rules"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"total_rules":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"passed_rules":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","total_rules":1,"passed_rules":10,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","total_rules":2,"passed_rules":20,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","total_rules":3,"passed_rules":15,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","total_rules":4,"passed_rules":30,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["passed_rules","total_rules"],"type":"string","default":"passed_rules"},"other":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","passed_rules","total_rules"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"total_rules":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"passed_rules":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","total_rules":1,"passed_rules":10,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","total_rules":2,"passed_rules":21,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","total_rules":3,"passed_rules":17,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","total_rules":4,"passed_rules":33,"dataset_group":"group-b"}],"maxItems":200,"minItems":0}}},"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_ODytb_zYJctTQoeFP_yhS","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 and performs a keyed dataset comparison on validation rule results records (passed_rules, total_rules) for up to 200 rows across two independent reports.","exampleAgentPrompt":"Can you compute the weighted mean of passed_rules (weighted by total_rules) and compare two sets of validation rule results — here's dataset A with rows for group-a and group-b from 2026-10-01 to 2026-10-04, and here's dataset B with the same rows but slightly different passed_rules values — I want both reports in one call.","exampleUseCases":[{"title":"Data quality pipeline drift detection","prompt":"I have two runs of my data quality pipeline — last week and this week — each with up to 150 rows of passed_rules and total_rules by dataset_group and date. Can you run a weighted mean on passed_rules and compare the two runs side by side so I can see where rule compliance dropped?"},{"title":"Validation rule pass rate benchmarking","prompt":"We have two environments, staging and production, each with about 80 rows of validation rule results. Can you compute the secondary-measure weighted mean of total_rules for each environment and do a keyed comparison to see how they differ?"},{"title":"Cross-group rule compliance analysis","prompt":"I want to analyze rule compliance across group-a and group-b for October — here are 120 rows of passed_rules and total_rules. Please compute the weighted mean and also compare against our baseline dataset to flag any significant differences."}],"resultDescription":"Returns two independent analytical reports: (1) a secondary-measure weighted mean of the selected field (passed_rules or total_rules), weighted by the complementary measure, and (2) a keyed dataset comparison between the primary and secondary supplied datasets, both computed locally without external lookups. Results cover up to 200 rows of input data.","failureModes":["Input array exceeds 200 rows — request will be rejected or truncated","Missing required fields (row_id, dataset_group, date, passed_rules, total_rules) cause validation errors","Null values in passed_rules or total_rules may affect weighted mean calculation","Date strings not matching YYYY-MM-DD pattern will fail schema validation","Empty rows array (minItems:1 violated) returns an error","Mismatched row_ids between primary and comparison dataset may reduce keyed comparison coverage"],"whenToPreferThis":"Choose this endpoint when you need both a weighted mean computation and a keyed dataset comparison on validation rule results in a single call, especially for data quality monitoring workflows where passed_rules and total_rules are the core metrics. It is well-suited for batch analytical jobs on up to 200 rows where no external data lookup or live prediction is required and the $0.01 flat fee covers both reports.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:48:37.303Z","isFirstParty":false,"canonicalSlug":"validation-rule-results-secondary-measure-weighted-mean-keyed-dataset-0514b887"}