MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / remove_tool

Method remove_tool

src/mcp/server/mcpserver/server.py:492–501  ·  view source on GitHub ↗

Remove a tool from the server by name. Args: name: The name of the tool to remove Raises: ToolError: If the tool does not exist

(self, name: str)

Source from the content-addressed store, hash-verified

490 )
491
492 def remove_tool(self, name: str) -> None:
493 """Remove a tool from the server by name.
494
495 Args:
496 name: The name of the tool to remove
497
498 Raises:
499 ToolError: If the tool does not exist
500 """
501 self._tool_manager.remove_tool(name)
502
503 def tool(
504 self,

Callers 5

test_remove_toolMethod · 0.95
growFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_remove_toolMethod · 0.76
growFunction · 0.36