The short answer

A reliable MCP client should not begin by assuming that a server exposes tools, that a cached tool list is current, or that every schema it receives can be trusted. The safer sequence is:

  1. Discover what the server supports.
  2. Negotiate a compatible protocol and client capabilities.
  3. List tools only when the server has declared tool support.
  4. Parse and validate each tool definition before exposing it to an agent.
  5. Choose an explicit fallback when a required capability is missing.
  6. Refresh the tool list when the server says it has changed, and revalidate before use.

This matters commercially. A client that guesses incorrectly may show a customer a tool that does not exist, send arguments the server cannot accept, or fail only after an agent has committed to a workflow. The cost is not merely an exception in the logs; it is a failed task, a delayed customer outcome, and support work.

The important design principle is to treat discovery as a protocol operation with validation rules, not as metadata scraping. The details below focus on the MCP versions represented in the supplied specification material. Where a newer specification changes the handshake, keep your implementation version-aware rather than silently applying one behavior to every server.

1. Separate discovery from tool availability

An MCP host creates an MCP client for each server connection. That client owns the conversation with one server and supplies discovered capabilities to the host. This separation is useful because different servers can expose different capabilities, and the same server can behave differently depending on the credentials used for a request.

Three server feature categories are especially relevant to an MCP client:

  • Tools are operations a model can invoke, such as searching records or sending a message.
  • Resources are passive sources of context, usually selected by the application rather than freely invoked by the model.
  • Prompts are reusable instruction templates presented through a user-oriented interaction.

Do not use the presence of one category as evidence that another exists. A server may expose resources without tools. It may expose tools without prompts. An empty tool set can also be valid.

For tools, the stable discovery operation is tools/list. Its result contains tool definitions, including an input schema. Tool execution then happens through tools/call. A client should therefore keep three states separate:

  • the server has declared that tools are supported;
  • the current tool list has been retrieved;
  • a particular tool has passed local validation and is available for invocation.

The first state does not imply the second. The second does not imply the third.

2. Discover before sending feature-specific requests

The MCP specification has changed over time, so your client should identify the protocol generation it is implementing instead of relying on a single universal handshake.

In the 2025-era protocol, initialization is the central exchange. The client sends an initialize request with its protocol version and declared capabilities. The server replies with its protocol version and its capabilities. The client must not treat the presence of the server version alone as permission to use every server feature.

In the supplied 2026-07-28 specification material, discovery is more explicit: a client can call server/discover to retrieve supported protocol versions, server capabilities, identity information, and optional caching metadata. Servers in that specification must implement the operation, although client use of it is described as optional in at least some scenarios.

That distinction matters. A client may still need a fallback path when discovery is unavailable, unsupported, or rejected. The practical implementation is:

  • Try the discovery mechanism supported by your client’s target protocol.
  • Record which protocol version was selected.
  • Inspect the returned capability objects before calling list operations.
  • If the selected version does not support your preferred discovery flow, use the initialization or compatibility flow required by that version.
  • Do not probe blindly across every feature. A failed tools/list call is not a substitute for a negotiated capability check.

The release-candidate material supplied in the dossier also describes a proposed stateless core in which the initialization handshake is removed in favor of discrete stateless alternatives. Because that material describes breaking changes and a future-facing revision, it reinforces the need for version-aware clients. Do not remove legacy initialization support merely because a newer design exists.

3. Negotiate capabilities as a compatibility decision

Capability negotiation answers two different questions:

  • What does this server claim it can do?
  • What does this client need in order to operate safely?

A server declaring tools means that clients may request the tool list. A client should not interpret that as a promise that every conceivable tool is useful or safe for the current user. Conversely, a client that needs tools should not pretend it can operate normally against a server that does not declare tool support.

Think in three outcome classes:

Server capability state Client decision
Required feature is present Enable the feature and fetch its current definition
Feature is optional and absent Continue with a documented reduced mode
Required feature is absent or unusable Refuse the operation clearly rather than issuing invalid requests

For newer MCP features, be equally explicit. The supplied tasks material says clients and servers that support task-augmented requests must declare a tasks capability during initialization. It also defines narrower server-side indicators, including support for task-augmented tools/call. A server-level capability should therefore not be collapsed into “all task operations work.” Check the specific sub-capability your operation needs.

The same discipline applies to list-change notifications. A server may declare tools with listChanged: true, meaning it can notify the client when the tool set changes. A client that supports notifications must then invalidate or refresh its stored representation. If the client does not support that mechanism, it should use a safer refresh policy rather than pretending the list is immutable.

4. Validate the tool list before an agent can use it

Receiving JSON is not the same as receiving a valid tool definition. Use strict parsing and schema validation at the trust boundary. The client should reject malformed data before tool names and descriptions reach model context.

At minimum, validate:

  • name: present, a string, and unique in the returned list;
  • description: present when required by your client’s contract;
  • inputSchema: present and structurally valid JSON Schema;
  • required properties and nested definitions: accepted by the validator without unsupported or contradictory constructs;
  • tool count and payload size: bounded to protect model context and application memory;
  • names: constrained to a character set your routing and authorization layers can safely use.

The supplied server concepts explain that MCP tools use JSON Schema for validation. The newer release-candidate notes refer to full JSON Schema 2020-12 support for tools. That is a meaningful implementation choice: use a validator that matches the schema dialect your server contract claims to support, and test unsupported keywords deliberately. Silently ignoring an unknown keyword can make a tool appear valid when its input contract is not fully understood.

Validation should cover the tool definition and the arguments later supplied for invocation. A valid inputSchema does not guarantee that every model-generated argument is valid. Validate again at tools/call time, and return a useful, bounded error rather than forwarding an invalid payload.

