# WritersLogic CSV Round-Trip Hazard Checker

> WritersLogic CSV Round-Trip Hazard Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Parses CSV text and reports per-cell hazards that would corrupt data on a parse-serialize-parse round trip or when opened in Excel/Sheets, including leading-zero stripping, numeric overflow, formula injection, coercion, and null ambiguity.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/csv-roundtrip?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-csv-round-trip-hazard-checker-7666e5b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m-MPgj5GO-sNqaymV8Qrk

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 writerslogic-csv-round-trip-hazard-checker-7666e5b4 -d '<json body>'
```

Example prompt: Scan this CSV for any round-trip hazards — I'm using a pipe delimiter, the first row is a header, treat the 'account_id' and 'sku' columns as identifiers, and flag anything that would get corrupted when someone opens it in Excel or imports it into our system: [CSV text here].

## When to prefer this

Use this endpoint when an AI agent exports, ingests, or passes CSV data between systems and must guarantee that identifiers (e.g. product codes, account numbers with leading zeros), large integers, dates, and special characters will not be silently corrupted by Excel, Google Sheets, or a downstream parser. Prefer it over generic CSV parsers when you need exact byte-offset attribution of hazards, formula-injection detection for security, or round-trip fidelity verification rather than data conversion.

## Known failure modes

- CSV text exceeds 200,000 character limit — request rejected
- Invalid dialect character (multi-character delimiter or quote) — validation error
- Column type map references more than 200 columns — error returned
- Malformed JSON in types map — parse error
- CSV with no parseable structure returns empty hazard list or structural error
- Unknown type value in column map — error or fallback to string type

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured list of per-cell hazard records, each containing: row index, column name, physical line number, byte offset, hazard type (e.g. leading_zero_strip, formula_injection, integer_overflow, date_coercion, cell_too_long, null_ambiguity, embedded_newline), and the original cell value. No data is modified or escaped — only hazards are reported.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 200000,
   "description": "CSV text, up to 200000 characters."
  },
  "types": {
   "description": "Object mapping column name to one of string, identifier, integer, decimal, boolean, date, datetime (max 200). Unlisted columns are \"string\". Use \"identifier\" for digit strings that must keep leading zeros."
  },
  "dialect": {
   "type": "object",
   "properties": {
    "quote": {
     "type": "string",
     "maxLength": 1,
     "description": "Default '\"'."
    },
    "header": {
     "type": "boolean",
     "description": "First row is a header (default true). Without one, columns are named 0, 1, 2..."
    },
    "delimiter": {
     "type": "string",
     "maxLength": 1,
     "description": "Default \",\"."
    }
   },
   "additionalProperties": false
  },
  "nullToken": {
   "type": "string",
   "maxLength": 20,
   "description": "Text that means null (e.g. \"NULL\", \"\\\\N\"). Default: none, so only an unquoted empty field is null."
  },
  "spreadsheet": {
   "type": "boolean",
   "description": "Check Excel/Sheets coercion hazards (default true)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-csv-round-trip-hazard-checker-7666e5b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
