Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_cpu_usage

Retrieve SQL Server CPU usage history from the ring buffer to diagnose performance issues and monitor trends. Specify the instance and minutes of history needed.

Instructions

Get CPU usage history for SQL Server from ring buffer

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

Input Schema

NameRequiredDescriptionDefault
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.
minutesNoMinutes of history to retrieve

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden. It does add one meaningful behavioral fact — the data comes from the ring buffer, implying an in-memory, size-limited history — but it omits whether elevated permissions are needed, how far back the buffer realistically goes, and what the returned rows look like.

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 resource and data source appear immediately. It is efficient, though the terseness leaves no room for the routing or return-shape context an agent would benefit from.

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?

For a two-parameter read tool this is minimally adequate: the schema is fully documented and the data source is named. However, with no output schema and no annotations, the description should say more about what the history output contains and the practical limits of ring-buffer retention.

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 both 'server' (instance format and default behavior) and 'minutes' (default 30) fully documented in the schema. The description adds no parameter 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?

The description gives a specific verb and resource ('Get CPU usage history for SQL Server') plus the data source ('from ring buffer'), so an agent knows exactly what this returns. It does not explicitly contrast itself with siblings like get_memory_usage or get_wait_stats, but the name and phrasing make the domain unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no stated prerequisites, and no mention of alternatives for related diagnostics such as wait stats or memory usage. The agent must infer that this tool is for CPU troubleshooting rather than being told so.

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