Execute an approved statement
execute_approvedRuns the SQL statement a prior query previewed, using its single-use token, once the person approves it in LiteDB desktop. Re-call with the same token if the request returns WAITING.
Instructions
Second step, after query. Runs the statements a previous query call previewed. Takes only the token, the SQL is held server-side, so what runs is exactly what was previewed. Single-use, and expires five minutes after the preview. Confirm the row count with the person you are working for before calling this. While LiteDB is open, the request appears in its window and nothing runs until they approve it there: a call can come back WAITING, and then you call again with the same token once they have answered.
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": {
"token": "<token>"
},
"name": "execute_approved"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The token from the query tool's preview. |