{"uid":"cap_ed-HZ6ukcFsykJmn9cbqz","slug":"writerslogic-csv-dialect-detector-687363a5","name":"WritersLogic CSV Dialect Detector","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/csv-dialect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":200000,"description":"CSV text, up to 200000 characters. Detection samples the first 50000; structure checks cover all of it."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qAQXJqoNGp2bwie8sDRI5","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects CSV dialect properties (delimiter, quote character, line terminator, BOM, header row, preamble) from raw CSV text per RFC 4180, returning scored candidates and header repair suggestions","exampleAgentPrompt":"Can you detect the dialect of this CSV text for me — figure out the delimiter, quote character, line ending, whether there's a BOM, and if there's a header row or any preamble lines before it?","exampleUseCases":[{"title":"Parsing unknown export from third-party system","prompt":"I just received a CSV export from our ERP system and I'm not sure if it uses commas, semicolons, or tabs as delimiters — can you analyze this raw CSV text and tell me exactly what dialect it's using, including the quote character and whether there's a header row?"},{"title":"Detecting duplicate or malformed column headers","prompt":"Before I load this CSV into our pipeline, can you check the raw text for any empty, duplicate, or BOM-polluted column names and tell me what the corrected header names should be?"},{"title":"Resolving ambiguous single-column CSV format","prompt":"I have this CSV snippet that might be a single-column file or might just have a weird delimiter — can you run dialect detection on it and tell me if it comes back as unknown or if there's a clear winner?"}],"resultDescription":"Returns all candidate dialects with confidence scores, the detected delimiter, quote character, line terminator, BOM presence, header row offset (preamble lines count), whether a header exists, each ragged row paired with its physical line number, and header repair suggestions (empty, duplicate, or BOM-polluted names with deterministic replacements). Reports 'unknown' when two dialects score equally or the file appears to be single-column.","failureModes":["Returns 'unknown' dialect when two candidates score equally well — no guessing is performed","Returns 'unknown' for single-column files where delimiter detection is ambiguous","Input text truncated to 50000 characters for detection sampling (structure checks cover full 200000-char input)","Does not coerce types or repair data rows — only dialect and header metadata is returned","Empty or whitespace-only input may yield no candidates"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically parse a CSV file of unknown origin and must first determine its dialect before processing. It is especially valuable when dealing with international exports (semicolon-delimited), TSV files, pipe-delimited files, or files with preamble rows above the header. Prefer this over generic CSV parsers when you need RFC 4180-compliant detection that handles quoted delimiters and embedded CRLFs correctly. It does not fix data rows — for type coercion or spreadsheet hazards, pair with csv-roundtrip afterwards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:38:22.176Z","isFirstParty":false,"canonicalSlug":"writerslogic-csv-dialect-detector-687363a5"}