Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_running_queries

Retrieve currently executing SQL Server queries with status and resource usage to diagnose long-running operations and monitor database performance.

Instructions

Get currently executing queries with their status and resource usage

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

Input Schema

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

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?

With no annotations at all, the description must carry the behavioral burden; it partially does by disclosing the return contents (status and resource usage). However, it says nothing about required server permissions (e.g., VIEW SERVER STATE), whether results are a point-in-time snapshot, or whether the call is read-only, and 'Get' only implies safety.

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 wasted words. It is efficient, though the terseness leaves behavioral and scoping details unaddressed rather than oversharing.

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 simple (2 optional params, no output schema, no annotations), and the description covers purpose and rough return contents. It omits the multi-server targeting behavior (the default-instance fallback) and snapshot semantics, which an agent would want when deciding between this and sibling diagnostics.

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%, so both the server instance format and the includeSystem default are fully documented in the schema. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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 states a specific verb and resource ('Get currently executing queries') and adds what comes back ('status and resource usage'). That distinguishes it from neighbors like get_expensive_queries or get_wait_stats, though it never names an alternative explicitly.

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 or when-not-to-use guidance and no routing to alternatives such as get_expensive_queries or get_blocking. The 'currently executing' wording only implies a live-monitoring use case, leaving the agent to infer it.

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