Execute Stored Procedure
mssql_execute_stored_procedureExecute a stored procedure by name in SQL Server, providing schema and input parameters, to trigger the intended database action or retrieve data.
Instructions
Executes a stored procedure by name. ⚠️ May modify data — use only when an action is intended. Schema and procedure names are validated as safe identifiers. Pass all value parameters via 'parameters'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"procedureName": "<procedureName>"
},
"name": "mssql_execute_stored_procedure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parameters | No | Procedure input parameters (key-value pairs) | |
| schemaName | No | Schema name (default: dbo) | dbo |
| procedureName | Yes | Stored procedure name | |
| response_format | No | Output format: 'json' for structured data, 'markdown' for human-readable tables | json |