Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · mcp

CLI client changeddocs/2026-07-28/tools/inspector/cli

Nearest release: v2.1.328, published 2 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 18 Nov 2026 20:29 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 18 Nov 2026 20:37 UTC.

Upstream edited
Recorded here
Lines+16added
Lines−3removed
From line 53 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits9to this page, all time

## Load testing a tool

The whole hunk

from line 53, old and new numbered
/
lines
from line 53
5353| - | - | - |
5454| `initialize` | None | Connect-only probe: `{serverInfo, protocolVersion, capabilities, instructions}`. |
5555| `tools/list` | None | `--strict` turns its schema portability check into a gate (see [CI gates](#ci-gates)). |
56| `tools/call` | `--tool-name`, plus optional `--tool-arg` / `--tool-args-json` | |
56| `tools/call` | `--tool-name`, plus optional `--tool-arg` / `--tool-args-json` | `--load` calls it repeatedly (see [Load testing](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md)). |
5757| `resources/list` | None | |
5858| `resources/read` | `--uri` | |
5959| `resources/templates/list` | None | |
from line 118
118118> `--format`; `--format json` reshapes only the single-tool output of
119119> `tools/call --app-info`.
120120 
121## Load testing a tool
122 
123`--load` calls one tool, or a weighted mix of tools, resources and prompts, repeatedly and concurrently, and prints a latency and error-rate summary in place of a result. [Load testing](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md) covers every flag, the summary's fields, thresholds for CI and the other run modes.
124 
125```bash theme={null}
126# 20 calls in flight for 30 seconds; fail the job if p99 is above 250 ms
127mcp-inspector --cli <server> --method tools/call --tool-name search \
128 --tool-arg query=mcp --load --load-concurrency 20 --load-duration 30 --load-max-p99 250
129```
130 
131A completed run exits `0` whatever its error rate, unless a threshold or baseline is set, which exits `10` on a breach. Ctrl+C prints the summary of what completed and exits `130`.
132 
121133## Exit codes and error envelopes
122134 
123135Every non-zero exit maps to a stable failure class, so a caller can branch on *why* without scraping prose:
from line 146
134146| `7` | `--verify` found a skill that violates SEP-2640 (conformance, digest, or size mismatch). |
135147| `8` | `--verify` couldn't check every skill within its read bounds. |
136148| `9` | `--verify --require-digests` found a skill that advertises no digests. |
137| `10` | A `--load` run breached a `--load-max-error-rate` or `--load-max-p99` threshold. The summary is printed first, and the envelope `code` names the threshold: `load_error_rate_exceeded` or `load_p99_exceeded`. |
149| `10` | A `--load` run breached a [threshold](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md#thresholds) or its [baseline](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md#comparing-against-a-baseline) budget. The summary is printed first, and the envelope `code` names the check, such as `load_p99_exceeded` or `load_regression`. |
138150| `11` | The server answered HTTP 429 (envelope `code` `rate_limited`). The envelope also carries `method`, plus `retryAfter` (the `Retry-After` header as sent) and `retryAfterMs` when the server sent one that parses. |
151| `130` | A `--load` run was interrupted by Ctrl+C or SIGTERM (envelope `code` `interrupted`). The summary of what completed is printed first. |
139152 
140153On any non-zero exit the CLI also writes a **single JSON line to stderr**:
141154 
from line 200
187200* `--strict` (with `tools/list`): reports tool-schema portability problems in full on stderr (path, issue, suggested fix) and exits `6` if any is error-severity. Without it, `tools/list` prints only a one-line count. Under `--format json` the findings are folded into the output as `schemaFindings`.
188201* `--verify` (with `skills/list` or `skills/get`): runs the SEP-2640 conformance and digest checks, writes one JSON report per skill on stdout, and exits `7` on a violation or `8` when the read bounds stopped it before every skill was checked. `--skill-catalog-max-skills` and `--skill-catalog-max-bytes` set those bounds.
189202* `--require-digests` (with `--verify`): exits `9` for a skill that advertises no digests, instead of reporting it as unverifiable and exiting `0`.
190* `--load-max-error-rate <fraction>` and `--load-max-p99 <ms>` (with `--load`): turn a load run into a gate. The run prints its summary, then exits `10` when the share of failed calls is above the fraction (`0` to `1`, so `0` fails on any failed call), when the p99 latency is above the given milliseconds, or when no call completed. `--load` (with `tools/call --tool-name`) calls the tool repeatedly and concurrently and prints a latency and error-rate summary instead of a result, bounded by `--load-duration <sec>` (default `10` when `--load-requests` is not set) and `--load-requests <n>`, with in-flight calls still finishing. `--load-concurrency <n>` (default `10`) caps the calls in flight, `--load-connections <n>` (default `1`, at most `--load-concurrency`, HTTP and SSE servers only) spreads them over independent sessions opened before timing starts, and `--load-rate <n>` (default unlimited) caps the calls started per second.
203* `--load-max-error-rate`, `--load-max-p50`, `--load-max-p95`, `--load-max-p99` and `--load-min-throughput` (with `--load`): print the load run's summary, then exit `10` when the run breaches the limit. `--load-baseline` with `--load-max-regression` does the same for a run worse than a saved one. See [Thresholds](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md#thresholds) and [Comparing against a baseline](https://modelcontextprotocol.io/docs/2026-07-28/tools/inspector/load-testing.md#comparing-against-a-baseline).
191204 
192205```bash theme={null}
193206mcp-inspector --cli <server> --method tools/list --strict > /dev/null
Feedback