Class McpBetaTool

  • All Implemented Interfaces:

    
    public final class McpBetaTool
    
                        

    An MCP tool converted for use with the Anthropic API.

    Holds both the tool definition (name, schema, description) and the runner that executes the tool against the MCP server. Pass to com.anthropic.models.beta.messages.MessageCreateParams.Builder.addTool to wire it into a request.

    Instances are produced by com.anthropic.mcp.BetaMcp.mcpTool in the anthropic-java-mcp module.