Skip to main content
Glama
az-coder-123

SQL Server MCP

by az-coder-123

disconnect_database_users

Disconnect all users from a database by changing its access mode, ensuring no active connections block a restore.

Instructions

Disconnect all users from a database by setting access mode (useful before restore)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoAccess mode (default: SINGLE_USER)
databaseNameYesDatabase name to disconnect users from
rollbackImmediateNoRollback active transactions immediately (default: true)
Behavior2/5

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

No annotations are provided, so the description must explain behavioral consequences. It mentions 'setting access mode' but fails to disclose critical effects like active transactions being rolled back (as hinted by the rollbackImmediate parameter) or the fact that new connections may be blocked. This is a significant gap for a disruptive operation.

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?

The description is a single concise sentence that front-loads the core action and use case, with no filler or repetition.

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?

Given the lack of annotations, an output schema, and the disruptive nature of the operation, the description is incomplete. It does not explain risks, side effects, or what happens to active sessions and transactions. The schema covers parameters, but the broader behavioral context is missing.

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%, so parameters are fully described in the schema. The description adds little beyond the schema, only loosely linking the mode parameter to the mechanism. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Disconnect all users from a database'), specifies the mechanism ('by setting access mode'), and provides a concrete use case ('useful before restore'). This distinguishes it from sibling tools like kill_database_sessions, which might terminate individual sessions rather than altering access mode.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'useful before restore' gives clear context for when to use the tool. However, it does not explicitly mention alternatives or when not to use it, though the context implies it is intended for pre-restore scenarios.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/az-coder-123/sql-server-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server