{"uid":"cap_4i5Lzwy9efps5rAH_ZpK6","slug":"csv-cleaner-trim-fields-standardize-format-2b2119f6","name":"CSV Cleaner – Trim Fields & Standardize Format","description":"Normalize small caller-supplied CSV payloads, trim fields and standardize row width and line endings.","url":"https://x402-zoo.lolagent.workers.dev/api/csv-clean","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["csv"],"properties":{"csv":{"type":"string"},"delimiter":{"type":"string"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q6HdjtCHnpMNlBUEwn6QQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes a caller-supplied CSV string by trimming whitespace from fields, standardizing row widths, and fixing line endings.","exampleAgentPrompt":"Can you clean up this CSV for me — trim any extra whitespace from the fields and standardize the line endings? Here's the data: 'name, age , city\\nAlice , 30, New York \\nBob,25 , Boston'","exampleUseCases":[{"title":"Sanitize user-uploaded CSV before import","prompt":"A user just pasted this CSV into our form and it's full of extra spaces around the values — can you clean it up so I can import it into the database? Here it is: 'id , name , email \\n 1 , Jane , jane@example.com \\n 2, John , john@example.com'"},{"title":"Normalize CSV export from legacy system","prompt":"I exported this data from our old system and the line endings and field widths are all over the place. Can you normalize this CSV so all fields are trimmed and the rows are consistent? CSV: 'sku,description ,price\\r\\nABC , Widget A , 9.99\\r\\nDEF,Widget B ,14.99 '"},{"title":"Prep CSV data for markdown table conversion","prompt":"Before I convert this CSV into a Markdown table, I need to clean it up — please trim all the fields and fix the line endings. Here's the CSV with a semicolon delimiter: 'product ; qty ; price \\n Apple ; 10 ; 1.50 \\n Banana ; 5 ; 0.75 '"}],"resultDescription":"A cleaned CSV string with all field values trimmed of leading and trailing whitespace, standardized row widths, and consistent line endings. The structure and delimiter of the original CSV are preserved.","failureModes":["Missing 'csv' query parameter returns an error indicating required input is absent","Malformed or unparseable CSV content may return an error or produce unexpected output","Extremely large CSV payloads may be rejected or truncated due to size limits on the serverless worker","Unsupported delimiter characters may not be handled correctly"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call CSV normalization step — particularly for small, caller-supplied payloads that need trimming and line-ending standardization before further processing, import, or display. Prefer it over building custom parsing logic when the task is purely formatting cleanup rather than schema validation or type conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:04:35.318Z","isFirstParty":false}