GitHub 0
Skip to content

Check answers

Check what an MCP server's answers cost the model, from a recorded session, sample calls, or one saved result.

tools/list says what a server offers. What its answers cost the model shows only in the calls a client makes. is-mcp-ok checks answers three ways: from a recorded session, from sample calls it makes itself, or one result at a time.

A session is a tools/list file with the calls a client made:

{
  "initialize": {
    "protocolVersion": "2025-06-18",
    "serverInfo": { "name": "shop" },
    "instructions": "…"
  },
  "tools": [{ "name": "search_orders", "inputSchema": { "type": "object" } }],
  "calls": [
    {
      "name": "search_orders",
      "arguments": { "query": "late", "limit": 5 },
      "result": { "content": [{ "type": "text", "text": "…" }], "isError": false }
    }
  ]
}
mcp-session.json
npx is-mcp-ok mcp-session.json

initialize and arguments are optional. Keep each result exactly as it came back, or the JSON-RPC response that carries it. Reformatted text changes what the checks measure.

Your coding agent is already connected to the server, so it can record the session with its own client. See Coding agents.

With a URL, --call makes the calls itself after tools/list, in the same MCP session, and checks each answer in memory. It saves nothing.

[{ "name": "search_orders", "arguments": { "query": "late", "limit": 5 } }]
samples.json
npx is-mcp-ok https://mcp.example.com/mcp --call samples.json

It calls only tools listed with annotations.readOnlyHint: true. Every other entry is named under "not called" with its reason: not in tools/list, not marked read-only, or the call failed. --json lists them in refused as { name, reason }, without arguments or error text.

Each call gets 30 seconds and the whole read 2 minutes. --call works with --header and --login, and not with a file, which records its calls in calls.

On npm 0.1.1, use check-result to check a single saved tools/call result from stdin:

npx is-mcp-ok@0.1.1 check-result --tool search_orders --tools tools.json < result.json

With the preview CLI, pass the file directly, or use - to read from stdin. This build replaces check-result with these forms:

pnpm exec is-mcp-ok result.json --tool search_orders --tools tools.json
pnpm exec is-mcp-ok - --tool search_orders < result.json

--tool names the tool that answered. --tools takes the server's tools/list, in any form the CLI reads. Without it, the checks that need the list are skipped: the uuid cause, the tool's own result limits, and naming another tool as a next step.

It exits 1 when a client check warns on the result, and 0 when none does.

ismcpok.dev doesn't take a recorded session; check one with the CLI. Without sign-in, it reads only tools/list and never calls a tool.

After you sign in to a server, Preview sample calls shows the tool names and generated arguments without calling anything. Read-only is the server's claim, not a guarantee, so select only the calls you trust, then choose Call selected tools. The calls run from your tab and the answers are checked there. They never reach ismcpok.dev.

Each call becomes one entry of answers:

  • Size: chars and tokens, at 2.2 characters per token, the median of the recorded answers.
  • Causes: what in a JSON answer the model could do without, such as null fields, a constant-column, or indent from pretty-printing. removable applies them all at once.
  • Advice: an error answer that names no next step, or structuredContent with keys the text leaves out. See Answer advice.
  • Client findings: what each client does with the result, such as Claude Code saving a large one to a file.

A client finding at warn fails the run. None of them is an error, since the client still gets the answer, but it cuts it, saves it to a file, or drops the part the model needed. Causes and advice never fail it.