{"uid":"cap_k0ZI360QVMvJvjE8fmcY4","slug":"csv-rename-columns-66520f56","name":"CSV Rename Columns","description":"CSV Rename Columns: CSV Rename Columns renames CSV header columns using a caller mapping from bounded caller-supplied values without an external provider. Call CSV Rename Columns 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 Rename Columns as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First…","url":"https://api.delx.ai/api/v1/x402/csv-rename-columns","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":8192,"description":"Text supplied to CSV Rename Columns; used only for this bounded calculation and processed in memory without retention."},"mapping":{"type":"object","description":"Mapping supplied to CSV Rename Columns; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"csv":"firstName,id\nAda,1","headers":["firstName","id"]},"schema":"delx/util-csv-rename-columns/v1","status":"pass","evidence":{"retained":false,"input_sha256":"ce661e0e0fda1bc758af27bedb3db0d1e9c03431eb63697fd9ce351321ade546","external_calls":0},"operation":"data_batch:csv_rename_columns"}},"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_9TZW7qjVkiVhizbE1K5bt","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":"Renames CSV header columns according to a caller-supplied mapping, returning the transformed CSV with counts and normalized values as deterministic JSON.","exampleAgentPrompt":"I have a CSV where the columns are named 'fname', 'lname', and 'amt' — can you rename them to 'first_name', 'last_name', and 'amount' so I can hand it off to the billing tool?","exampleUseCases":[{"title":"Normalizing export before CRM import","prompt":"I've got a CSV export from our old system with headers like 'cust_id', 'cust_nm', and 'rev' — rename them to 'customer_id', 'customer_name', and 'revenue' so it matches what the CRM expects."},{"title":"Standardizing analytics pipeline input","prompt":"Our data pipeline needs columns named 'event_date', 'user_id', and 'session_duration', but the raw CSV has 'date', 'uid', and 'dur' — can you rename those headers for me?"},{"title":"Preparing CSV for downstream agent tool","prompt":"Before I send this CSV to the reporting agent, I need to rename 'qty' to 'quantity' and 'prc' to 'price' — the downstream tool won't accept anything else."}],"resultDescription":"Returns a versioned deterministic JSON object containing the transformed CSV with renamed headers, counts of columns renamed, normalized values, and a versioned result contract confirming the transformation outcome.","failureModes":["Mapping references a column name not found in the CSV headers — transformation may be partial or return a validation error","CSV text exceeds 8192 character limit — request rejected","Mapping object exceeds 128 properties — request rejected","Malformed CSV input (e.g. inconsistent delimiters) — may cause unexpected header parsing","Empty mapping object — CSV returned unchanged with zero renames counted"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically rename CSV column headers to match a downstream tool's strict schema contract, without needing an external provider or storing data. Prefer this over general-purpose code execution when you want a deterministic, versioned result with counts and normalized output rather than raw script output. Ideal as a lightweight pre-processing step in a data pipeline or multi-agent workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:59:20.042Z","isFirstParty":false}