CSV cleaning: normalise, deduplicate, and tidy a CSV
submit_csv_cleanClean a CSV and return the cleaned file plus a record of every change. Trims cells, makes duplicate and empty column names unique, drops blank and duplicate rows, and pads or truncates ragged rows. Choose this when you want the CSV itself tidied and a change log: cells trimmed, column names made unique, blank and duplicate rows removed, ragged rows padded or truncated. Do not choose this when you only need the problems listed (use csv-preflight), or when deciding which duplicate to keep needs a business rule: this keeps the first occurrence. Example requests: Clean this CSV: trim the fields, drop the blank lines and remove duplicate rows. | Normalise this export before I load it, and tell me what you changed. | Fix the duplicate column names and ragged rows in this CSV.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": "<inputs>",
"authorized_by": "<authorized_by>"
},
"name": "submit_csv_clean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| quote_id | No | The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued. | |
| authorized_by | Yes | Identifier of the human or agent authorizing this job. | |
| accepted_price | No | The amount accepted, exactly as quoted (for example "5.00" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | No | ||
| state | Yes | ||
| job_id | Yes | ||
| artifacts | No | ||
| access_token | No | Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job. | |
| verification | No | Independent verification. verification.ok = false means the job failed, not a partial success. | |
| capability_id | No |