MCP Shipyard
← Rules catalog

MCP inputSchema required lists a property that is not declared

Every name in required must exist in properties, or clients cannot build a valid call. Fix typos and renamed parameters.

majorschema.required-not-in-propertiesGeneral

Make every name in inputSchema.required exist in inputSchema.properties. The rule schema.required-not-in-properties is a major finding. Its fix text says clients cannot build a valid call otherwise.

What you see

  • A scan reports schema.required-not-in-properties per tool: "required but not declared: order_id".

Why it happens

  1. A parameter was renamed in properties and not in required (orderId versus order_id).
  2. A parameter was removed but its required entry stayed.
  3. The schema is assembled from several fragments and the merge dropped some properties.
  4. Case or whitespace differences.

A model sees a required argument with no type, no description and no allowed values, so it guesses. The MCP tools spec requires inputSchema to be a valid JSON Schema object; the combination above is valid JSON Schema syntax but describes a parameter nobody can understand.

The same mismatch shows up after a refactor that renames a field in code but not in the published schema, which is why a schema test in CI is worth having: call tools/list in a test and assert that every required entry is a key of properties for every tool.

Check it yourself

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
 | jq -r '.result.tools[] | . as $t | (($t.inputSchema.required // []) - (($t.inputSchema.properties // {}) | keys)) as $missing | select($missing | length > 0) | "\($t.name): \($missing | join(", "))"'

Fix

Declare every required parameter with a type and a description:

{
  "type": "object",
  "properties": {
    "order_id": { "type": "string", "description": "Order id from list_orders, for example ord_1001" }
  },
  "required": ["order_id"]
}

Generate required from the same source as properties (a single zod or pydantic model) so they cannot drift. Then check schema.required-param-undescribed.

Verify

The jq command prints nothing, then re-scan.

Which clients care

Tagged general: any client that validates or builds arguments from the schema.

Source

MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server