database-query
Run SQL SELECT, INSERT, UPDATE, DELETE against SQLite, list tables, and control mutations via an explicit allow_mutation flag.
Instructions
Execute SQL queries against a SQLite database (SELECT, INSERT, UPDATE, DELETE). Use operation 'list-tables' to discover available tables. Mutation queries require 'allow_mutation: true' for safety.
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": {
"operation": "<operation>"
},
"name": "database-query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | SQL statement to execute (required for 'query' operation) | |
| params | No | Bind parameters for the SQL statement | |
| operation | Yes | The operation to perform | |
| allow_mutation | No | Must be true to execute INSERT, UPDATE, DELETE, or other mutating statements | |
| use_transaction | No | Wrap the statement in an explicit transaction |