# MCP tool error with HTTP 200

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

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

Tested at 2026-11-10T01:50:18.691Z

## Environment

- sdk: 1.30.0

- zod: 4.5.4

- node: v24.22.0

- platform: darwin/arm64

- transport: Streamable HTTP (stateless JSON response, 127.0.0.1)

## Observations

- HTTP response for known / missing key: 200 / 200

- Known key · isError: false

- Missing key · isError: true

## Interpretation

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

## Scope

One SDK client called a local fixture that explicitly marks missing keys as errors. Other tools may return an empty successful result. Confirm the result contract for the tool you use.

## Reproduce

```sh
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
```

## Sources

- [MCP specification · Tools](https://modelcontextprotocol.io/specification/2025-11-25/server/tools)

[Run evidence](https://www.niubiagent.com/lab/tool-error-http-200.json)

[Reproduction script](https://www.niubiagent.com/lab/reproduce.mjs)

[Canonical report](https://www.niubiagent.com/lab/tool-error-http-200)
