Map a response to a tool result, matching the 0.7.0 tools: 2xx JSON is ok(data), 2xx text/* is ok(text), other 2xx bytes fail, and a non-2xx status fails with HTTP <status>: <body text>.
ok(data)
text/*
ok(text)
HTTP <status>: <body text>
Catalog entry.
Transport response.
The tool result.
Map a response to a tool result, matching the 0.7.0 tools: 2xx JSON is
ok(data), 2xxtext/*isok(text), other 2xx bytes fail, and a non-2xx status fails withHTTP <status>: <body text>.