JSON schema required missing

json-schema-required-missing · version 1.0.0 · JSON & JSONL · free, no key needed

List every property a JSON Schema 2020-12 "required" keyword demands but the instance lacks, with JSON Pointers.

Use when you need to: find missing required properties in llm json output · which required fields are missing from this json · list required keys absent at every nesting level.

Decide before calling

Read the versioned contract and the supported scope below. Reuse json-schema-required-missing@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 json-schema-required-missing@1.0.0 for find missing required properties in llm json output. 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:

{
  "schema": {
    "type": "object",
    "properties": {
      "user": {
        "type": "object",
        "required": [
          "id",
          "email"
        ]
      }
    },
    "required": [
      "user",
      "total"
    ]
  },
  "instance": {
    "user": {
      "id": 7
    }
  }
}

Response:

{
  "result": {
    "valid": false,
    "count": 2,
    "truncated": false,
    "missing": [
      {
        "instance_pointer": "",
        "property": "total",
        "property_pointer": "/total",
        "keyword_location": "/required",
        "schema_pointer": "/required"
      },
      {
        "instance_pointer": "/user",
        "property": "email",
        "property_pointer": "/user/email",
        "keyword_location": "/properties/user/required",
        "schema_pointer": "/properties/user/required"
      }
    ]
  }
}

How to call it

MCP

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

{
  "id": "json-schema-required-missing",
  "version": "1.0.0",
  "input": {
    "schema": {
      "type": "object",
      "properties": {
        "user": {
          "type": "object",
          "required": [
            "id",
            "email"
          ]
        }
      },
      "required": [
        "user",
        "total"
      ]
    },
    "instance": {
      "user": {
        "id": 7
      }
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-schema-required-missing/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"schema":{"type":"object","properties":{"user":{"type":"object","required":["id","email"]}},"required":["user","total"]},"instance":{"user":{"id":7}}}'

The machine-readable contract is at /v1/tools/json-schema-required-missing/versions/1.0.0.

CLI

node cli.mjs run json-schema-required-missing 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.