Interface McpTool
public interface McpTool
One tool on the server's MCP endpoint.
An @McpTool method becomes one of these through a class the build
generates, whose schema is a constant and whose call(Map) converts the
arguments and invokes the method directly. Write one by hand for a tool that is
not a bean method, and pass it to McpServer.register(McpTool).
-
Method Summary
Modifier and TypeMethodDescriptionRuns the tool.What it does, for the agent choosing between tools.The JSON Schema of its arguments: an object schema, as a map.name()The tool's name, unique on the server.