# Check answers

`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 recorded session

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

```json [mcp-session.json]
{
  "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 }
    }
  ]
}
```

```sh
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](https://ismcpok.dev/docs/guide/agents#record-a-session).

## Sample calls

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.

```json [samples.json]
[{ "name": "search_orders", "arguments": { "query": "late", "limit": 5 } }]
```

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

## One result

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

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

With the [preview CLI](https://ismcpok.dev/docs/guide/installation#try-the-preview-cli), pass the file directly, or use `-` to read from stdin. This build replaces `check-result` with these forms:

```sh
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`](https://ismcpok.dev/docs/reference/mcp#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.

## On ismcpok.dev

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](https://ismcpok.dev/docs/guide/servers#on-ismcpokdev) 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.

## What an answer reports

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`](https://ismcpok.dev/docs/reference/mcp#null) fields, a [`constant-column`](https://ismcpok.dev/docs/reference/mcp#constant-column), or [`indent`](https://ismcpok.dev/docs/reference/mcp#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](https://ismcpok.dev/docs/reference/mcp#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.

<!-- vitehub-docs:section-links -->
## In this section

- [Introduction](https://ismcpok.dev/raw/docs/guide.md)
- [Installation](https://ismcpok.dev/raw/docs/guide/installation.md)
- [Check a server](https://ismcpok.dev/raw/docs/guide/servers.md)
- [Check answers](https://ismcpok.dev/raw/docs/guide/answers.md) (this page)
- [Token budget](https://ismcpok.dev/raw/docs/guide/budget.md)
- [Run in CI](https://ismcpok.dev/raw/docs/guide/ci.md)
- [Check tools in your tests](https://ismcpok.dev/raw/docs/guide/testing.md)
- [Coding agents](https://ismcpok.dev/raw/docs/guide/agents.md)

Next: [Token budget](https://ismcpok.dev/raw/docs/guide/budget.md)

All pages: [llms.txt](https://ismcpok.dev/llms.txt)
