Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

get_disk_space

Retrieve disk space usage for all SQL Server database data and log files, or check a specific database, to monitor capacity and prevent storage issues.

Instructions

Get disk space usage for all database files including data and log files

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

Input Schema

NameRequiredDescriptionDefault
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.
databaseNoSpecific database to check (optional, checks all 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 must carry the full behavioral burden, and it discloses little: it implies a read-only lookup but never states permissions required, whether the server parameter triggers remote connection cost, whether all databases are scanned by default at performance cost, or whether results cover file sizes versus volume capacity. The one behavioral fact it adds — that the log files are included — actually blurs the boundary with get_log_space.

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 well-formed sentence with the resource and scope front-loaded and no filler; nothing needs trimming. It is appropriately short for a two-optional-parameter read tool.

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

Completeness2/5

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

For a tool with no annotations and no output schema, the description should say what comes back (per-file size, free space, growth) to make results interpretable. As written, an agent knows only the general subject, not the return content or the relation to get_log_space, leaving a meaningful gap.

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 parameters (server, database) are already fully documented including the default-if-omitted behavior, making 3 the baseline. The description adds no syntax, format, or filtering semantics beyond what the schema provides.

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 names a specific verb and resource ("Get disk space usage") plus a scope ("for all database files including data and log files"), so an agent can tell roughly what it returns. It stops short of differentiating from the sibling get_log_space, and it leaves ambiguous whether "disk space usage" means per-file sizes or host volume free space — a distinction that matters for a sub-100-line definition.

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?

There is no explicit when-to-use, when-not-to-use, or named alternative; the usage is only implied by the tool name and the read-only monitoring framing. The overlap with get_log_space is never addressed, so an agent cannot tell from the description which to call for log-file information.

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