db_sync_databases
Sync DB lists from one or all main connection hosts into connections.json by discovering databases and updating sub-connections, optionally removing missing entries or including system databases.
Instructions
Crawl database list from one or all main connection hosts and automatically update sub-connections in connections.json
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "db_sync_databases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mainId | No | Specific main connection ID to crawl (e.g. "postgres" or "mysql56"). If omitted or "all", crawls all main connections | |
| persistToFile | No | Whether to save updated sub-connections directly into connections.json. Default true | |
| removeMissing | No | Whether to remove sub-connections that no longer exist on the server. Default false | |
| includeSystemDatabases | No | Whether to include system databases (template0, information_schema, etc.). Default false |