MCP Shipyard
← Rules catalog

Slow tools/list on an MCP server: build the tool list from static data

Clients call tools/list on every connect. Warn above 1.5 s and fail above 5 s. Serve the list from memory and add ttlMs caching hints.

minorlatency.tools-listGeneral

Answer tools/list from memory. The rule latency.tools-list is a minor finding for general clients. It warns above 1.5 seconds and fails above 5 seconds.

What you see

  • A scan reports tools/list: 6200 ms (or a similar timing key).
  • The connector connects, then shows no tools for several seconds, or intermittently shows none after idle time. How each client times out here is not verified.

Why it happens

  1. The tool list is generated from a database query or a call to an upstream API.
  2. The list is built per user with several permission checks.
  3. A cold start loads large modules before the first request.
  4. A gateway adds latency to every request.

The spec describes what the list may and may not depend on. In 2026-07-28, tools/list "MUST NOT vary per-connection or as a side effect of other requests", though it may vary by the authorization presented. It also asks servers to return tools in a deterministic order, and requires ttlMs and cacheScope on tools/list results so clients can cache. A dynamic list that is slow to build gets in the way of all of that.

Check it yourself

curl -s -o /dev/null -w 'tools/list: %{time_total}s\n' -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Run it cold (after 15 minutes idle) and again straight away.

Fix

  • Define tools in code and cache the serialised list per scope set.
  • If the list depends on scopes, compute it from the token's scopes, not from a database round trip.
  • For 2026-07-28 servers, set a sensible ttlMs and cacheScope so clients can reuse the result.
  • Keep tool order stable.
  • Measure the handshake too (latency.handshake).

Verify

Both timings are under 1.5 seconds. Re-scan.

Which clients care

General, per the rule.

Source

Claude testing docs: https://claude.com/docs/connectors/building/testing

MCP tools specification: https://modelcontextprotocol.io/specification/2026-07-28/server/tools

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server