Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_wait_stats

Retrieve aggregated SQL Server wait statistics to identify performance bottlenecks, with options to limit top waits and exclude idle or benign waits.

Instructions

Get aggregated wait statistics to identify performance bottlenecks

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_wait_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoNumber of top waits to return
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.
excludeIdleNoExclude idle and benign waits

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It reveals only that results are aggregated, staying silent on whether this is a read-only DMV query, what the output looks like, permissions required, or the cost of running it against a busy server.

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?

A single front-loaded sentence with no filler; the verb and purpose arrive immediately. It is perhaps too terse for a tool with no annotations, but nothing is wasted.

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

Completeness3/5

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

The tool is a simple zero-required-parameter read with a fully annotated schema and no output schema, so the description is adequate to invoke it. It is not adequate to predict the result shape or behavior, which matters for an unannotated diagnostic tool.

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%, with each parameter (top, server, excludeIdle) fully documented including defaults and formats. The description adds no parameter-level meaning beyond that, so the baseline of 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?

"Get aggregated wait statistics" states a specific verb and resource, and "to identify performance bottlenecks" adds the diagnostic intent. It is clear on its own, though it does not distinguish itself from diagnostics-heavy siblings like get_expensive_queries or get_cpu_usage.

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?

The purpose clause implies when to reach for it (performance troubleshooting), but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool. The agent must infer the situation from the sibling names.

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