π The fast, Pythonic way to build MCP servers and clients.
updated add tool docstring
William Easton5c75af1fbcf2
diff --git a/src/fastmcp/server/server.py b/src/fastmcp/server/server.pyindex 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()