Skip to main content
Glama

mssql_get_connection_details

Read-onlyIdempotent

Retrieve metadata and active status for a specific SQL Server connection, or list all open connections when no ID is provided.

Instructions

Returns metadata and active state for a connectionId (or all open connections if omitted).

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

Input Schema

NameRequiredDescriptionDefault
connectionIdNoOptional connectionId; if omitted, lists all active sessions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is covered without the description. The description adds that the result includes "metadata and active state," which is useful, but says nothing about the shape of that metadata or behavior for an unknown or closed connectionId.

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?

A single front-loaded sentence covers the primary case first and the fallback case parenthetically. Every clause earns its place with no filler.

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 one-optional-parameter read tool with full schema coverage and safety annotations, the description supplies what is needed to select and call it, including what is returned at a high level. Only edge-case behavior for invalid or closed connection IDs is left unstated.

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% and the sole parameter is documented as optional with a default of null, so the baseline is 3. The description's "if omitted, lists all active sessions" restates what the schema already states rather than adding new meaning.

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 ("Returns metadata and active state for a connectionId") and covers the omitted-argument case ("all open connections"). It is distinguishable from siblings like mssql_connect or mssql_disconnect, though it never names an alternative tool explicitly.

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 only: call with a connectionId for one connection, or omit it to list all open sessions. There is no explicit when-to-use or when-not-to-use guidance relative to siblings such as mssql_list_servers, leaving the agent to infer context.

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