Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_blocking

Retrieve current blocking chains to identify blocked and blocking SQL Server sessions and diagnose lock contention.

Instructions

Get current blocking chains showing blocked and blocking sessions

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

C2.9/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, and it only implies a point-in-time read via the word "current". It does not state whether it is read-only, what permissions are required, whether it returns an empty result when no blocking exists, or how heavy the query is on a busy instance.

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?

One front-loaded sentence with no filler, and the scope word "current" appears early. It is efficient, though the terseness leaves little room for the operational context the tool lacks elsewhere.

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?

With no annotations and no output schema, the description should say more about the return shape, such as whether a chain includes wait type, duration, or blocking IDs. It does indicate that blocked and blocking sessions appear in the result, which is the minimum an agent needs to call it correctly.

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?

There is a single optional parameter with 100% schema coverage, and the schema already documents the SQL Server instance format and default behavior. The description adds nothing about the server parameter, 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?

Names a specific verb and resource ("Get current blocking chains") and clarifies the content, listing blocked and blocking sessions. It is not explicitly distinguished from nearby diagnostic siblings such as get_running_queries or get_wait_stats, which could also surface contention, so it falls short of a 5.

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 statement of when to reach for this tool (e.g., during lock contention or a hung query investigation) and no mention of any alternative. The agent must infer its place in the diagnostic workflow from the name alone.

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