Skip to content

Check gateway tool results against their listed output schema #2920

Open

Description

@ChrisJBurns

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

Done when

  • 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).

Activity

  1. ningsiyuan1024 commented on Nov 26, 2026

    @ningsiyuan1024

    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?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions