π The fast, Pythonic way to build MCP servers and clients.
Add documentation for tool removal
Jeremiah Lowin79ffb3e8bc2b
diff --git a/docs/servers/tools.mdx b/docs/servers/tools.mdxindex 26468e7f2..3a850d9cc 100644--- a/docs/servers/tools.mdx+++ b/docs/servers/tools.mdx@@ -712,6 +712,25 @@ The duplicate behavior options are:- `"replace"`: Silently replaces the existing tool with the new one.- `"ignore"`: Keeps the original tool and ignores the new registration attempt.+### Removing Tools++<VersionBadge version="2.3.4" />++You can dynamically remove tools from a server using the `remove_tool` method:++```python+from fastmcp import FastMCP++mcp = FastMCP(name="DynamicToolServer")++def calculate_sum(a: int, b: int) -> int:+ """Add two numbers together."""+ return a + b++mcp.remove_tool("calculate_sum")+```+### Legacy JSON Parsing<VersionBadge version="2.2.10" />