When an MCP server sends notifications/tools/list_changed, mark that server’s cached tool list stale and fetch it again before sending a queued call that depends on it. Keep a previously granted approval only if the user’s approved action, current tool contract and authorization can all be shown to match. If you cannot finish the refresh, hold the affected call.
This guidance applies to Model Context Protocol revision 2025-11-25. Initialization exchanges the protocol version and capabilities before normal operations. Official source
A tools-capable server declares the tools capability, and a server that declares listChanged should send notifications/tools/list_changed when its tool list changes. Official source
Replace the catalog after a full refresh
Key the cached list by server and the authorization context used for listing. When a notification arrives, increment a local generation and mark that catalog stale. Coalesce rapid notifications into a refresh, but remember the generation you started from. Keep other servers available and let responses from calls already dispatched follow the normal result path.
Start tools/list without a cursor and pass each returned nextCursor to the next request until the server omits it. MCP pagination uses opaque cursor tokens and tells clients to treat a missing nextCursor as the end of the results. Official source
Build the replacement separately from the active catalog. If another notification arrives halfway through, refresh again from the first page and retain the stale state until you have a complete pass for the latest generation. A missing tool on the first page is inconclusive while a next cursor remains. A timeout, malformed page or repeated cursor leaves the refresh unresolved. You can keep the older descriptors for diagnosis while blocking calls that depend on their current validity. A complete pass is a client-side acceptance rule. Where the server supplies no revision or snapshot guarantee, continue treating the catalog as refreshable.
Decide what a queued call may do
The MCP tool definition includes an input schema and can include an output schema, annotations and execution metadata. Official source
| Result after refresh | Action before sending the call |
|---|---|
| Selected tool disappeared or current access is missing | Hold the call and explain which dependency changed |
| Selected tool still exists but its contract or effect changed | Revalidate arguments and route meaningful changes for a new decision |
| Unrelated tools changed and the selected action still matches its approved scope | Continue after checking current authorization and argument validity |
| A complete refresh is unavailable | Keep the affected call queued or return a retriable discovery error |
Compare more than the tool name. Check the old and current input and output schemas, what the tool promises to do, the destination represented to the user, and which execution mode it now requires. Check the approval against the exact arguments to be sent. A compatible input schema can still admit a new default or a changed destination. Conversely, a different display icon can leave the approved action intact under local policy.
Test a change between approval and dispatch
In an illustrative incident, an operator approves exporting selected records to a project workspace. Before dispatch, the server announces a change. The first list page no longer includes the export tool, but the second page does. The updated descriptor adds a required destination selector. The client holds the export, validates the new target and shows the operator the destination before seeking fresh approval. The same tool name gives it a way to compare descriptors, while the destination determines whether the approved action is still valid.
Test this flow with a harmless fixture. Trigger a change while a paginated refresh is in progress and verify that the queue stays held until the latest pass completes. Change only an unrelated read-only tool in another case and verify that an otherwise valid call can proceed. For servers without a declared change-notification capability, pick an explicit freshness policy for your integration, such as relisting before sensitive calls or after a catalog-related failure. Exercise those conditions alongside the broader MCP server testing checklist.
sinc-LLM