Where is the error code in a failed tool result?
In structuredContent.error.code. A failed call returns a normal result
with isError: true, and its structuredContent is the error envelope.
The text content holds the same JSON.
More: MCP, Tool results