{"uid":"cap_38X_8GtwF9QKd7B5jt-5F","slug":"validation-rule-results-duplicate-key-report-equal-width-histogram-e167b5e0","name":"Validation Rule Results — Duplicate Key Report & Equal-Width Histogram","description":"Validation rule results — Duplicate key report + Equal-width histogram: Duplicate key report + Equal-width histogram 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-064?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","default":5,"maximum":30,"minimum":1},"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"}}},"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_rhp1S6orHSybGS4av6xAJ","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":"Analyzes validation rule result records to detect duplicate row keys and compute an equal-width histogram over passed_rules or total_rules values.","exampleAgentPrompt":"Can you analyze these validation rule results for duplicate row keys and give me a 10-bin equal-width histogram over the passed_rules field? I have 4 records: row-1 (group-a, 2026-10-01, passed=10, total=1), row-2 (group-b, 2026-10-02, passed=20, total=2), row-3 (group-a, 2026-10-03, passed=15, total=3), row-4 (group-b, 2026-10-04, passed=30, total=4).","exampleUseCases":[{"title":"Spotting duplicate record IDs in QA pipeline","prompt":"I have 50 validation rule result records from our data quality pipeline — can you scan them for any duplicate row IDs and also show me a 5-bin histogram of how the passed_rules values are spread out?"},{"title":"Distribution analysis for rule compliance audit","prompt":"We're auditing rule compliance across two dataset groups. Can you give me an equal-width histogram with 8 bins over total_rules for these 20 records, and flag any duplicated row keys while you're at it?"},{"title":"Monitoring validation trends across dataset groups","prompt":"Here are this week's daily validation results for group-a and group-b — can you check if any row IDs repeat and show me a 10-bin frequency distribution of passed_rules so I can see where most rows are clustering?"}],"resultDescription":"Returns a duplicate key report listing any row_id values that appear more than once in the input, plus an equal-width histogram partitioned into the requested number of bins over the chosen field (passed_rules or total_rules), including bin boundaries and record counts per bin. Up to 200 input rows and up to 30 bins are supported.","failureModes":["Empty rows array or fewer than 1 item returns a validation error","bins value outside 1–30 range is rejected","Rows missing required fields (row_id, dataset_group, date, passed_rules, total_rules) fail schema validation","date strings not matching YYYY-MM-DD pattern are rejected","Numeric values outside ±1,000,000,000,000 are rejected","Payment failure or insufficient USDC balance returns a 402 error"],"whenToPreferThis":"Choose this endpoint when you need both duplicate key detection and a histogram in a single call over validation rule result records with the specific schema (row_id, dataset_group, date, passed_rules, total_rules). It is purpose-built for data quality audit workflows where you want to spot repeated identifiers and understand the distribution of rule compliance metrics simultaneously, without building custom analytics code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T00:36:28.422Z","isFirstParty":false,"canonicalSlug":"validation-rule-results-duplicate-key-report-equal-width-histogram-e167b5e0"}