Skip to main content
Glama
MSSQL MCP Server

MSSQL MCP Server

by Elad-Health

test_connection

Verify connectivity and authentication to a SQL Server instance before running queries. Optionally specify the server or port to confirm access.

Instructions

Test the connection to SQL Server and verify authentication

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

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 full burden. It does not state that the call is non-destructive, what happens on failure (raised error vs. a returned failure status), whether it opens or closes a session, or whether it can be slow on unreachable hosts. Only the bare intent is disclosed.

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 short sentence with the action front-loaded and zero filler. It is efficient, though it is arguably too terse for a tool with no annotations and no output schema.

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?

With no output schema and no annotations, the description should explain what a successful versus failed test looks like, since that is the entire value of a diagnostic tool. It also omits what identity/authentication context is being verified. For a simple one-parameter tool the gaps are still material.

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 coverage is 100% and the single server parameter is fully documented with format examples and the default behavior when omitted. The description adds no additional meaning about the parameter, 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?

The description gives a specific verb and resource: test the SQL Server connection and verify authentication. That clearly separates it from the sibling getters (get_server_info, execute_query, etc.), which read data rather than validate connectivity. It falls short of a 5 only because it doesn't explicitly name a sibling or scenario it replaces.

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?

Usage is implied rather than stated: an agent can infer this is a pre-flight diagnostic to run before other SQL tools. The description never says when to prefer it over get_server_info or execute_query, and it gives no prerequisites such as required credentials or network reachability.

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