wait-category-analysis
Installation
SKILL.md
Wait Category Analysis
Determines why queries are slow by categorizing waits into Lock, CPU, IO, Memory, or Network. Use after running
query-store-volatile-historical-slow-queries-comparison(Step 1) to diagnose root cause.
Required tools
- A SQL query tool connected to the target server and database. Prefer, in order: the SQL Tools MCP
server that ships with the
microsoft-sql-adminplugin (mssql_list_database_connections,mssql_connect_database, thenmssql_execute_query); any other SQL tool the agent host provides for running T-SQL and reading result sets;sqlcmdfrom a terminal. The queries only read diagnostics (the snapshot steps use session temp tables andWAITFOR DELAY, so the tool must allow a multi-statement batch that runs for{{SnapshotDurationSeconds}}seconds). If the SQL Tools MCP server is not connected or lists no connections, follow thesql-tools-mcp-setupskill, which asks before installing or configuring anything. If no SQL tool can be made available, give the user the T-SQL to run and ask for the results.