{"uid":"cap_C4FD6cAYypQZQLt7C4IeS","slug":"legal-document-inventories-record-quality-audit-string-normalisation-4de833ea","name":"Legal Document Inventories — Record Quality Audit + String Normalisation + Secondary-Measure Weighted Mean","description":"Legal document inventories — Record quality audit + String normalisation + Secondary-measure weighted mean: Record quality audit + String normalisation + Secondary-measure weighted mean for supplied legal document inventories records (document_count, reviewed_count). Up to 200 rows; 3 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 3 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-writing-10-205?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_Fj2iCzd2De9_j-6mNi8PY","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":"Runs three local analytical reports on legal document inventory data: a record quality audit, string normalisation, and a secondary-measure weighted mean calculation for document_count or reviewed_count fields.","exampleAgentPrompt":"Can you audit the quality of these legal document inventory records, normalise the document group strings, and calculate a weighted mean for the reviewed_count field? I have 4 rows: row-1 on 2026-10-01 with document_count=10 and reviewed_count=1 in group-a, row-2 on 2026-10-02 with document_count=20 and reviewed_count=2 in group-b, row-3 on 2026-10-03 with document_count=15 and reviewed_count=3 in group-a, row-4 on 2026-10-04 with document_count=30 and reviewed_count=4 in group-b.","exampleUseCases":[{"title":"Legal review backlog quality check","prompt":"I have a table of 50 legal document inventory records with document groups and daily reviewed counts — can you run a record quality audit on them, clean up the group name strings, and give me a weighted mean of the reviewed_count field so I can see the average review rate weighted by document volume?"},{"title":"Document group label normalisation","prompt":"Some of the document_group labels in my legal inventory data are inconsistently cased or have extra spaces. Can you normalise those strings across my 30 rows and also run a quality audit to flag any rows with missing or suspect values?"},{"title":"Weighted mean for compliance reporting","prompt":"For our compliance dashboard I need a secondary-measure weighted mean of document_count across these legal inventory rows — there are 80 rows covering different document groups and dates. Can you compute that along with a quality audit and string normalisation pass?"}],"resultDescription":"Three independent analytical reports: (1) a record quality audit flagging data issues such as nulls, out-of-range values, or inconsistencies in the supplied rows; (2) a string normalisation report cleaning and standardising the document_group field values; (3) a secondary-measure weighted mean calculation for the selected numeric field (document_count or reviewed_count). All computed locally with no external lookups.","failureModes":["Rows array is empty or missing — returns validation error","More than 200 rows supplied — rejected with row limit error","Invalid date format (not YYYY-MM-DD) in any row — validation failure","Unrecognised field value outside enum [document_count, reviewed_count] — schema error","Null values in both numeric fields for all rows — weighted mean may be undefined or return NaN","row_id missing or exceeds 80 characters — schema rejection"],"whenToPreferThis":"Choose this endpoint when you need all three operations — record quality audit, string normalisation, and secondary-measure weighted mean — applied to legal document inventory data (document_count, reviewed_count) in a single cheap call. It is ideal for batch preprocessing up to 200 rows of legal document tracking data before downstream reporting or compliance workflows, and when no live external data, predictions, or professional legal assessment is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:37:30.881Z","isFirstParty":false,"canonicalSlug":"legal-document-inventories-record-quality-audit-string-normalisation-4de833ea"}