Skip to main content
Glama

mssql_disconnect

Read-only

Closes an active SQL Server connection by connectionId to end the session and release its resources.

Instructions

Closes an active SQL Server connection identified by connectionId.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "connectionId": "<connectionId>"
    },
    "name": "mssql_disconnect"
  }
}

Input Schema

NameRequiredDescriptionDefault
connectionIdYesThe connectionId returned by mssql_connect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The readOnlyHint=true annotation sits somewhat awkwardly against a call that terminates session state, though it is defensible because no stored data is modified. The description adds no context on side effects: in-flight transaction rollback, error behavior for unknown or already-closed connectionIds, or idempotency. With annotations present the bar is lower, so this is adequate but thin.

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 sentence, front-loaded with the action, containing no filler. Every clause carries information.

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-parameter teardown tool with a fully documented schema and no output schema, very little needs saying. The remaining gap is the absence of any note on failure modes or cleanup side effects when closing.

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 connectionId parameter is documented as coming from mssql_connect, so the description needs only to not contradict the schema. It restates identification by connectionId but adds no format or lifecycle detail beyond the schema.

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 uses a precise verb and resource ("Closes an active SQL Server connection") and names the identifier, so it is clearly the inverse of mssql_connect. It does not explicitly contrast itself with siblings, but the connect/disconnect pairing is unambiguous from the verb.

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: nothing about when a connection should be released, whether it is safe to call repeatedly, or what to do if the connectionId is stale. The word "active" hints that the connection must currently exist, but no alternative or exclusion is offered.

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