write_query
Run one SQL INSERT, UPDATE, upsert, REPLACE, or CREATE statement on SQLite and return the affected row count; oversized UPDATEs are rolled back to prevent accidental full-table rewrites.
Instructions
Run one data or additive-schema statement and return the affected row count. Refuses DELETE, DROP, ALTER and triggers: those need destructive_query. An UPDATE that touches more rows than the configured cap is rolled back, so a forgotten WHERE clause cannot rewrite a whole table by accident. RETURNING clauses come back as CSV.
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": {
"query": "<query>"
},
"name": "write_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | One INSERT, UPDATE, upsert, REPLACE, CREATE TABLE, CREATE INDEX or CREATE VIRTUAL TABLE (fts5, rtree) statement. |