Repository navigation
Description
Which client?
Web
The problem
On the tool page when selecting a specific tool there are Schema portability warnings.
This may be helpful in certain cases but it gets very unwieldy when there is a lot of them.
It requires for every tool to first scroll past a long list of output and input schema warnings before getting to the actual input parameters to fill.
Additionally i think the warnings are quite opinionated and actually contradict guidance from major LLM providers.
The main one i am encountering is:
`type` is an array (["string","null"]). The array form is legal JSON Schema, but several MCP clients read `type` as a single string and either reject the tool or drop the constraint.
Fix: Split it into `anyOf` branches, each with a single `type` — `{"anyOf": [{"type": "string"}, {"type": "null"}]}`. (Making the property optional instead is a different contract: absent is not the same as `null`.)
OpenAI documentation specifically mentions that modelling schemas which target their strict json schema restrictions should use union types to model nullable required fields.
(https://developers.openai.com/api/docs/guides/structured-outputs)
Concretely they write:
Although all fields must be required (and the model will return a value for each parameter), it is possible to emulate an optional parameter by using a union type with null.
and give the following example:
...
"unit": {
"type": ["string", "null"],
"description": "The unit to return the temperature in",
"enum": ["F", "C"]
}
...
Though my main concern is usability i think its worth thinking about if that warning is actually sensible or not entirely.
Either way even if the warning stays i would like to be able to at the very least collapse all the schema warnings (ideally globally not per tool), so i don't have to scroll past them on every tool change.
Solution you have in mind (optional)
Add a global setting to suppress the warnings or globally collapse them.
Alternatives or workarounds you have tried
No response
Already built it locally?
No response
Before you submit
- I searched existing issues and this is not a duplicate.
- This is a request for the Inspector itself, not for the MCP specification or an SDK.
Activity
cliffhall commentedon Sep 1, 2026
Triage: Priority Medium (total 6)
type: ["string","null"]warning asserts a portability problem for a schema shape a major provider documents as the recommended way to model a nullable required field. A warning that overstates a defect in the server under test is worse than noise, which is what puts this above a 3.buglabel, no milestone, unassigned, not a sub-issue, no reporter priority set)Board: #28, Status
Incoming(awaiting maintainer review — no milestone yet).Note for review: the two asks are separable — a collapse/suppress setting is a self-contained UX change, while re-examining the array-
typerule is a judgment about what the portability scanner should claim. They may be worth splitting.cliffhall commentedon Sep 7, 2026
Shipped in #2285 (merged into
v2/main).The Schema portability section now opens collapsed behind an
N error(s), M warning(s)badge, using the same disclosure heading as the Skills pane's Conformance section, and the expand choice is global rather than per tool — persisted asinspector.schemaFindings.expanded, so opening it once keeps it open across tool selections and reloads.Two neighbouring fixes rode along on the same panel: the JSON editor is now bordered rather than a borderless slab, and the tool panel's scrollbar auto-hides instead of parking permanently down the side.
Your second point — that the
type-unionrule contradicts OpenAI's structured-outputs guidance for nullable fields — is tracked separately as #2286. It changes the CLI's--strictexit code and the TUI's detail pane as well as this panel, so it needed its own issue rather than riding a usability fix.feat(web): collapse the schema-portability section by default (modelc…