Interface McpServerRemoveToolAction

All Superinterfaces:
McpServerUpdateAction

public interface McpServerRemoveToolAction extends McpServerUpdateAction

Removes a single tool from the MCP Server's list of enabled tools. Returns an InvalidOperation error if the tool is not in the current list.


Example to create an instance using the builder pattern

     McpServerRemoveToolAction mcpServerRemoveToolAction = McpServerRemoveToolAction.builder()
             .tool(McpServerTool.ALL)
             .build()
 
  • Field Details

  • Method Details