{"uid":"cap_X_ZOUtSIXb5okW1eKcgQs","slug":"cloud-usage-imports-csv-header-contract-check-94025940","name":"Cloud Usage Imports — CSV Header Contract Check","description":"Cloud usage imports — Header contract check: Header contract check for Cloud usage imports. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV header contract check report.","url":"https://market.datapackvibe.com/x402/assistant-bx-csv-cloud-usage-schema?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","default":"usage_id,reported_on,resource_id,used_units,billed_amount\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3","maxLength":100000,"minLength":1},"maximum":{"type":"number","default":1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"minimum":{"type":"number","default":-1000000000000,"maximum":1000000000000,"minimum":-1000000000000},"delimiter":{"enum":[",",";","\t"],"type":"string","default":","},"max_cell_length":{"type":"integer","default":1000,"maximum":5000,"minimum":1},"allowed_categories":{"type":"array","items":{"type":"string","default":"","maxLength":100,"minLength":1},"default":["group-a","group-b"],"maxItems":100,"minItems":0}}},"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_vW4olggF4-tU4Q8CxUhBI","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":"Validates the header contract of a cloud usage CSV file, checking column names, data types, and cell constraints for up to 1000 rows.","exampleAgentPrompt":"Can you check whether my cloud usage CSV file has valid headers and conforms to the expected contract? The file uses comma delimiters, and I want to make sure columns like usage_id, reported_on, resource_id, used_units, and billed_amount are all correctly formatted, with allowed categories group-a and group-b, and billed_amount values between 0 and 10000.","exampleUseCases":[{"title":"Pre-upload cloud billing CSV validation","prompt":"Before I push this cloud usage import file to our billing system, can you validate the CSV headers and check that all rows conform to the contract? Use comma as the delimiter, allow categories group-a and group-b, and flag anything where billed_amount is outside 0 to 50000."},{"title":"Automated pipeline data quality gate","prompt":"I need you to validate this cloud usage CSV as a quality gate in our ingestion pipeline — check the headers match usage_id, reported_on, resource_id, used_units, billed_amount, restrict categories to prod, dev, and staging, and make sure no cell exceeds 500 characters."},{"title":"Troubleshooting malformed usage import file","prompt":"Our cloud usage import keeps getting rejected — can you run a header contract check on this CSV to find what's wrong? It's semicolon-delimited, and the expected categories are us-east and eu-west, with unit values between 0 and 1000000."}],"resultDescription":"Returns a structured header contract check report indicating whether the CSV conforms to the declared schema, including column presence and ordering, data type conformance per column, out-of-range numeric values, disallowed category values, cell length violations, and row-level error details for up to 1000 rows.","failureModes":["CSV exceeds 100,000 character limit — rejected with size error","More than 1000 rows submitted — only header contract checked up to limit","Invalid delimiter specified — must be comma, semicolon, or tab","Empty CSV string submitted — validation cannot proceed","Cell values contain unrecognized categories not in allowed_categories list","Numeric values outside declared minimum/maximum bounds flagged as violations","Malformed quoted cells may cause parse errors if quoting is inconsistent"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, fast, and low-cost ($0.01 USDC) validation of a cloud usage CSV file's header contract before importing into a billing or analytics system. It is purpose-built for the cloud usage domain (usage_id, reported_on, resource_id, used_units, billed_amount schema) and supports configurable delimiters, category allowlists, and numeric bounds — making it ideal for automated pipeline quality gates or pre-upload sanity checks where full data enrichment is not needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T19:12:26.798Z","isFirstParty":false,"canonicalSlug":"cloud-usage-imports-csv-header-contract-check-94025940"}