connect_db
Connect to a SQL Server database using host, user, password, and database name, with optional port, encryption, and certificate settings, to enable querying and schema access.
Instructions
Connect to a SQL Server database
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": {
"host": "<host>",
"user": "<user>",
"password": "<password>",
"database": "<database>"
},
"name": "connect_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Database host | |
| port | No | Database port (default: 1433) | |
| user | Yes | Database user | |
| encrypt | No | Encrypt connection (default: true) | |
| database | Yes | Database name | |
| password | Yes | Database password | |
| trustServerCertificate | No | Trust server certificate (default: false) |