{"uid":"cap_Jssv3NlsYayeiBN0aWF_v","slug":"contract-renewal-inventories-duplicate-key-report-secondary-measure-9cc120f6","name":"Contract Renewal Inventories — Duplicate Key Report + Secondary-Measure Weighted Mean","description":"Contract renewal inventories — Duplicate key report + Secondary-measure weighted mean: Duplicate key report + Secondary-measure weighted mean for supplied contract renewal inventories records (expiring_contracts, renewed_contracts). 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-company-20-067?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","company_group","date","expiring_contracts","renewed_contracts"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"company_group":{"type":"string","default":"","maxLength":80},"renewed_contracts":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"expiring_contracts":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","company_group":"group-a","renewed_contracts":1,"expiring_contracts":10},{"date":"2026-10-02","row_id":"row-2","company_group":"group-b","renewed_contracts":2,"expiring_contracts":20},{"date":"2026-10-03","row_id":"row-3","company_group":"group-a","renewed_contracts":3,"expiring_contracts":15},{"date":"2026-10-04","row_id":"row-4","company_group":"group-b","renewed_contracts":4,"expiring_contracts":30}],"maxItems":200,"minItems":1},"field":{"enum":["expiring_contracts","renewed_contracts"],"type":"string","default":"expiring_contracts"}}},"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_rPdHdHW2Q7okYluyZGD9e","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 two local analytical reports on supplied contract renewal data: a duplicate key detection report and a secondary-measure weighted mean calculation, for up to 200 rows.","exampleAgentPrompt":"Check my contract renewal data for duplicate row IDs and also compute the weighted mean for expiring_contracts — I have 4 rows: row-1 for group-a on 2026-10-01 with 10 expiring and 1 renewed, row-2 for group-b on 2026-10-02 with 20 expiring and 2 renewed, row-3 for group-a on 2026-10-03 with 15 expiring and 3 renewed, and row-4 for group-b on 2026-10-04 with 30 expiring and 4 renewed.","exampleUseCases":[{"title":"Data quality check before renewal reporting","prompt":"I'm about to generate a renewal report and want to make sure there are no duplicate row IDs in my contract data — can you run a duplicate key check on these 50 contract renewal records and also give me the weighted mean for expiring_contracts?"},{"title":"Weighted average renewal rate by company group","prompt":"I have a dataset of 120 contract renewal rows across several company groups and I need the secondary-measure weighted mean for renewed_contracts — can you also flag any duplicate row IDs in the batch while you're at it?"},{"title":"Pre-pipeline data validation for renewal inventory","prompt":"Before I load these contract renewal inventory records into our pipeline, can you check them for duplicate keys and compute the weighted mean on expiring_contracts so I know the data is clean and I have a baseline stat? There are about 80 rows total."}],"resultDescription":"Returns two independent analytical reports: (1) a duplicate key report identifying any repeated row_id values across the supplied rows, and (2) a secondary-measure weighted mean calculation for the chosen field (expiring_contracts or renewed_contracts) weighted by the complementary measure. Both reports are computed locally using shared analytical engines with no external lookups.","failureModes":["Fewer than 1 row supplied — violates minItems constraint","More than 200 rows supplied — exceeds maxItems limit","Invalid date format (not YYYY-MM-DD) in any row","row_id missing or empty string in any row","field enum value not one of expiring_contracts or renewed_contracts","Numeric values outside allowed range (±1,000,000,000,000)","Payment failure or insufficient USDC balance for $0.01 fee"],"whenToPreferThis":"Choose this endpoint when you need two specific analytical outputs — duplicate key detection and weighted mean — on contract renewal inventory data (expiring_contracts, renewed_contracts) in a single low-cost call. Ideal for data quality validation before ETL pipelines, pre-report sanity checks, or lightweight batch analytics on up to 200 renewal records without needing a full analytics platform.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:48:55.092Z","isFirstParty":false,"canonicalSlug":"contract-renewal-inventories-duplicate-key-report-secondary-measure-9cc120f6"}