{"uid":"cap_iv1F93bb5xlYr0uR64cQD","slug":"record-routing-trailing-mean-series-iqr-outlier-flags-4c30c89b","name":"Record Routing — Trailing Mean Series + IQR Outlier Flags","description":"Record routing — Trailing mean series + IQR outlier flags: Trailing mean series + IQR outlier flags for supplied record routing records (accepted_records, rejected_records). 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-19-149?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","accepted_records","rejected_records"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"dataset_group":{"type":"string","default":"","maxLength":80},"accepted_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"rejected_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","dataset_group":"group-a","accepted_records":10,"rejected_records":1},{"date":"2026-10-02","row_id":"row-2","dataset_group":"group-b","accepted_records":20,"rejected_records":2},{"date":"2026-10-03","row_id":"row-3","dataset_group":"group-a","accepted_records":15,"rejected_records":3},{"date":"2026-10-04","row_id":"row-4","dataset_group":"group-b","accepted_records":30,"rejected_records":4}],"maxItems":200,"minItems":1},"field":{"enum":["accepted_records","rejected_records"],"type":"string","default":"accepted_records"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"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_Uljq7QVP_Lj5QFeIHhVbU","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 trailing mean time series and IQR-based outlier flags for accepted_records and rejected_records fields in supplied record routing data (up to 200 rows, 2 reports per call).","exampleAgentPrompt":"Analyze my record routing data for the last 30 days — compute the trailing mean series and flag any IQR outliers in the accepted_records field using a window of 7, for groups alpha and beta across these 50 rows.","exampleUseCases":[{"title":"ETL pipeline rejection spike detection","prompt":"I have 90 rows of daily record routing data from my ETL pipeline — can you compute the trailing mean and flag any IQR outliers in the rejected_records field using a window size of 5, so I can see which days had abnormal rejection spikes?"},{"title":"Acceptance rate trend monitoring","prompt":"Run a trailing mean series with window 10 on my accepted_records data across these 150 rows grouped by dataset region, and flag any outlier rows using IQR — I want to spot where acceptance rates deviated significantly."},{"title":"Data quality audit for two record groups","prompt":"I've got two dataset groups — 'intake' and 'processed' — with 60 rows of daily counts each. Can you generate the trailing mean and IQR outlier flags for both accepted_records and rejected_records so I can audit which days were anomalous?"}],"resultDescription":"Returns two analytical reports per call: (1) a trailing mean time series computed over the specified rolling window for the selected field (accepted_records or rejected_records), and (2) per-row IQR outlier flags indicating which data points fall outside the interquartile range — all derived entirely from the supplied row data with no external lookups.","failureModes":["Fewer than 1 row supplied — minimum 1 row required","More than 200 rows submitted — exceeds maxItems limit","Invalid date format (must match YYYY-MM-DD pattern)","Window size outside range 2–200 causes validation error","Missing required fields (row_id, dataset_group, date, accepted_records, rejected_records) causes rejection","Numeric values outside ±1,000,000,000,000 range fail schema validation","Payment of 0.01 USDC not attached or declined — x402 payment required"],"whenToPreferThis":"Choose this endpoint when you need lightweight, local statistical analysis — specifically trailing mean smoothing and IQR-based anomaly detection — on record routing metrics (accepted vs. rejected counts) without any external data lookups or predictions. Ideal for ETL monitoring, data quality auditing, and pipeline health checks where you supply your own time-series rows and want two computed reports cheaply ($0.01 USDC). Not suitable if you need forecasting, external data enrichment, or more than 200 rows per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T06:40:18.625Z","isFirstParty":false,"canonicalSlug":"record-routing-trailing-mean-series-iqr-outlier-flags-4c30c89b"}