# agent402.tools CSV Lint

> agent402.tools CSV Lint is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Validates CSV text for structural integrity: consistent column counts, properly closed quotes, and delimiter detection, returning row/column counts and any errors found.

## Facts

- Endpoint: POST https://agent402.tools/api/csv-lint
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-csv-lint-b8f73f98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RKp9UuAZ4GHo8-hbrhCCi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-csv-lint-b8f73f98 -d '<json body>'
```

Example prompt: Can you check this CSV for structural problems — consistent column counts, closed quotes, and correct delimiter? Here's the text: 'name,age,city\nAlice,30,New York\nBob,25'

## When to prefer this

Use this endpoint when you need a lightweight, pure-CPU check of CSV structural integrity before ingesting or processing data — especially to catch column count inconsistencies and quote escaping issues without loading the data into a full parser or database.

## Known failure modes

- Empty or missing 'text' field returns an error
- Extremely large CSV text may time out or be rejected
- Ambiguous delimiter may be misdetected if not specified
- Non-text binary content will fail parsing
- Malformed JSON request body returns a 400 error

## How this service works

Validate CSV structure: consistent column counts across rows, properly closed quotes, delimiter detection. Returns row/column counts and any structural errors. Pure CPU.

## Output

Returns the number of rows and columns found, the detected or confirmed delimiter, and a list of any structural errors such as rows with inconsistent column counts or improperly closed quotes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "CSV text to validate"
  },
  "delimiter": {
   "type": "string",
   "description": "column delimiter (default \",\")"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": 3,
  "valid": true,
  "errors": [],
  "columns": 3,
  "delimiter": ","
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-csv-lint-b8f73f98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
