diff --git a/src/mcp/server/fastmcp/server.py b/src/mcp/server/fastmcp/server.py index d86fa85e..cacf41dc 100644 --- a/src/mcp/server/fastmcp/server.py +++ b/src/mcp/server/fastmcp/server.py @@ -362,7 +362,7 @@ class FastMCP(Generic[LifespanResultT]): annotations: Optional ToolAnnotations providing additional tool information structured_output: Controls whether the tool's output is structured or unstructured - If None, auto-detects based on the function's return type annotation - - If True, unconditionally creates a structured tool (return type annotation permitting) + - If True, creates a structured tool (return type annotation permitting) - If False, unconditionally creates an unstructured tool """ self._tool_manager.add_tool( @@ -395,7 +395,7 @@ class FastMCP(Generic[LifespanResultT]): annotations: Optional ToolAnnotations providing additional tool information structured_output: Controls whether the tool's output is structured or unstructured - If None, auto-detects based on the function's return type annotation - - If True, unconditionally creates a structured tool (return type annotation permitting) + - If True, creates a structured tool (return type annotation permitting) - If False, unconditionally creates an unstructured tool Example: diff --git a/src/mcp/server/fastmcp/utilities/func_metadata.py b/src/mcp/server/fastmcp/utilities/func_metadata.py index 6d07cf4d..3289a5aa 100644 --- a/src/mcp/server/fastmcp/utilities/func_metadata.py +++ b/src/mcp/server/fastmcp/utilities/func_metadata.py @@ -187,7 +187,7 @@ def func_metadata( the model. structured_output: Controls whether the tool's output is structured or unstructured - If None, auto-detects based on the function's return type annotation - - If True, unconditionally creates a structured tool (return type annotation permitting) + - If True, creates a structured tool (return type annotation permitting) - If False, unconditionally creates an unstructured tool If structured, creates a Pydantic model for the function's result based on its annotation.