Interface McpServerSetToolsAction

All Superinterfaces:
McpServerUpdateAction

public interface McpServerSetToolsAction extends McpServerUpdateAction

Replaces the entire list of tools enabled for the MCP Server.


Example to create an instance using the builder pattern

     McpServerSetToolsAction mcpServerSetToolsAction = McpServerSetToolsAction.builder()
             .plusTools(toolsBuilder -> toolsBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getTools

      @NotNull @NotNull List<McpServerTool> getTools()

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Returns:
      tools
    • setTools

      void setTools(McpServerTool... tools)

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Parameters:
      tools - values to be set
    • setTools

      void setTools(List<McpServerTool> tools)

      New list of tools to set. Replaces the existing tools list entirely. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders.

      Parameters:
      tools - values to be set
    • of

      factory method
      Returns:
      instance of McpServerSetToolsAction
    • of

      factory method to create a shallow copy McpServerSetToolsAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface McpServerUpdateAction
    • deepCopy

      @Nullable static McpServerSetToolsAction deepCopy(@Nullable McpServerSetToolsAction template)
      factory method to create a deep copy of McpServerSetToolsAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for McpServerSetToolsAction
      Returns:
      builder
    • builder

      create builder for McpServerSetToolsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withMcpServerSetToolsAction

      default <T> T withMcpServerSetToolsAction(Function<McpServerSetToolsAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<McpServerSetToolsAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference