/mssql | Type: Application | PCID required: Yes
Microsoft SQL Server queries and schema management
Tools
| Tool | Description |
|---|---|
mssql_get_info | Get Microsoft SQL Server database connection information |
mssql_list_tables | List all tables in the SQL Server database |
mssql_describe_table | Get table structure and column information |
mssql_execute_query | Execute a SQL query on Microsoft SQL Server. Use ? placeholders for parameterized queries (e.g., “SELECT * FROM users WHERE id = ? AND status = ?”). Parameters are applied in order. |
mssql_select_data | Select data from a SQL Server table |
mssql_insert_data | Insert data into a SQL Server table |
mssql_update_data | Update data in a SQL Server table |
mssql_delete_data | Delete data from a SQL Server table |
mssql_create_table | Create a new table in SQL Server |
mssql_get_info
Get Microsoft SQL Server database connection informationmssql_list_tables
List all tables in the SQL Server databasemssql_describe_table
Get table structure and column information Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name to describe |
mssql_execute_query
Execute a SQL query on Microsoft SQL Server. Use ? placeholders for parameterized queries (e.g., “SELECT * FROM users WHERE id = ? AND status = ?”). Parameters are applied in order. Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | The SQL query to execute. Use ? as placeholders for parameters (e.g., “SELECT * FROM users WHERE id = ?”) |
parameters | string[] | No | — | Array of parameter values to substitute for ? placeholders in order |
mssql_select_data
Select data from a SQL Server table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
columns | string[] | No | — | Columns to select (defaults to all) |
where | string | No | — | WHERE clause conditions |
orderBy | string | No | — | ORDER BY clause |
limit | number | No | — | Number of results (uses TOP in SQL Server) |
offset | number | No | — | OFFSET for pagination |
mssql_insert_data
Insert data into a SQL Server table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
data | object | Yes | — | Data to insert as key-value pairs (supports nested objects and arrays for JSON columns) |
mssql_update_data
Update data in a SQL Server table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
data | object | Yes | — | Data to update as key-value pairs (supports nested objects and arrays for JSON columns) |
where | string | Yes | — | WHERE clause to identify rows to update |
mssql_delete_data
Delete data from a SQL Server table Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | Yes | — | Table name |
where | string | Yes | — | WHERE clause to identify rows to delete |
mssql_create_table
Create a new table in SQL Server Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
tableName | string | Yes | — | Name of the table to create |
columns | object[] | Yes | — | Table column definitions |

