removeTool

Dynamically removes a previously added tool by its @McpTool-annotated function reference and sends a ToolListChangedNotification

Return

true if the tool was removed, false if it was not found.

Parameters

tool

The @McpTool-annotated function reference that was previously added.