{"uid":"cap_fe1PAxgCf6cZBqzG0tsLn","slug":"csv-column-count-check-c2c7d175","name":"CSV Column Count Check","description":"CSV Column Count Check: CSV Column Count Check checks every CSV row against an expected column count from bounded caller-supplied values without an external provider. Call CSV Column Count Check before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for CSV Column Count Check as versioned deterministic JSON. Price: $0.001 USDC via…","url":"https://api.delx.ai/api/v1/x402/csv-column-count-check","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to CSV Column Count Check; used only for this bounded calculation and processed in memory without retention."},"expected_columns":{"type":"integer","description":"Expected Columns supplied to CSV Column Count Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"passed":true,"invalid_rows":[],"header_columns":2},"schema":"delx/util-csv-column-count-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"43c14336a55089e6418f34c8148a557706d0aeff75358365faa1dca16fa7cf64","external_calls":0},"operation":"data_batch:csv_column_count_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MrHiykq3IXd_JcnVtoQ7X","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates every row in a CSV string against an expected column count and returns detailed counts, normalized values, and a versioned validation result.","exampleAgentPrompt":"Check this CSV text to make sure every row has exactly 5 columns and tell me which rows are malformed: \"name,age,city,country,zip\\nAlice,30,NYC,US,10001\\nBob,25,LA,US\\nCarol,28,Chicago,US,60601\"","exampleUseCases":[{"title":"Preflight check before database import","prompt":"Before I load this CSV into the database, check that every row has exactly 8 columns — here's the data: \"id,name,email,phone,city,state,country,zip\\n1,Alice,alice@example.com,555-1234,NYC,NY,US,10001\\n2,Bob,bob@example.com,555-5678,LA,CA,US\""},{"title":"Validate agent-generated batch output","prompt":"My agent just produced a CSV batch plan with 4 expected columns per row — can you validate this CSV and flag any rows that don't match: \"task,priority,owner,deadline\\nWrite report,high,Alice,2024-06-01\\nReview PR,medium,Bob\\nDeploy app,low,Carol,2024-06-03\""},{"title":"Quality gate for third-party data feed","prompt":"I received a CSV from a vendor that's supposed to have 6 columns per row. Run a column count check on it and tell me if anything is off: \"sku,name,price,stock,category,warehouse\\nA001,Widget,9.99,100,Tools,WH1\\nA002,Gadget,14.99,50,Tools\\nA003,Doohickey,4.99,200,Parts,WH2\""}],"resultDescription":"Returns a versioned deterministic JSON object containing per-row validation findings, actual column counts per row, expected vs actual mismatches, normalized values, and an overall pass/fail result for the CSV against the expected column count.","failureModes":["CSV text exceeds 8192 character limit — request rejected","expected_columns not provided or not a positive integer — validation cannot proceed","malformed input that is not parseable as CSV — may return error or unexpected counts","empty CSV text — returns zero rows validated"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic, no-side-effect check that every row in a CSV has the correct number of columns before passing structured data to a downstream system with a strict schema contract. It is ideal as a preflight validation step in ETL pipelines, agent batch workflows, or any context where malformed rows would cause downstream failures. Prefer it over manual parsing when you need a versioned, auditable result contract.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:00:15.567Z","isFirstParty":false}