Spaces:
Running
Running
William Easton commited on
updated add tool docstring
Browse files
src/fastmcp/server/server.py
CHANGED
|
@@ -490,11 +490,7 @@ class FastMCP(Generic[LifespanResultT]):
|
|
| 490 |
with the Context type annotation. See the @tool decorator for examples.
|
| 491 |
|
| 492 |
Args:
|
| 493 |
-
|
| 494 |
-
name: Optional name for the tool (defaults to function name)
|
| 495 |
-
description: Optional description of what the tool does
|
| 496 |
-
tags: Optional set of tags for categorizing the tool
|
| 497 |
-
annotations: Optional annotations about the tool's behavior
|
| 498 |
"""
|
| 499 |
self._tool_manager.add_tool(tool)
|
| 500 |
self._cache.clear()
|
|
|
|
| 490 |
with the Context type annotation. See the @tool decorator for examples.
|
| 491 |
|
| 492 |
Args:
|
| 493 |
+
tool: The Tool instance to register
|
|
|
|
|
|
|
|
|
|
|
|
|
| 494 |
"""
|
| 495 |
self._tool_manager.add_tool(tool)
|
| 496 |
self._cache.clear()
|