Skip to main content
Glama

Microsoft SQL Server MCP Server (MSSQL)

get_stored_procedure_definition

Retrieve the full SQL definition of a stored procedure from a Microsoft SQL Server database, including schema details and formatted output, enabling efficient code analysis and management.

Instructions

Get the complete SQL query/definition of a stored procedure - this is the actual source code

Input Schema

NameRequiredDescriptionDefault
connectionNameNoNamed connection to use (e.g., 'production', 'staging')
connectionStringNoSQL Server connection string (uses default if not provided)
formatOutputNoFormat the SQL output for better readability (default: true)
procedureNameYesName of the stored procedure to get definition for
schemaNoSchema name (default: dbo)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "connectionName": { "description": "Named connection to use (e.g., 'production', 'staging')", "type": "string" }, "connectionString": { "description": "SQL Server connection string (uses default if not provided)", "type": "string" }, "formatOutput": { "description": "Format the SQL output for better readability (default: true)", "type": "boolean" }, "procedureName": { "description": "Name of the stored procedure to get definition for", "type": "string" }, "schema": { "description": "Schema name (default: dbo)", "type": "string" } }, "required": [ "procedureName" ], "type": "object" }

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/dperussina/mssql-mcp-server'

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