Skip to content

TransformedTool: output_schema=False documented but not implemented #3834

@strawgate

Description

@strawgate

The TransformedTool.from_tool() docstring previously claimed output_schema=False would "disable output schema and structured outputs," but this was never implemented. Passing False would either raise a Pydantic validation error (on the Tool model) or get converted to None which is indistinguishable from "inherit from parent."

A proper implementation needs a way to distinguish "no schema was specified" (NotSet → inherit) from "explicitly disable structured output" (False → strip structured_content from results). This requires either a sentinel value that survives Pydantic model storage or a separate boolean field.

The false documentation was removed in #3823 to avoid misleading users.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement to existing functionality. For issues and smaller PR improvements.serverRelated to FastMCP server implementation or server-side functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions