Skip to main content
Glama
az-coder-123

SQL Server MCP

by az-coder-123

check_database_connections

Check active connections to a database to confirm no active sessions block a restore. Specify a database name or view all databases.

Instructions

Check active connections to a database (useful before restore)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
databaseNameNoDatabase name to check (default: all databases)
Behavior3/5

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

The verb 'check' implies a read-only operation, and the restore context hints at the purpose. But with no annotations, the description carries full burden and does not disclose output format, whether it disconnects anything, or permission requirements. It adds some value but lacks rich behavioral context.

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, front-loaded sentence with no filler. Every word contributes to the meaning, making it highly concise and well-structured.

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 read-only check with one thoroughly documented optional parameter and no output schema, the description covers the purpose and primary use case. It lacks output details, but the tool's simplicity and schema coverage mitigate the gap, making it reasonably complete.

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?

The only parameter databaseName is fully described in the schema with 100% coverage, including default behavior ('default: all databases'). The description does not add any additional parameter semantics beyond the schema, so the baseline of 3 applies.

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 tool checks active connections to a database, with a specific verb ('check') and resource ('active connections to a database'). The parenthetical '(useful before restore)' provides a distinct use case, and it differentiates from sibling tools like disconnect_database_users and kill_database_sessions by being a read-only check.

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 description explicitly indicates when to use the tool ('useful before restore'), giving clear context. However, it does not mention alternatives or exclusions, so it does not fully meet the 5-level bar for explicit when/when-not/alternatives.

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