Interface McpServerAddToolAction
- All Superinterfaces:
McpServerUpdateAction
Adds a single tool to the MCP Server's list of enabled tools. Has no effect if the tool is already present.
Example to create an instance using the builder pattern
McpServerAddToolAction mcpServerAddToolAction = McpServerAddToolAction.builder()
.tool(McpServerTool.ALL)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for McpServerAddToolActionbuilder(McpServerAddToolAction template) create builder for McpServerAddToolAction instancecopyDeep()static McpServerAddToolActiondeepCopy(McpServerAddToolAction template) factory method to create a deep copy of McpServerAddToolAction@NotNull McpServerToolgetTool()Name of the tool to add, such asread_productsorcreate_orders.static McpServerAddToolActionof()factory methodstatic McpServerAddToolActionof(McpServerAddToolAction template) factory method to create a shallow copy McpServerAddToolActionvoidsetTool(McpServerTool tool) Name of the tool to add, such asread_productsorcreate_orders.static tools.jackson.core.type.TypeReference<McpServerAddToolAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.mcp_server.McpServerUpdateAction
getAction, withMcpServerUpdateAction
-
Field Details
-
ADD_TOOL
discriminator value for McpServerAddToolAction- See Also:
-
-
Method Details
-
getTool
Name of the tool to add, such as
read_productsorcreate_orders.- Returns:
- tool
-
setTool
Name of the tool to add, such as
read_productsorcreate_orders.- Parameters:
tool- value to be set
-
of
factory method- Returns:
- instance of McpServerAddToolAction
-
of
factory method to create a shallow copy McpServerAddToolAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
McpServerAddToolAction copyDeep()- Specified by:
copyDeepin interfaceMcpServerUpdateAction
-
deepCopy
factory method to create a deep copy of McpServerAddToolAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for McpServerAddToolAction- Returns:
- builder
-
builder
create builder for McpServerAddToolAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMcpServerAddToolAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-