{"uid":"cap_CPd43v1QPADj9lP4hcwhZ","slug":"document-approvals-adjacent-row-changes-secondary-measure-weighted-mean-6ace1458","name":"Document Approvals — Adjacent Row Changes + Secondary-Measure Weighted Mean","description":"Document approvals — Adjacent row changes + Secondary-measure weighted mean: Adjacent row changes + Secondary-measure weighted mean for supplied document approvals records (submitted_documents, approved_documents). 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-operations-17-159?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","submitted_documents","approved_documents"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"team_group":{"type":"string","default":"","maxLength":80},"approved_documents":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"submitted_documents":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","approved_documents":1,"submitted_documents":10},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","approved_documents":2,"submitted_documents":20},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","approved_documents":3,"submitted_documents":15},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","approved_documents":4,"submitted_documents":30}],"maxItems":200,"minItems":1},"field":{"enum":["submitted_documents","approved_documents"],"type":"string","default":"submitted_documents"}}},"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_AobvnxAGCmFpyS3xKsg-k","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 adjacent row-to-row changes and a secondary-measure weighted mean for up to 200 document approval records in two combined analytical reports.","exampleAgentPrompt":"Can you run two reports on our document approval data — adjacent row changes and a secondary-measure weighted mean — for these 50 rows of submitted_documents and approved_documents by team and date? Use submitted_documents as the primary field.","exampleUseCases":[{"title":"Approval pipeline trend analysis","prompt":"I have daily document approval records for 3 teams over the past month — can you calculate the row-by-row changes in approved_documents and also give me the weighted mean using submitted_documents as the secondary measure? Here are the 30 rows with row_id, date, team_group, submitted_documents, and approved_documents."},{"title":"Weekly team approval rate reporting","prompt":"Run the adjacent row changes and weighted mean analysis on this batch of 60 document approval records grouped by team — I want to track week-over-week shifts in our approval counts. The field I care about is approved_documents."},{"title":"Approval backlog statistical summary","prompt":"Can you analyze these 120 rows of document approval data and give me both the adjacent row deltas and the secondary-measure weighted mean for submitted_documents? Each row has a row_id, date, team_group, submitted count, and approved count."}],"resultDescription":"Returns two analytical reports: (1) adjacent row-to-row changes for the selected measure across the ordered input rows, and (2) a secondary-measure weighted mean calculated across the supplied records — both computed locally from the user-provided document approval data with no external lookups.","failureModes":["More than 200 rows submitted — exceeds maximum row limit","Missing required fields (row_id, date, team_group, submitted_documents, or approved_documents) cause validation errors","Invalid date format (not YYYY-MM-DD) rejects the request","Numeric values outside ±1,000,000,000,000 range fail schema validation","Empty rows array returns an error","Payment not attached or insufficient USDC causes 402 rejection"],"whenToPreferThis":"Choose this endpoint when you have up to 200 rows of document approval records and need both adjacent row change analysis and a weighted mean in a single low-cost call ($0.01 USDC for two reports). It is ideal for offline/batch analytical workflows where no live data lookup, prediction, or external action is needed — just deterministic local computation on supplied data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:50:46.938Z","isFirstParty":false,"canonicalSlug":"document-approvals-adjacent-row-changes-secondary-measure-weighted-mean-6ace1458"}