db_connect
Connect to a SQL or NoSQL database using a specified engine and URL to create a named session for querying through chat.
Instructions
Connect a named session. engine is postgresql, mysql, mariadb, sqlite, oracle, sqlserver, mongodb, redis, or elasticsearch.
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": {
"engine": "<engine>",
"url": "<url>"
},
"name": "db_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| engine | Yes | ||
| allow_write | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |