macro_rules! parse_json {
($input:expr) => { ... };
}Expand description
Parse a JSON string into the expected type, returning a tool-level error on failure.
This is a macro (not a function) so that return Ok(...) exits the calling tool method,
keeping invalid-JSON errors as tool results instead of protocol-level McpErrors that
would tear down the MCP session.