add_data_source
Connect an additional Oracle, PostgreSQL, or MySQL database at runtime without restarting the server; the new source becomes available to other tools through the dataSource parameter.
Instructions
Connect to an additional database at runtime — no server restart needed. The new source can then be used via the dataSource parameter of all other tools. Note: credentials passed here are visible in session logs; prefer environment variables for permanent sources.
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": {
"name": "<name>",
"type": "<type>"
},
"name": "add_data_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | No | Connect string, e.g. "dbhost.example.com:1521/ORCLPDB1". Required for oracle (thin mode). | |
| host | No | Host. Required for postgres/mysql. | |
| name | Yes | Unique name for the new data source, e.g. "mysql-report" or "oracle-erp". | |
| port | No | Port. Defaults: 5432 (postgres), 3306 (mysql). | |
| type | Yes | Database type. | |
| user | No | Username. Required. | |
| database | No | Database name (postgres/mysql). | |
| password | No | Password. Required. |