{"uid":"cap_UHOfa6B1A1yUru1FmD-od","slug":"legal-document-inventories-duplicate-key-report-secondary-measure-cb85c517","name":"Legal Document Inventories — Duplicate Key Report + Secondary-Measure Weighted Mean","description":"Legal document inventories — Duplicate key report + Secondary-measure weighted mean: Duplicate key report + Secondary-measure weighted mean for supplied legal document inventories records (document_count, reviewed_count). 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-writing-10-067?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","document_group","date","document_count","reviewed_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"document_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"document_group":{"type":"string","default":"","maxLength":80},"reviewed_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","document_count":10,"document_group":"group-a","reviewed_count":1},{"date":"2026-10-02","row_id":"row-2","document_count":20,"document_group":"group-b","reviewed_count":2},{"date":"2026-10-03","row_id":"row-3","document_count":15,"document_group":"group-a","reviewed_count":3},{"date":"2026-10-04","row_id":"row-4","document_count":30,"document_group":"group-b","reviewed_count":4}],"maxItems":200,"minItems":1},"field":{"enum":["document_count","reviewed_count"],"type":"string","default":"document_count"}}},"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_2z9-JZhNCnjr11KNoy0iJ","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 up to 200 legal document inventory records to produce a duplicate key report and a secondary-measure weighted mean, using local analytical engines with no external lookups.","exampleAgentPrompt":"Check my legal document inventory records for duplicate keys and compute the weighted mean of document_count — here are my rows: group-a on 2026-10-01 with document_count 10 and reviewed_count 1, group-b on 2026-10-02 with document_count 20 and reviewed_count 2, group-a on 2026-10-03 with document_count 15 and reviewed_count 3.","exampleUseCases":[{"title":"Audit legal inventory for duplicate entries","prompt":"I have a spreadsheet of legal document inventory records with row IDs, document groups, dates, document counts, and reviewed counts — can you run a duplicate key report on it to find any repeated identifiers? Here are up to 50 rows."},{"title":"Weighted mean of reviewed documents by group","prompt":"For my legal document inventory dataset, compute the weighted mean of reviewed_count using document_count as the weight — I'll give you the rows with their groups and dates."},{"title":"Quality check before legal data submission","prompt":"Before I submit this legal document inventory to our compliance system, can you check for duplicate keys and calculate the weighted mean of document_count across all 120 records I'm sending you?"}],"resultDescription":"Returns two independent analytical reports: (1) a duplicate key report identifying any repeated row_id or document_group keys across the supplied records, and (2) a secondary-measure weighted mean computed over the selected field (document_count or reviewed_count) using the other measure as a weight. Both reports are generated locally from the supplied data with no external lookups.","failureModes":["Fewer than 1 row provided — request rejected with validation error","More than 200 rows submitted — exceeds maximum row limit","Missing required fields (row_id, document_group, date, document_count, reviewed_count) — schema validation error","Invalid date format (not YYYY-MM-DD) — pattern validation failure","Field selector not one of 'document_count' or 'reviewed_count' — enum validation error","Payment not processed — x402 payment required error"],"whenToPreferThis":"Choose this endpoint when you need simultaneous duplicate key detection and weighted mean computation on legal document inventory data (up to 200 rows) in a single paid call. It is purpose-built for legal document tracking datasets with document_count and reviewed_count fields. Prefer it over generic analytics tools when you need both reports together at low cost ($0.01 USDC for two reports) without external data access or professional assessment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-02T18:34:34.054Z","isFirstParty":false,"canonicalSlug":"legal-document-inventories-duplicate-key-report-secondary-measure-cb85c517"}