Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_memory_usage

Retrieve SQL Server memory usage across buffer pool, plan cache, and other memory clerks to analyze performance and troubleshoot memory pressure.

Instructions

Get SQL Server memory usage including buffer pool, plan cache, and other memory clerks

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

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

B3.1/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 entire behavioral burden, and it discloses very little: it does not say whether the call is read-only, whether it requires elevated permissions such as VIEW SERVER STATE, whether results are a point-in-time snapshot or cumulative counters, or what the units are. Only the scope of memory areas is communicated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence with a specific verb and an enumerated scope, no filler and no redundant restatement of the tool name. Every clause adds information.

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 simple single-optional-parameter read tool with no output schema, the description covers what data is collected but says nothing about return shape, units, permissions, or sampling behavior. Adequate to invoke, thin for interpreting results.

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% for the single optional 'server' parameter, including the default-when-omitted behavior, so the schema does the work. The description adds no extra meaning about the parameter, which meets the baseline 3 for fully documented schemas.

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?

States a specific verb and resource ('Get SQL Server memory usage') and enumerates the sub-areas covered (buffer pool, plan cache, other memory clerks), which clearly separates it from metric siblings like get_cpu_usage or get_wait_stats. It stops short of explicitly naming a contrasting sibling, so it is strong but not fully differentiated.

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 when another tool (e.g. get_cpu_usage, get_expensive_queries) would be the better diagnostic. The agent must infer that this is the memory-specific diagnostic path 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.