Skip to main content
Glama
SQL Server MCP Server

SQL Server MCP Server

by fanzhenddz

show_statement

Run system stored procedures and SHOW-like SQL statements to inspect server metadata and configuration. Retrieve database state information without crafting complex queries.

Instructions

Execute system stored procedures or SHOW-like statements

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sql": "<sql>"
    },
    "name": "show_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSHOW SQL statement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 behavioral disclosure burden. It says the tool executes statements, which hints that side effects are possible for stored procedures, but it does not state whether SHOW statements are read-only, whether execution is safe, what permissions are required, or what the result looks like.

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 wasted wording. It states the action and the accepted statement categories immediately, making it easy to scan.

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?

For a SQL-execution tool with no annotations and no output schema, the definition is too thin. It does not explain return behavior, side effects, permission requirements, or how execution failures are surfaced, all of which matter for an agent invoking an execute-style tool.

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%, so the input schema already documents the single required sql parameter as a 'SHOW SQL statement'. The description adds a little meaning by broadening the accepted content to system stored procedures or SHOW-like statements, but it does not clarify syntax, examples, or constraints beyond that.

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 gives a clear verb, 'Execute', and names the accepted resource types: system stored procedures or SHOW-like statements. It is specific enough to distinguish this from a general-purpose query tool in spirit, but it does not explicitly differentiate the tool from siblings such as execute or query.

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?

The description implies use for SQL statements that are SHOW-like or system stored procedures, but it gives no explicit when-to-use guidance, no exclusions, and no comparison to alternatives like execute, query, or explain. An agent must infer the selection criteria from the tool name and statement category alone.

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