Skip to content

Commit 7629fe6

Browse files
authored
Remove "unconditionally" from conditional description (#1289)
1 parent 4fb975c commit 7629fe6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mcp/server/fastmcp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def add_tool(
362362
annotations: Optional ToolAnnotations providing additional tool information
363363
structured_output: Controls whether the tool's output is structured or unstructured
364364
- If None, auto-detects based on the function's return type annotation
365-
- If True, unconditionally creates a structured tool (return type annotation permitting)
365+
- If True, creates a structured tool (return type annotation permitting)
366366
- If False, unconditionally creates an unstructured tool
367367
"""
368368
self._tool_manager.add_tool(
@@ -395,7 +395,7 @@ def tool(
395395
annotations: Optional ToolAnnotations providing additional tool information
396396
structured_output: Controls whether the tool's output is structured or unstructured
397397
- If None, auto-detects based on the function's return type annotation
398-
- If True, unconditionally creates a structured tool (return type annotation permitting)
398+
- If True, creates a structured tool (return type annotation permitting)
399399
- If False, unconditionally creates an unstructured tool
400400
401401
Example:

src/mcp/server/fastmcp/utilities/func_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def func_metadata(
187187
the model.
188188
structured_output: Controls whether the tool's output is structured or unstructured
189189
- If None, auto-detects based on the function's return type annotation
190-
- If True, unconditionally creates a structured tool (return type annotation permitting)
190+
- If True, creates a structured tool (return type annotation permitting)
191191
- If False, unconditionally creates an unstructured tool
192192
193193
If structured, creates a Pydantic model for the function's result based on its annotation.

0 commit comments

Comments
 (0)