MCP Shipyard
← Rules catalog

Array parameters in an MCP inputSchema need an items schema

An array parameter with no items schema tells the model nothing about what to send. Declare items and ideally maxItems. Minor, warn-level.

minorschema.array-unboundedGeneral

Give every array parameter an items schema, and ideally a maxItems. The rule schema.array-unbounded is a minor, warn-level finding for general clients.

What you see

  • A scan reports schema.array-unbounded: Arrays without items: order_ids.
  • The check only tests for a missing items. The rule id mentions "unbounded", but the code does not check maxItems.

Why it happens

The parameter was declared as { "type": "array" } and the element type lived only in the author's head.

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 | (.inputSchema.properties // {}) | to_entries[] | select(.value.type == "array" and (.value.items | not)) | "\($t.name).\(.key)"'

Fix

"order_ids": {
  "type": "array",
  "items": { "type": "string" },
  "maxItems": 50,
  "description": "Order ids from list_orders, for example ord_1042."
}

Verify

The command prints nothing, then re-scan.

Which clients care

General, per the rule.

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