Skip to content

Make schema warnings toggleable (and/or remove them completely) #2205

Closed

Description

@Izelude

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

  1. added
    enhancement
    v2
    on Sep 1, 2026
  2. cliffhall commented on Sep 1, 2026

    @cliffhall
    Member

    Triage: Priority Medium (total 6)

    • Severity 4 — two things compound here. The scroll cost lands on every tool selection with no way to collapse, and the specific 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.
    • Urgency 2 — wanted eventually; nothing is blocked on it
    • Bonuses: none (no bug label, 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-type rule is a judgment about what the portability scanner should claim. They may be worth splitting.

  3. added this to the v2.6.0 milestone on Sep 5, 2026
  4. self-assigned this
    on Sep 7, 2026
  5. cliffhall commented on Sep 7, 2026

    @cliffhall
    Member

    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 as inspector.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-union rule contradicts OpenAI's structured-outputs guidance for nullable fields — is tracked separately as #2286. It changes the CLI's --strict exit code and the TUI's detail pane as well as this panel, so it needed its own issue rather than riding a usability fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions