You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Check gateway tool results against their listed output schema #2920
Depends on:#2728 (gateway tool listing over HTTP through the gateway) Removes shortcut: gateway tool results skip output-schema validation
Problem
A tool reached through the MCP gateway is not checked against the output schema its listing declares, while every other MCP tool is. A gateway tool can return structured content that doesn't match what it declared, and the model receives it without the usual validation note.
Implements
Parity with the output-schema check other MCP tools get; no new design rule.
implementation.md secrecy test bullet, applied to output schemas from the gateway listing.
Scope
The output schema from the gateway listing is kept with the frozen catalogue entry, under the same freeze, size, and private-string checks as the input schema.
Gateway tool and query results are validated against it, with the same model-visible note as other MCP tools.
A gateway tool whose structured content doesn't match its listed output schema produces the same validation note as a non-gateway MCP tool; a matching result produces none.
An output schema carrying private material is refused at catalogue freeze, as an input schema is.
With the identity broker flag off, nothing changes.
The PR carries an API compatibility statement (gateway results gain model-visible validation notes).
I'd like to work on this now that #2932 carries the output schema in the listing. I'll compare the validation note for the same structured result through a gateway and a direct MCP call, and cover the broker-disabled path. Could you assign this to me?
Activity
ningsiyuan1024 commentedon Nov 26, 2026
I'd like to work on this now that #2932 carries the output schema in the listing. I'll compare the validation note for the same structured result through a gateway and a direct MCP call, and cover the broker-disabled path. Could you assign this to me?