get_server_list
Get a list of MCP servers with error counts and recent activity to quickly identify which server logs to inspect when a tool fails.
Instructions
List Available MCP Servers
Use this tool FIRST if you don't know which MCP server name to use for error checking.
WHEN TO USE:
A tool failed but you don't know the exact server_name
You want to see which servers have recent errors
You're not sure if logs exist for a particular server
You need to identify which servers are most problematic
WHAT THIS TOOL SHOWS: ✅ All available MCP server names (needed for other tools) ✅ Total error counts per server ✅ Recent errors in last 24 hours ✅ When logs were last updated ✅ Full log file paths
WORKFLOW:
Tool fails, but you're unsure of the server_name
Call THIS tool to list all available servers
Find the server with recent errors or matching your failed tool
Use that server_name to call get_recent_errors
USE CASES:
Error says "slack tool failed" -> List servers -> Find "slack-mcp-server" -> Check its logs
Multiple tools failing -> List servers -> See which has most errors (24h column) -> Investigate that one first
New to the system -> List servers -> Understand available MCP infrastructure
TIP: Look at the "recent_error_count" (last 24h) to identify servers currently having problems!
Args:
include_stats (boolean): Include error statistics for each server (default: true)
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns: For Markdown format: Human-readable list with server names and stats For JSON format: Structured data with schema: { "total": number, // Number of servers found "servers": [ { "server_name": string, // Name of the MCP server "log_file_path": string, // Full path to log file "last_modified": string, // ISO 8601 timestamp of last update "total_errors": number, // Total error count (if include_stats=true) "recent_error_count": number // Errors in last 24h (if include_stats=true) } ] }
Examples:
Don't know server name -> {}
Quick server list -> { include_stats: false }
Find problematic server -> {} (then check recent_error_count)
Error Handling:
Returns empty list if no log files found in configured directory
Gracefully handles log files with different formats
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": "get_server_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_stats | No | Whether to include error statistics for each server (default: true) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |