Returns a function that can be safely registered with an MCP server. The function will call the tool method and convert the results so that they adhere to the protocol.
Returns a function that can be safely registered with an MCP server. The function will call the tool method and convert the results so that they adhere to the protocol.