Skip to main content
Glama
Andrian17

mssql-mcp-server

by Andrian17

mssql_manage_schema

Retrieve SQL Server schema info, create or alter tables, and manage enum-style CHECK constraints.

Instructions

Manage SQL Server schema - get schema info, create/alter tables, manage enum-style CHECK constraints. Examples: operation="get_info" for table lists, operation="create_table" with tableName and columns, operation="get_enums" to list IN-list CHECK constraints, operation="create_enum" with enumName, tableName, columnName and values

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoSchema name (defaults to dbo)
valuesNoAllowed values (required for create_enum)
columnsNoColumn definitions (required for create_table)
enumNameNoCHECK constraint name (optional filter for get_enums, required for create_enum)
operationYesOperation: get_info (schema/table info), create_table (new table), alter_table (modify table), get_enums (list IN-list CHECK constraints), create_enum (new IN-list CHECK constraint)
tableNameNoTable name (optional for get_info to get specific table info, required for create_table/alter_table/create_enum)
columnNameNoColumn the enum CHECK applies to (required for create_enum)
operationsNoAlter operations (required for alter_table)
ifNotExistsNoInclude IF NOT EXISTS guard (for create_enum)
connectionStringNoSQL Server connection string (optional; requires --allow-tool-connection-string)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden of behavioral disclosure, and it discloses essentially none. It never warns that create_table, alter_table (whose schema supports 'drop' operations), and create_enum are permanent DDL mutations, nor does it mention privilege requirements, transactional behavior, or failure modes. An agent gets no behavioral context beyond the operation names.

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?

A single front-loaded summary sentence followed by four thumbnall examples with zero filler. The content is scannable in one pass, and no sentence wastes the agent's attention.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, 5-opration tool with nested objects, no output schema, and no annotations, the description covers 4 of 5 operations in examples - alter_table is only named, never exemplified. It also omits any behavioral or permission guidance and any sibling delegation advice. The extensive schema masks these gaps, but the description alone would give an agent an incomplete picture.

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 coverage is 100% and the schema already documents per-operation requirements ('required for create_enum', 'required for alter_table'), so the baseline is 3. The description's examples restate those groupings ('operation="create_table" with tableName and columns'), which is helpful but largely redundant with the schema's own per-parameter notes. No parameter is left undocumented across both sources.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific scope - 'get schema info, create/alter tables, manage enum-style CHECK constraints' - and backs it with four concrete examples ('operation="get_info" for table lists', 'operation="create_table" with tableName and columns'). This clearly separates it from raw-execution siblings like mssql_execute_query and mssql_execute_sql, which lack a DDL operation grammar of their own.

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

Usage Guidelines4/5

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

The examples give explicit per-opration routing: 'operation="get_info" for table lists' and 'operation="create_enum" with enumName, tableName, columnName and values'. This is clear context for choosing among the five operations, though it never states when not to use the tool or names alternatives such as mssql_manage_constraints for non-enum CHECK constraints.

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