{"uid":"cap_Urdkx83tSQMVpATzZxocn","slug":"travel-administration-duplicate-key-report-secondary-measure-weighted-c9db3fc3","name":"Travel Administration — Duplicate Key Report + Secondary-Measure Weighted Mean","description":"Travel administration — Duplicate key report + Secondary-measure weighted mean: Duplicate key report + Secondary-measure weighted mean for supplied travel administration records (trip_count, recorded_cost). 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-14-067?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","team_group","date","trip_count","recorded_cost"],"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},"trip_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"recorded_cost":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","team_group":"group-a","trip_count":10,"recorded_cost":1},{"date":"2026-10-02","row_id":"row-2","team_group":"group-b","trip_count":20,"recorded_cost":2},{"date":"2026-10-03","row_id":"row-3","team_group":"group-a","trip_count":15,"recorded_cost":3},{"date":"2026-10-04","row_id":"row-4","team_group":"group-b","trip_count":30,"recorded_cost":4}],"maxItems":200,"minItems":1},"field":{"enum":["trip_count","recorded_cost"],"type":"string","default":"trip_count"}}},"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_YNHElQFEsf02FIuFHUQWd","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 travel administration data: detects duplicate row_id keys and computes a weighted mean of a secondary measure (trip_count or recorded_cost) across up to 200 rows.","exampleAgentPrompt":"Check my travel administration data for duplicate row IDs and also compute the weighted mean of trip_count — here are my rows: row-1, group-a, 2026-10-01, trip_count=10, recorded_cost=1; row-2, group-b, 2026-10-02, trip_count=20, recorded_cost=2; row-3, group-a, 2026-10-03, trip_count=15, recorded_cost=3.","exampleUseCases":[{"title":"Duplicate key audit for travel records","prompt":"I have 150 travel administration records with columns row_id, team_group, date, trip_count, and recorded_cost — can you run a duplicate key report to find any repeated row IDs and also calculate the weighted mean of recorded_cost across all rows?"},{"title":"Weighted mean of trip counts by team","prompt":"Run an analysis on my corporate travel data: flag any duplicate row IDs and compute the weighted mean of trip_count — I'll send you the full dataset of around 80 rows covering Q3 trips for group-a and group-b."},{"title":"Pre-import data validation for travel expenses","prompt":"Before I import these 200 travel expense rows into our system, check them for duplicate row_id entries and give me the weighted mean of recorded_cost so I can spot anomalies early."}],"resultDescription":"Returns two independent reports: (1) a duplicate key report identifying any row_ids that appear more than once in the submitted dataset, and (2) a weighted mean calculation for the selected numeric field (trip_count or recorded_cost) across all submitted rows. No external data is fetched; all analysis is performed locally on the supplied records.","failureModes":["Empty or missing rows array returns validation error","More than 200 rows submitted exceeds the row limit and returns an error","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Unrecognized field value (not trip_count or recorded_cost) causes enum validation error","Null values for both numeric fields may produce undefined weighted mean result","Malformed row objects missing required properties return schema validation errors"],"whenToPreferThis":"Choose this endpoint when you need to simultaneously audit travel administration data for duplicate row identifiers and compute a weighted mean of a numeric measure (trip_count or recorded_cost) in a single $0.01 call. It is ideal for pre-import validation pipelines, lightweight ETL data quality checks, or periodic audits of corporate travel records where no external lookups or predictions are required. Prefer this over general-purpose analytics tools when your dataset fits within 200 rows and you specifically need both a duplicate key report and a weighted mean in one operation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:15.108Z","isFirstParty":false,"canonicalSlug":"travel-administration-duplicate-key-report-secondary-measure-weighted-c9db3fc3"}