Skip to main content
Glama

check_health

Read-only

Verify the health of all configured MCP servers simultaneously. Returns a report with status and tools count, and can auto-heal unhealthy servers.

Instructions

Check the health of all configured MCP servers at once.

Reads every server from your MCP client config, tests them all concurrently (spawns each, connects via MCP protocol, calls list_tools()), and returns a health report.

Use this after configure_server to verify everything is working, or as a periodic health check. For unhealthy servers, try remove_server followed by configure_server to reinstall.

Args: client: Which MCP client's config to check. One of "claude_desktop", "claude_code", "cursor", "windsurf". Auto-detects if not specified. timeout_seconds: Max seconds to wait per server (clamped to 5-60). Default 15. Increase if servers are slow to start. auto_heal: When True, attempt to diagnose and fix each unhealthy server automatically. Healing results are included in each server's entry in the report.

Returns: Health report with: client, config_file, total/healthy/unhealthy counts, and per-server details (status, tools count, error). When auto_heal is True, unhealthy servers include a "healing" key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientNo
timeout_secondsNo
auto_healNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior1/5

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

The description contradicts the annotation readOnlyHint: true by stating the auto_heal parameter attempts to 'fix each unhealthy server automatically,' implying write operations. This is a serious inconsistency, warranting a score of 1 and flagging annotation contradiction.

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

Conciseness4/5

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

Well-structured with a clear summary, details, and explicit Args/Returns sections. Brief but informative. Slight room for improvement in trimming redundant phrases (e.g., 'at once' could be implied).

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?

Covers purpose, mechanism, usage guidance, parameters, and return value summary. Given the output schema exists (so return details are not strictly needed) and the complexity of health checking, the description is reasonably complete. Lacks mention of concurrency limits or error handling specifics.

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

Parameters5/5

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

Schema has 0% description coverage, yet the description provides thorough explanations for all three parameters: client options with auto-detection, timeout_seconds clamping and default, auto_heal behavior and its effect on the report. This adds significant value beyond the bare schema.

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

Purpose5/5

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

The description clearly states it checks health of all configured MCP servers at once, with specific details on how it does so (concurrently, via MCP protocol, calling list_tools). This distinguishes it from sibling tools like configure_server, test_connection, and verify.

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

Usage Guidelines5/5

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

Explicitly states to use after configure_server for verification or as periodic health check. Provides alternative course of action for unhealthy servers (remove_server + configure_server). Clear when-to-use and guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/felipestenzel/mcp-tap'

If you have feedback or need assistance with the MCP directory API, please join our Discord server