Skip to main content
Glama
cvelasquez

mcp-sqlserver

get_execution_plan

Retrieve the execution plan for a SQL query on a specified SQL Server connection to analyze query performance and identify optimization opportunities.

Instructions

Get execution plan for a query

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSQL query to analyze
connectionYesConnection name to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden for behavioral disclosure. It only repeats the tool's purpose and does not state whether the query is actually executed, whether this is read-only, whether permissions are needed, or what side effects may occur.

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, direct sentence with no filler or redundant phrases. It is front-loaded and appropriately sized for a simple two-parameter tool.

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?

The schema covers the parameters, but with no annotations and no output schema, the description should provide some context about what the execution plan output looks like or how to interpret it. The description does not explain return values, limitations, or anything beyond the bare operation.

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 description coverage is 100%, with both 'sql' and 'connection' already described in the schema. The tool description adds no further parameter detail, but none is strictly needed because the schema already documents both parameters adequately.

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 states a specific verb ('Get') and resource ('execution plan') and clarifies that it applies to a query. It clearly identifies the tool's core function, though it does not explicitly contrast it with sibling tools like 'query' or 'get_schema'.

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

Usage Guidelines3/5

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

Usage context is only implied: the phrase 'execution plan' suggests this tool is for analyzing a query's plan rather than executing it, and the sibling 'query' likely runs the query. However, there is no explicit when-to-use or when-not-to-use guidance, and no alternative tools are named.

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