Open-ended object parameters in an MCP tool schema
Untyped or free-form object parameters hide what a tool accepts and push it toward catch-all behaviour. Declare explicit properties. Minor, warn.
Replace untyped or free-form object parameters with explicit properties. The rule schema.free-object is a minor, warn-level finding for Claude and ChatGPT.
What you see
- A scan reports
schema.free-object:Open-ended parameters: filters. - A parameter is flagged when it has no type, enum, anyOf, oneOf, $ref, const or allOf, or when it is an
objectwith noproperties, noadditionalProperties: false, no typedadditionalPropertiesand no description.
Why it happens
A filters: {} or options: object parameter lets the tool accept anything without a schema change. The rule's fix text says open payloads hide what the tool accepts and push the tool toward catch-all behaviour. See catchall.generic-executor and catchall.method-param.
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 == "object" and (.value.properties | not)) | "\($t.name).\(.key)"'
Fix
- Before:
"filters": { "type": "object" } - After:
"filters": {
"type": "object",
"properties": {
"status": { "type": "string", "enum": ["open", "shipped", "cancelled"] },
"created_after": { "type": "string", "format": "date" }
},
"additionalProperties": false
}
Verify
The command prints nothing, then re-scan.
Which clients care
Claude and ChatGPT, per the rule.
Source
Claude review criteria: https://claude.com/docs/connectors/building/review-criteria
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.