Skip to main content
Glama

Enhanced MCP MSSQL Server

by michaelyuwh

mssql_get_relationships

Retrieve foreign key relationships between tables in Microsoft SQL Server databases to understand data connections and maintain referential integrity.

Instructions

Get foreign key relationships for tables

Input Schema

NameRequiredDescriptionDefault
databaseYesDatabase name
encryptNoUse encrypted connection (default: true)
passwordYesPassword for authentication
portNoPort number (default: 1433)
serverYesMSSQL Server hostname or IP address
tableNoTable name (optional - if not provided, gets all relationships)
trustServerCertificateNoTrust server certificate (default: true)
userYesUsername for authentication

Input Schema (JSON Schema)

{ "properties": { "database": { "description": "Database name", "type": "string" }, "encrypt": { "default": true, "description": "Use encrypted connection (default: true)", "type": "boolean" }, "password": { "description": "Password for authentication", "type": "string" }, "port": { "default": 1433, "description": "Port number (default: 1433)", "type": "number" }, "server": { "description": "MSSQL Server hostname or IP address", "type": "string" }, "table": { "description": "Table name (optional - if not provided, gets all relationships)", "type": "string" }, "trustServerCertificate": { "default": true, "description": "Trust server certificate (default: true)", "type": "boolean" }, "user": { "description": "Username for authentication", "type": "string" } }, "required": [ "server", "user", "password", "database" ], "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/michaelyuwh/mcp-mssql-connector'

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