Skip to main content
Glama

diagnose_mcp_configs

Read-onlyIdempotent

Scan MCP server configurations across Claude Code, Claude Desktop, Cursor, VS Code, opencode, and Codex CLI, then run static checks and optional JSON-RPC handshakes to identify exact failure causes.

Instructions

Discover and diagnose MCP server configurations across Claude Code, Claude Desktop, Cursor, VS Code, opencode, and Codex CLI. Performs static checks (command resolution, env vars, footgun patterns, duplicates) and optional live JSON-RPC stdio handshakes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diagnose_mcp_configs"
  }
}

Input Schema

NameRequiredDescriptionDefault
homeDirNoOptional custom home directory path to scan instead of the current OS user home.
timeoutMsNoHandshake timeout per stdio server in milliseconds (default: 8000).
skipHandshakeNoIf true, perform static config checks only without spawning stdio servers (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world. The description earns extra credit by disclosing behavior annotations cannot express: it spawns stdio servers unless skipped, and there is a per-server handshake timeout with an 8000ms default. It stops short of saying how long a full scan may take or what the diagnostic output looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded with the essential information: scope first, then the check behavior. No filler, no restating of the tool name, and the optional handshake behavior is packed into one clause.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should hint at what a diagnosis returns; it lists check categories but not the shape or severity of findings. Otherwise it is complete for a no-required-param, annotation-rich scan tool covering six clients.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all three optional parameters document their defaults, so the schema does the heavy lifting. The description only echoes 'optional live handshakes' without adding constraints (e.g., what fails when a handshake times out, or whether homeDir affects which clients are scanned). Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (diagnose) and resource (MCP server configurations) and enumerates the six client ecosystems it covers plus the check types (command resolution, env vars, footgun patterns, duplicates, live handshakes). The verb 'diagnose' plus readOnlyHint implicitly separates it from repair_mcp_configs, but no sibling is named explicitly, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied (call when you need to inspect/validate MCP configs) and 'optional live JSON-RPC stdio handshakes' hints at when to reach for handshakes vs static-only mode. There is no explicit when-to-use vs. when-not guidance and no pointer to test_mcp_server, repair_mcp_configs, or list_agent_config_paths, so an agent must infer routing from the verb alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.