Execute Connection SQL
execute_connection_sqlRun SQL directly against the database behind a saved QGIS connection, including DDL/DML changes, with an optional row limit to control returned results.
Instructions
Run SQL directly on the database behind a saved connection (server-side, not a virtual layer - use execute_sql for that). Can modify the database: DDL/DML run as issued. limit caps returned rows (-1 for all).
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": {
"provider": "<provider>",
"connection": "<connection>",
"sql": "<sql>"
},
"name": "execute_connection_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| limit | No | ||
| provider | Yes | ||
| connection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||