Local SDK experiment

MCP tool error with HTTP 200

Two lookups returned HTTP 200. The missing key returned isError: true, while the known key returned isError: false.

JSON ↗Markdown ↗

Observations

Can I count an HTTP 200 from tools/call as a successful lookup?

HTTP response for known / missing key
200 / 200
Known key · isError
false
Missing key · isError
true
View raw run evidence

Interpreting the result

Inspect the MCP result before using the returned content. Record tool errors separately so a successful HTTP exchange cannot inflate your task success rate.

Reproduce this run

Run the commands in an empty directory. Download the script first to inspect the requests and assertions.

mkdir -p niubiagent-mcp-lab && cd niubiagent-mcp-lab
npm install --prefix . --ignore-scripts --no-audit --no-fund @modelcontextprotocol/sdk@1.30.0 zod@4.5.4
curl -fsSLo reproduce.mjs https://www.niubiagent.com/lab/reproduce.mjs
node reproduce.mjs tool-error-http-200
Download reproduction script ↓

References

Test your combination

Request a review of this scenario for your client and SDK version.

Request a test