Skip to main content
Glama
bpamiri

SQL Server MCP

by bpamiri

connect

Establish connection to SQL Server databases using environment variables for host, credentials, and database configuration. Returns connection status with host, database, and timestamp details.

Instructions

Establish connection to the SQL Server database.

Uses configuration from environment variables:
- MSSQL_HOST: Server hostname or IP
- MSSQL_USER: Username
- MSSQL_PASSWORD: Password
- MSSQL_DATABASE: Database name
- MSSQL_PORT: Port (default: 1433)

Returns:
    Connection status and details including host, database, and timestamp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key traits: it establishes a connection (implying a state-changing operation), relies on environment variables for configuration, and returns connection details including status, host, database, and timestamp. It lacks details on error handling or timeout behavior, but covers the core functionality well.

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 front-loaded with the core purpose, followed by configuration details and return values in a logical, bulleted format. Every sentence earns its place by providing essential information without redundancy, making it highly efficient and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a connection-establishing operation with no parameters), the description is complete: it states the purpose, explains configuration sources, and outlines return values. With an output schema present, it need not detail return structure further, and the lack of annotations is adequately compensated by the descriptive content.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so the schema fully documents the lack of inputs. The description adds value by explaining that configuration comes from environment variables, not direct parameters, which clarifies the tool's operational semantics beyond the schema. This compensates for the parameter-less design, though it could explicitly note 'no parameters required' for full clarity.

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 specific action ('Establish connection') and resource ('SQL Server database'), distinguishing it from siblings like 'list_connections' (which lists existing connections) and 'disconnect' (which terminates connections). The verb+resource combination is precise and unambiguous.

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 implies usage context by specifying that it 'Uses configuration from environment variables,' indicating it should be used when a new database connection is needed. However, it does not explicitly state when NOT to use it (e.g., if already connected) or name alternatives like 'list_connections' for checking existing connections, which prevents a perfect score.

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/bpamiri/pymssql-mcp'

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