Fixed width records validate

fixed-width-records-validate · version 1.0.0 · Structured formats · free, no key needed

Validate fixed-width records with explicit offsets, widths, alignment, padding, Unicode units, and bounded diagnostics.

Use when you need to: validate fixed width records · audit positional row lengths · detect invalid field padding.

Decide before calling

Read the versioned contract and the supported scope below. Reuse fixed-width-records-validate@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 fixed-width-records-validate@1.0.0 for validate fixed width records. 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:

{
  "text": "A ",
  "fields": [
    {
      "name": "a",
      "offset": 0,
      "width": 2,
      "alignment": "left",
      "padding": " "
    }
  ],
  "unit": "code_point",
  "line_endings": "lf"
}

Response:

{
  "result": {
    "reference_version": "Python 3.13 str slicing; GNU Coreutils cut 9.7",
    "valid": true,
    "lines_in": 1,
    "errors": []
  }
}

How to call it

MCP

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

{
  "id": "fixed-width-records-validate",
  "version": "1.0.0",
  "input": {
    "text": "A ",
    "fields": [
      {
        "name": "a",
        "offset": 0,
        "width": 2,
        "alignment": "left",
        "padding": " "
      }
    ],
    "unit": "code_point",
    "line_endings": "lf"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/fixed-width-records-validate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"text":"A ","fields":[{"name":"a","offset":0,"width":2,"alignment":"left","padding":" "}],"unit":"code_point","line_endings":"lf"}'

The machine-readable contract is at /v1/tools/fixed-width-records-validate/versions/1.0.0.

CLI

node cli.mjs run fixed-width-records-validate 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.