updated add tool docstring

This commit is contained in:
William Easton 2025-06-06 16:37:48 -05:00
commit 5c75af1fbc
No known key found for this signature in database
GPG key ID: 6FF017712EA8BC40

View file

@ -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()