execute_query
Run read-only SQL SELECT queries against Microsoft SQL Server, applying automatic row limits for safe data retrieval.
Instructions
Execute a read-only SQL query (SELECT). Automatically applies row limits from configuration.
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": {
"sql": "<sql>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL SELECT query to execute | |
| server | No | Target server name (uses default if omitted) | |
| database | No | Database name (uses connection default if omitted) |