annotation

MCP::Tool

Mark a method as an MCP tool. The method's return type becomes the tool's output (wrapped as TextContent; CallToolResult is also accepted as a direct return).