execute_query
Run read-only or read/write SQL queries against a SQLite database with safety constraints, optional parameters, and read-only enforcement by default.
Instructions
Execute a read-only or read/write SQL query with safety constraints.
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": {
"db_path": "<db_path>",
"query": "<query>"
},
"name": "execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | SQL query string (SELECT, INSERT, UPDATE, etc.). | |
| params | No | Optional positional parameters for parameterized execution. | |
| db_path | Yes | Path to SQLite database file. | |
| read_only | No | Enforce read-only constraint (default: true). |