{"uid":"cap_Ww5w0SYZRyK_DC3fhjqGr","slug":"damaged-stock-interval-filter-and-dataset-comparison-d89d8454","name":"Damaged Stock Interval Filter and Dataset Comparison","description":"Damaged stock — Numeric interval filter + Keyed dataset comparison: Numeric interval filter + Keyed dataset comparison for supplied damaged stock records (handled_units, damaged_units). 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-retail-18-134?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","handled_units","damaged_units"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"store_group":{"type":"string","default":"","maxLength":80},"damaged_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"handled_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","store_group":"group-a","damaged_units":1,"handled_units":10},{"date":"2026-10-02","row_id":"row-2","store_group":"group-b","damaged_units":2,"handled_units":20},{"date":"2026-10-03","row_id":"row-3","store_group":"group-a","damaged_units":3,"handled_units":15},{"date":"2026-10-04","row_id":"row-4","store_group":"group-b","damaged_units":4,"handled_units":30}],"maxItems":200,"minItems":1},"field":{"enum":["handled_units","damaged_units"],"type":"string","default":"handled_units"},"other":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","handled_units","damaged_units"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"store_group":{"type":"string","default":"","maxLength":80},"damaged_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"handled_units":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","store_group":"group-a","damaged_units":1,"handled_units":10},{"date":"2026-10-02","row_id":"row-2","store_group":"group-b","damaged_units":2,"handled_units":21},{"date":"2026-10-03","row_id":"row-3","store_group":"group-a","damaged_units":3,"handled_units":17},{"date":"2026-10-04","row_id":"row-4","store_group":"group-b","damaged_units":4,"handled_units":33}],"maxItems":200,"minItems":0},"maximum":{"type":"number","default":100,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":0,"maximum":1000000000000,"minimum":-1000000000000}}},"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_Ndc8_DUYjdQPd7boabw8o","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":"Applies a numeric interval filter and keyed dataset comparison to user-supplied damaged stock records (handled_units, damaged_units) for up to 200 rows, returning 2 analytical reports.","exampleAgentPrompt":"I have two sets of damaged stock records for our retail stores — each with row_id, store_group, date, handled_units, and damaged_units — up to 150 rows each. Can you run a numeric interval filter on the damaged_units field and then compare the two datasets by key to spot differences?","exampleUseCases":[{"title":"Weekly damage spike detection across store groups","prompt":"I've got this week's and last week's damaged stock data for all our store groups — rows with row_id, date, store_group, handled_units, and damaged_units. Filter by the damaged_units field and compare the two weekly datasets so I can see which stores got worse."},{"title":"Handled units range audit for a warehouse","prompt":"Can you run an interval filter on the handled_units field across our 120 warehouse damage records, and also compare today's dataset against yesterday's keyed snapshot to flag any rows that changed?"},{"title":"Retail chain damage report comparison","prompt":"I have two CSVs of damaged stock — one from our East region and one from our West region, each with row_id, store_group, date, handled_units, and damaged_units. Please filter by damaged_units intervals and do a keyed comparison between the two regions' data."}],"resultDescription":"Returns two analytical reports: (1) a numeric interval filter report showing which rows fall within specified value bands for the chosen field (handled_units or damaged_units), and (2) a keyed dataset comparison report highlighting differences between the two supplied datasets matched by row_id. Both reports are derived purely from the supplied data with no external lookups.","failureModes":["Input rows array is empty or exceeds 200 items — validation error returned","Missing required row fields (row_id, store_group, date, handled_units, damaged_units) — schema rejection","Invalid date format (not YYYY-MM-DD) — pattern validation failure","Numeric values outside allowed range (±1,000,000,000,000) — schema rejection","No 'other' comparison dataset supplied when comparison report is needed — incomplete output","Payment not completed via x402 protocol — request rejected before processing"],"whenToPreferThis":"Choose this endpoint when you have pre-collected damaged stock tabular data (up to 200 rows) and need two specific analytical operations — a numeric interval filter and a keyed dataset comparison — performed together in a single cheap ($0.01 USDC) call. It is best when you already have both a primary and a comparison dataset ready and want local analytical processing without any external data lookups or predictions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:47.507Z","isFirstParty":false,"canonicalSlug":"damaged-stock-interval-filter-and-dataset-comparison-d89d8454"}