Form response check

form-response-check · version 1.0.0 · Forms · free, no key needed

Report missing required answers, nulls, type failures, and choice failures.

Use when you need to: check form completeness · check form answers.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "definition": {
    "fields": [
      {
        "id": "email",
        "label": "Email",
        "type": "string",
        "required": true
      },
      {
        "id": "nickname",
        "label": "Nickname",
        "type": "string",
        "required": false
      }
    ]
  },
  "answers": {
    "nickname": ""
  }
}

Response:

{
  "result": {
    "mode": "answers",
    "complete": false,
    "issues": [
      {
        "field_id": "email",
        "code": "missing_required"
      }
    ],
    "unknown_fields": [],
    "counts": {
      "fields": 2,
      "valid": 1,
      "missing_required": 1,
      "missing_optional": 0,
      "null_not_allowed": 0,
      "type_mismatch": 0,
      "choice_not_allowed": 0,
      "duplicate_multi": 0,
      "unknown_fields": 0,
      "empty": 1
    }
  }
}

How to call it

MCP

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

{
  "id": "form-response-check",
  "version": "1.0.0",
  "input": {
    "definition": {
      "fields": [
        {
          "id": "email",
          "label": "Email",
          "type": "string",
          "required": true
        },
        {
          "id": "nickname",
          "label": "Nickname",
          "type": "string",
          "required": false
        }
      ]
    },
    "answers": {
      "nickname": ""
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/form-response-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"definition":{"fields":[{"id":"email","label":"Email","type":"string","required":true},{"id":"nickname","label":"Nickname","type":"string","required":false}]},"answers":{"nickname":""}}'

The machine-readable contract is at /v1/tools/form-response-check/versions/1.0.0.

CLI

node cli.mjs run form-response-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.