Build the SDK callback for one tool: log the call to stderr, run the handler, log the outcome, and wrap the result (or the error) as MCP content.
The tool definition.
The activity logger.
The SDK tool callback.
Build the SDK callback for one tool: log the call to stderr, run the handler, log the outcome, and wrap the result (or the error) as MCP content.