Interface McpToolHandler
Programmatic MCP tool handler contract.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionProvides the MCP tool description.Provides the input schema used for framework validation and client advertisement.getName()Provides the MCP tool name.handle(@NonNull McpToolHandlerContext context) Handles an MCPtools/callrequest.
-
Method Details
-
getName
-
getDescription
-
getInputSchema
Provides the input schema used for framework validation and client advertisement.- Returns:
- the tool input schema
-
handle
Handles an MCPtools/callrequest.- Parameters:
context- the tool handler context- Returns:
- the tool result
- Throws:
Exception- if the tool call fails
-