CSV dialect format

csv-dialect-format · version 1.0.0 · CSV & tables · free, no key needed

Format string rows as CSV for an explicit dialect, quoting a one-field empty record when it can.

Use when you need to: format string rows with an explicit csv dialect · write rfc 4180 quoted csv fields · serialize string cells with a chosen delimiter.

Decide before calling

Read the versioned contract and the supported scope below. Reuse csv-dialect-format@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use csv-dialect-format@1.0.0 for format string rows with an explicit csv dialect. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "dialect": {
    "delimiter": ",",
    "quote": "\"",
    "escape": "double",
    "record_separator": "\r\n",
    "header": "absent"
  },
  "quoting": "minimal",
  "rows": [
    [
      "aaa",
      "bbb",
      "ccc"
    ],
    [
      "zzz",
      "yyy",
      "xxx"
    ]
  ]
}

Response:

{
  "result": {
    "csv": "aaa,bbb,ccc\r\nzzz,yyy,xxx\r\n"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "csv-dialect-format",
  "version": "1.0.0",
  "input": {
    "dialect": {
      "delimiter": ",",
      "quote": "\"",
      "escape": "double",
      "record_separator": "\r\n",
      "header": "absent"
    },
    "quoting": "minimal",
    "rows": [
      [
        "aaa",
        "bbb",
        "ccc"
      ],
      [
        "zzz",
        "yyy",
        "xxx"
      ]
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/csv-dialect-format/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"dialect":{"delimiter":",","quote":"\"","escape":"double","record_separator":"\r\n","header":"absent"},"quoting":"minimal","rows":[["aaa","bbb","ccc"],["zzz","yyy","xxx"]]}'

The machine-readable contract is at /v1/tools/csv-dialect-format/versions/1.0.0.

CLI

node cli.mjs run csv-dialect-format 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.