db_save_query
Save a SQL query to a database connection for future reuse. Associate it with a connection ID, a short name, and the SQL text.
Instructions
Persist a SQL query under the caller's user, scoped to a connection.
Args: connection_id: The DB Console connection id this saved query belongs to. name: Short label. sql: The SQL text.
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": {
"connection_id": "<connection_id>",
"name": "<name>",
"sql": "<sql>"
},
"name": "db_save_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| name | Yes | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |