{"uid":"cap_qvXZc9LVc5zrxCYJjRH0i","slug":"promotion-observations-numeric-interval-filter-two-measure-correlation-87c638ff","name":"Promotion Observations — Numeric Interval Filter + Two-Measure Correlation","description":"Promotion observations — Numeric interval filter + Two-measure correlation: Numeric interval filter + Two-measure correlation for supplied promotion observations records (discount_amount, units_sold). 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-05-131?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","store_group","date","discount_amount","units_sold"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"units_sold":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"store_group":{"type":"string","default":"","maxLength":80},"discount_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","units_sold":1,"store_group":"group-a","discount_amount":10},{"date":"2026-10-02","row_id":"row-2","units_sold":2,"store_group":"group-b","discount_amount":20},{"date":"2026-10-03","row_id":"row-3","units_sold":3,"store_group":"group-a","discount_amount":15},{"date":"2026-10-04","row_id":"row-4","units_sold":4,"store_group":"group-b","discount_amount":30}],"maxItems":200,"minItems":1},"field":{"enum":["discount_amount","units_sold"],"type":"string","default":"discount_amount"},"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_vK5fdmXiZ8MdtbuNt_mh0","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":"Filters promotion records by a numeric interval on a selected field and computes the Pearson correlation between discount_amount and units_sold across up to 200 supplied rows.","exampleAgentPrompt":"I have up to 200 rows of promotion data with discount_amount and units_sold — can you filter to records where discount_amount is between 5 and 75, then run a two-measure correlation between discount_amount and units_sold across the filtered set?","exampleUseCases":[{"title":"Discount effectiveness check for campaign","prompt":"I've got a list of promotion records from our last retail campaign — filter the ones where discount_amount falls between 10 and 60, then tell me how strongly discount_amount and units_sold are correlated."},{"title":"Units sold range analysis with correlation","prompt":"From my promotion observations dataset, filter rows where units_sold is between 50 and 500, then compute the correlation between discount_amount and units_sold for those records."},{"title":"Store group promotion ROI screening","prompt":"Here are 150 rows of promotion data by store group and date — filter to records with discount_amount between 0 and 30 and run a two-measure correlation so I can see if smaller discounts still move units."}],"resultDescription":"Returns two analytical reports sharing the same local engine: (1) a filtered subset of promotion rows where the selected field (discount_amount or units_sold) falls within the specified minimum–maximum interval, and (2) a two-measure correlation result quantifying the statistical relationship between discount_amount and units_sold across the supplied data. No external lookups or predictions are made; all analysis is performed on the caller-supplied rows.","failureModes":["Input rows array is empty or exceeds 200 items — request rejected","minimum value greater than maximum value — invalid interval, likely returns error or empty filter","missing required fields (row_id, store_group, date, discount_amount, units_sold) in any row — validation failure","all values null for a measure — correlation undefined or NaN returned","date strings not matching YYYY-MM-DD pattern — schema validation error","payment not included or insufficient — x402 payment required response"],"whenToPreferThis":"Choose this endpoint when you have up to 200 pre-assembled promotion observation rows (with discount_amount and units_sold fields) and need both a numeric range filter and a two-measure correlation in a single low-cost ($0.01 USDC) call. Prefer it over general-purpose analytics tools when working within a retail/promotion context and you want bundled interval filtering plus correlation without setting up a data pipeline or external BI tool.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:52.505Z","isFirstParty":false,"canonicalSlug":"promotion-observations-numeric-interval-filter-two-measure-correlation-87c638ff"}