Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

list_databases

Lists all databases on a SQL Server instance with status and size, optionally including system databases, to help you inventory and monitor database health.

Instructions

List all databases on the SQL Server instance with their status and size

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": "list_databases"
  }
}

Input Schema

NameRequiredDescriptionDefault
serverNoSQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified.
includeSystemNoInclude system databases (master, model, msdb, tempdb)

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 supplied, the description carries the full disclosure burden. It implies a read-only enumeration and it does say the response includes status and size, which is more than most list tools offer, but it omits whether system databases are excluded by default, whether results are paginated, and what size units mean.

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 sentence, front-loaded with the action and resource, with no filler. Slightly padded by 'on the SQL Server instance', which the schema already implies via the server parameter.

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

Completeness4/5

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

For a simple, zero-required-parameter, read-only listing tool with no output schema, this is nearly sufficient: it states the resource and the returned fields. It would only need a note on system-database default scope and any result-limit behavior to be fully self-contained.

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 server and includeSystem are fully documented in the schema with examples and default behavior. The description adds nothing beyond the resource scope, so the baseline 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?

Specific verb (List) plus resource (databases) plus the returned fields (status and size), so an agent knows exactly what comes back. It does not distinguish itself from the closest sibling, get_database_states, which likely overlaps on the status portion.

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?

The description gives no when-to-use or when-not-to-use guidance and names no alternative for narrower state-only queries. An agent must infer from the name alone that this is the broad inventory call rather than get_database_states or get_server_info.

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