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.
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
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-200Download reproduction script ↓