Skip to content

Debugging

MCP tool not showing in Claude Code: deferred, dropped or stale

Server connected but the fetch tool is missing? Tell deferred tools, names over 128 characters, rejected schemas and stale tool lists apart in Claude Code.

By Lucian Dyer, FetchMCP team · Published

This article was drafted with AI assistance from the sources listed below and edited and published by the FetchMCP team. Disclosure: the FetchMCP API, which this article mentions, is this site's own product.

Connected, but the tool is missing
  • claude mcp list says Connected, not Pending approval or Disabled.
  • /context labels deferred tools; Claude loads them through tool search.
  • A full name mcp__<server>__<tool> over 128 characters is left out.
  • N tools left out beside a server in /mcp means a rejected input schema.
  • Reconnect the server from /mcp if its tools changed.

claude mcp list says ✔ Connected. You ask for a page and Claude says it has no fetch tool, or it calls something else. The connection runbook stops here, because the connection works. The tool is missing for a different reason, and Claude Code usually writes that reason down. Checked against the Claude Code docs on 2026-11-30.

Work through the checks in order. Each one rules out a cause or names it.

1. Confirm the status is really "Connected"

claude mcp list
claude mcp get fetchmcp

claude mcp list prints a health status next to every server. A failure status there means Claude Code could not connect to that server, not that the command failed. These statuses look harmless but mean the tools are not in your session:

  • ⏸ Pending approval: a project server from .mcp.json you have not approved. Run claude in the project and approve it.
  • ⊘ Disabled for this project: the server is switched off. Turn it back on in the /mcp panel.
  • ! Needs authentication: the server wants a sign-in. Use /mcp to authenticate.

/mcp reconnect all retries every server that failed or needs authentication. It needs Claude Code v2.1.284 or later. Older versions answer MCP server "all" not found.

2. Check whether the tool is just deferred

/context

/context labels tools (deferred) or (loaded on-demand) when tool search holds them back. Tool search is on by default. Claude Code loads only tool names and server instructions at session start, then loads a tool's full definition when a task needs it. A deferred tool is not broken: Claude finds it through the ToolSearch tool.

ENABLE_TOOL_SEARCH changes this. Unset or true defers all MCP tools. false loads them all upfront. auto loads tools upfront while their definitions total under 10% of the context window, and auto:N sets your own percentage.

ENABLE_TOOL_SEARCH=false claude

alwaysLoad exempts one server instead of all of them. Set it to true in that server's entry and its tools load into context whatever ENABLE_TOOL_SEARCH says:

{
  "mcpServers": {
    "fetchmcp": {
      "type": "http",
      "url": "https://fetchmcp.net/mcp",
      "headers": { "Authorization": "Bearer ${FETCHMCP_API_KEY}" },
      "alwaysLoad": true
    }
  }
}

alwaysLoad: true also makes startup wait for that server's tools, capped at the 5-second connect timeout. Keep it for the few tools Claude needs on every turn, because each upfront tool uses context.

3. Measure the full tool name

printf '%s' 'mcp__fetchmcp__get_page_contents' | wc -c

The full name is mcp__<server>__<tool>, and the API accepts at most 128 characters. Claude Code leaves a longer tool out of the tools it sends to Claude, and the server's other tools keep working. The command above prints 32, far from the limit. For a tool that a plugin bundles, the full name also carries the plugin name, so it gets longer.

/mcp shows the full name when you select the tool. To see the reason in writing, start a session with claude --debug. The debug log at ~/.claude/debug/<session-id>.txt then contains a line like this:

Tool "mcp__<server>__<tool>" is not sent to Claude: its name has <N> characters and the API accepts at most 128

The fix on your side is a shorter server key in your MCP configuration, such as db in place of analytics-database. Then update everything that names the old key, such as permission rules and hook matchers. Before v2.1.292, Claude Code sent the tool anyway, and the API rejected every request that included it with a 400 about tools.N.custom.name.

4. Look for "tools left out" in /mcp

/mcp

The /mcp panel shows the tool count next to each connected server. It also flags servers that advertise the tools capability but expose no tools. N tools left out beside a server means Claude Code excluded tools whose input schema the API would reject.

Claude Code checks two rules as it loads a server's tools:

  1. Top-level property names are 1 to 64 characters long and use only ASCII letters, digits, _, . and -.
  2. The schema is valid against the JSON Schema draft 2020-12 meta-schema.

It records the reason in the server's log and tells Claude which tools it excluded and why, so you can ask Claude directly. You cannot fix a schema from the client. Report it to the server's maintainer. The tool comes back the next time Claude Code loads the server's tools after the fix.

5. Refresh a stale tool list

A server can change its tools while connected and send a list_changed notification. In an interactive terminal session, Claude Code fetches the new list without a reconnect. With -p and in the Agent SDK, it refreshes only the tool list. If a refresh fails, Claude Code keeps the tools it found before.

So the list you see can be older than the server's. Select Reconnect from the server's menu in /mcp to load the current one.

6. Read "No such tool available" correctly

Error: No such tool available: <tool name>

This error means Claude called a name that is not in the session's tool list. Right after you resume a session, a server can still be on its first connection attempt. Claude Code waits for it and returns this error only if the tool is still missing when the wait ends. Versions before v2.1.284 failed at once.

Once is nothing to fix: Claude reads the error and the turn continues. If calls to one server keep failing this way, check it with /mcp or claude mcp list and reconnect it from /mcp. With tool search on, Claude Code also tells Claude which configured server failed to connect and its error, so Claude can report the failure.

Short tool names on purpose

The FetchMCP API server keeps its full names well under the limit. "The MCP server registers 2 tools." They are get_page_contents and get_account_status. Under the key fetchmcp, the longer one is 33 characters in full. The current client configs are in the MCP docs.

For failures before this point, such as a wrong URL, a missing header or a server that never connects, use the connection runbook. If the tool shows up but Claude Code still asks before every call, see allowing one fetch tool.

Frequently asked questions

Why does Claude Code not show my MCP tool in the context?

Tool search is on by default. Claude Code loads only tool names and server instructions at session start and loads a tool's full definition when a task needs it. /context labels such tools as deferred or loaded on-demand. That is normal, not a failure.

What is the length limit for an MCP tool name in Claude Code?

The full name, such as mcp__<server>__<tool>, can have at most 128 characters. Claude Code leaves a longer tool out of the tools it sends to Claude, and the server's other tools keep working. A shorter server name in your configuration shortens the full name.

How do I make an MCP server's tools load upfront in Claude Code?

Set alwaysLoad to true in that server's entry in your MCP configuration. Its tools then load into context whatever ENABLE_TOOL_SEARCH says. Use it only for a few tools, because every upfront tool takes context.

What does "No such tool available" mean for an MCP tool?

Claude called a tool name that is not in the session's tool list. If it happens once after resuming a session, the server may still have been connecting. If it keeps happening, check the server with /mcp or claude mcp list and reconnect it.

Sources

  1. Connect Claude Code to tools via MCP (Claude Code docs) (Documentation)
  2. Error reference (Claude Code docs) (Documentation)