Skip to main content
Glama
cvelasquez

mcp-sqlserver

get_stored_procedure

Fetch a stored procedure's source definition from a SQL Server connection by providing its name and the connection name.

Instructions

Get stored procedure definition

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesStored procedure name
connectionYesConnection name to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.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 must carry the full burden of behavioral disclosure. It implies a read-only retrieval but does not disclose the exact return format, whether the definition includes the full CREATE statement, or how errors for non-existent procedures are handled.

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

Conciseness4/5

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

The description is a single, tight sentence with no wasted words. It lacks richer structure, but for a simple getter tool it is appropriately sized and front-loaded.

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 tool has no output schema and no annotations, so the description should clarify the return value and usage context. It only states 'definition' without specifying the format or how it relates to sibling tools like get_schema, leaving an agent uncertain about when to choose this 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?

Both parameters are fully described in the input schema ('Stored procedure name' and 'Connection name to use'). The description adds no additional semantic detail beyond the schema, so the baseline of 3 is appropriate.

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 uses the verb 'Get' and the specific resource 'stored procedure definition', making the tool's purpose immediately understandable. It does not explicitly differentiate from sibling metadata tools like get_schema or get_indexes, but the resource type is distinct enough to infer the intended use.

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 provides no information about when to use this tool versus alternatives such as get_schema or get_execution_plan. There is no mention of prerequisites like requiring a loaded connection, nor any exclusions or alternative routing.

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