Also validate semantics that JSON Schema cannot prove. A schema may permit any string while the tool secretly expects a date format, URL, or enum-like value. If your application knows those rules, enforce them separately. This is especially important when a malformed tool call could cause money to move, data to be written, or customer messages to be sent.

5. Decide what happens when a capability is unsupported

Fallback behavior should be a product decision, not an accidental consequence of a generic exception handler.

A practical fallback ladder looks like this:

  1. Retry with a compatible protocol version. Appropriate when negotiation establishes that the server supports an older version and your client can safely implement it.
  2. Use a narrower operation. For example, invoke a regular tool call if task augmentation is unavailable.
  3. Use a client-side alternative. A host may expose an equivalent native action rather than the server’s MCP tool.
  4. Enter a reduced mode. Continue with read-only resources, for example, while withholding model-controlled actions.
  5. Stop with an explicit explanation. Tell the operator exactly which capability is missing and what changed.

What you should not do is degrade a write operation into a guessed approximation. If the missing capability affects authorization, user confirmation, pagination, structured output, or resumability, explain the impact.

A useful error record contains the server identity, negotiated protocol version, requested capability, missing capability, and fallback selected. Avoid logging secrets or full customer payloads. This gives a small team enough information to distinguish “the server does not implement this” from “the client sent malformed arguments” without turning observability into a data-governance problem.

6. Treat cached tool lists as snapshots

Caching can reduce latency and unnecessary requests, but a cached tool list is evidence of the server’s tool set at a particular time. It is not a guarantee that every future invocation will succeed.

The supplied tool specification allows the available tool set to be empty and to change over time. It also says the set should not vary per connection or as a side effect of another request on the same connection. However, it may vary according to the authorization presented for a request. This creates a subtle caching rule:

A tool list can change with the caller’s authorization even if the underlying connection remains alive.

Therefore, cache entries should include enough context to avoid reusing a broader list for a narrower credential. Depending on your architecture, that may mean the server identity, authenticated principal, tenant, authorization scope, or a non-secret authorization fingerprint. Never cache the credential itself in the tool-list key or logs.

Use three invalidation triggers:

  • a notifications/tools/list_changed signal;
  • a change in the authorization context used to obtain the list;
  • a failed validation or call indicating that the snapshot may be stale.

For the third case, refresh once, validate again, and then return a clear failure if the problem persists. Repeated blind retries can create load spikes while offering no useful guarantee.

The 2026 discovery material includes caching metadata such as a time-to-live and cache scope. Where your selected protocol version exposes these controls, use them as server guidance rather than inventing a universal cache duration. A cache policy should combine the server’s freshness information, your authorization model, and the cost of another list request.

7. Use this implementation checklist

Before calling an MCP server ready for production, verify the following:

  • The client identifies the protocol generation it supports.
  • It obtains capabilities through a version-appropriate discovery or initialization path.
  • It records the negotiated protocol version and server capabilities.
  • It calls tools/list only when tool support is declared.
  • It accepts an empty tool list without assuming corruption.
  • It rejects malformed definitions and duplicate tool names.
  • It validates tool arguments again before invocation.
  • It distinguishes missing optional features from missing required features.
  • It implements a clear fallback for each required optional protocol feature.
  • It handles tool-list change notifications or uses a conservative refresh policy.
  • It never reuses an authorized tool list under a different principal or scope.
  • It refreshes once after a stale-list failure, then stops rather than looping.
  • It logs capability mismatches separately from validation failures.

This checklist is deliberately protocol-focused. It also makes the client easier to support: when a customer reports that “the tool disappeared,” you can inspect negotiation, authorization context, cache invalidation, and list-change handling instead of guessing from a generic model error.

A compact client decision flow

When an MCP server becomes available, ask these questions in order:

  1. Which protocol versions and discovery mechanisms can this client support?
  2. What did the server actually declare?
  3. Is the capability needed for this customer workflow mandatory or optional?
  4. Can the client fetch and validate the current definitions?
  5. Does the authorization context match the cached list?
  6. If validation or invocation fails, should the client refresh, downgrade, or stop?

This sequence turns MCP client capability discovery from a startup convenience into a reliability mechanism. It lets a founder ship a smaller supported compatibility surface, explain degraded behavior to customers, and upgrade servers without silently changing the tools available to agents.

If your product also manages a catalog of client-side skills, the MCP client skill catalog management guide provides a related approach to ownership, pinning, updates, and removal. For servers whose maintenance status is uncertain, When an MCP Server Goes Stale covers the operational decision between pinning, forking, and migrating.

Frequently asked questions

Should the client call tools/list before initialization?\n

Do not assume that is valid for the protocol version you have negotiated. Initialization or the newer discovery operation establishes the version-specific rules that determine which requests are permitted. Use the flow defined by that version.

Is an empty tool list an error?

No. The tool specification permits the current tool set to be empty. Treat it as a valid state unless your application contract explicitly requires at least one tool.

Does declaring the tools capability guarantee that tool schemas are trustworthy?\n

No. It means the server supports the tools feature. You still need to parse and validate the returned definitions before exposing them to your agent.

Should a client retry tools/list whenever a call fails?\n

Not blindly. A failed call can mean an invalid argument, an authorization change, an unsupported feature, or a stale list. Validate the request, refresh when the evidence points to staleness, and retry only under a bounded policy.

How long should a tool list remain cached?\n

There is no safe universal duration. Use server-provided cache guidance where available, invalidate after list-change notifications or authorization changes, and treat the list as a snapshot rather than a promise about future calls.

Sources