{"uid":"cap_ZRzy20DTTZb1vQQnOVHRp","slug":"csv-trim-cells-f03db25c","name":"CSV Trim Cells","description":"CSV Trim Cells: CSV Trim Cells trims surrounding whitespace from every bounded CSV cell from bounded caller-supplied values without an external provider. Call CSV Trim Cells 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 Trim Cells as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, s…","url":"https://api.delx.ai/api/v1/x402/csv-trim-cells","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to CSV Trim Cells; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"csv":"id,name\n1,Ada"},"schema":"delx/util-csv-trim-cells/v1","status":"pass","evidence":{"retained":false,"input_sha256":"2975a664dd731c637235b31a776ace9e587b75a46d372193dc67a9a52fea855f","external_calls":0},"operation":"data_batch:csv_trim_cells"}},"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_gv3E48J6sSyXWAUNT-45E","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":"Trims surrounding whitespace from every cell in a caller-supplied CSV string, returning normalized values with counts and a versioned result contract.","exampleAgentPrompt":"Can you trim all the surrounding whitespace from every cell in this CSV before I send it to the downstream tool? Here's the text: 'Name , Age , City\\nAlice , 30 , New York '","exampleUseCases":[{"title":"Clean CSV before database import","prompt":"I have a CSV export from our CRM that has a bunch of extra spaces around the values — can you trim all the whitespace from every cell so I can import it cleanly into the database?"},{"title":"Normalize pipeline data for strict contract","prompt":"Before I hand this CSV batch off to the fulfillment service, can you strip the leading and trailing whitespace from all cells? It has a strict schema and extra spaces will cause rejections."},{"title":"Sanitize user-uploaded CSV file","prompt":"A user uploaded this CSV and it looks like a lot of fields have extra padding spaces — can you clean up all the cell whitespace so the data is normalized before we process it?"}],"resultDescription":"Returns a versioned deterministic JSON object containing the trimmed CSV text with all cell whitespace removed, counts of how many cells were modified, normalized cell values, and a versioned result contract indicating the transformation outcome.","failureModes":["Input text exceeds 8192 character limit — returns validation error","Malformed or non-CSV input may produce unexpected trimming results","Empty input string returns empty or minimal result","Network or payment authorization failure returns 402 or connection error"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, stateless way to strip surrounding whitespace from all cells in a CSV string before passing structured data to a downstream tool or system with a strict schema contract. Prefer it over custom code when running in an agent context where reliability, versioned output contracts, and zero-retention processing matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:14:49.684Z","isFirstParty":false}