node_db_query
Executes SQL statements against MySQL, MariaDB, or PostgreSQL on a target node or Docker container without exposing database passwords through the CLI.
Instructions
Execute a SQL statement on a TargetNode (either directly on the host or inside a Docker container) without CLI password exposure.
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": {
"node": "<node>",
"engine": "<engine>",
"query": "<query>"
},
"name": "node_db_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | TargetNode name. | |
| query | Yes | SQL statement to execute. | |
| engine | Yes | Database engine. | |
| db_user | No | root | |
| database | No | ||
| container | No | Optional Docker container name. Leave empty to run psql/mysql directly on the TargetNode. | |
| db_password_env | No | ||
| confirm_destructive | No |