db_connect_test
Test database connectivity by specifying host, port, credentials, and database type to create a connection session.
Instructions
Test database connection and create connection session
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>",
"port": "<port>",
"username": "<username>",
"password": "<password>",
"database_type": "<database_type>"
},
"name": "db_connect_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Database host address | |
| port | Yes | Database port number | |
| username | Yes | Database username | |
| password | Yes | Database password | |
| database | No | Database name (optional for initial connection) | |
| database_type | Yes | Database type | |
| charset | No | Character encoding | utf8mb4 |