From 5c75af1fbcf2fab98bb897c35c68b9821157aa1d Mon Sep 17 00:00:00 2001 From: William Easton Date: Fri, 6 Jun 2025 16:37:48 -0500 Subject: [PATCH] updated add tool docstring --- src/fastmcp/server/server.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.py index a22af3d26..9928ad152 100644 --- a/src/fastmcp/server/server.py +++ b/src/fastmcp/server/server.py @@ -490,11 +490,7 @@ class FastMCP(Generic[LifespanResultT]): with the Context type annotation. See the @tool decorator for examples. Args: - fn: The function to register as a tool - name: Optional name for the tool (defaults to function name) - description: Optional description of what the tool does - tags: Optional set of tags for categorizing the tool - annotations: Optional annotations about the tool's behavior + tool: The Tool instance to register """ self._tool_manager.add_tool(tool) self._cache.clear()