Skip to main content
Glama
LiteDB desktop

LiteDB desktop

Execute an approved statement

execute_approved
Destructive

Runs 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

NameRequiredDescriptionDefault
tokenYesThe token from the query tool's preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this destructive, non-idempotent and non-read-only, but the description adds substantial context the annotations cannot: the SQL is held server-side so the executed text is exactly what was previewed, the token is single-use with a five-minute expiry, and execution is gated behind an approval in the LiteDB window that can return WAITING. That is real operational detail an agent would otherwise only discover by failing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the relationship to `query`, then flows into constraints and the approval loop. The final sentence is long and packs two ideas (the approval window and the WAITING retry) together, but every sentence carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter mutation tool with no output schema and no idempotency guarantee, it covers the flow, expiry, approval gating and the WAITING outcome. It does not describe what a successful return looks like (e.g. rows affected vs. confirmation message) or what happens to the token on failure, which is the main remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the token parameter is already documented, yet the description still adds meaning: the token originates from the `query` preview, the actual SQL is not passed here, and the token is consumed once and expires. It stops short of describing token format or error semantics for stale tokens.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("runs the statements a previous `query` call previewed") and explicitly positions itself as the "second step, after query", which cleanly separates it from the previewing sibling. An agent knows immediately this is the execution half of a two-phase flow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit sequencing (only after a `query` preview), a prerequisite (obtain the token from that preview), a confirmation step with the human (verify row count first), an expiry window and single-use limit, and a concrete retry rule when the result is WAITING. When-not-to-call is implied strongly by those constraints.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.