Execute DB Query
nexusai_db_query_executeExecute confirmed SQL against an external DB source. Supports SELECT, INSERT/UPDATE/DELETE (with WHERE), and DDL including CREATE/DROP FUNCTION, CREATE/DROP TRIGGER, CREATE/DROP VIEW, CREATE/DROP PROCEDURE. DML and DDL require confirmed=true. Function/procedure bodies with dollar-quoting ($$...$$) are fully supported.
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": {
"dbSourceId": "<dbSourceId>",
"sql": "<sql>"
},
"name": "nexusai_db_query_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL statement to execute. | |
| maxRows | No | ||
| confirmed | No | Set to true only after the person has reviewed and approved this exact statement. Required for DML/DDL. | |
| dbSourceId | Yes | DB source UUID. |