Skip to main content
Glama
cvelasquez

mcp-sqlserver

query

Execute a SQL query on a named SQL Server connection to retrieve data. Each response identifies the server and database that answered.

Instructions

Execute a SQL query on the database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSQL query to execute
connectionYesConnection name to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description must disclose side effects, permissions, result format, or side-effect potential of executing arbitrary SQL. It only says 'execute a SQL query' and none of that is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence is economical but it mostly restates the tool name and adds nothing of substance. No wasted words, but also no structured detail to help selection.

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?

With no annotations and no output schema, a two-parameter query tool needs more context: supported SQL, side effects, result/return behavior. The description is too skeletal for an agent to predict consequences.

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 both params have descriptions. The tool description adds no meaning beyond the schema, but the baseline 3 applies since the schema already provides adequate parameter documentation.

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?

Uses a clear verb-resource pair: 'execute a SQL query on the database.' It is somewhat generic but distinct enough from sibling tools like list_connections or get_execution_plan, which involve different operations.

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?

No guidance on when to use this tool versus siblings or what types of queries are appropriate (SELECT only vs DDL/DML). It merely restates the operation without exclusions or alternatives.

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