Skip to main content
Glama

unfour.db.delete_saved_sql

unfour.db.delete_saved_sql
Destructive

Delete a saved SQL snippet without touching database tables or rows, using expectedRevision and content-bound confirmation to reject concurrent changes atomically.

Instructions

Deletes a saved SQL snippet, never database tables or rows. Requires expectedRevision; guarded policy requires content-bound confirmation. Concurrent changes are rejected atomically.

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": {
      "savedSqlId": "<savedSqlId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "unfour.db.delete_saved_sql"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
savedSqlIdYes
workspaceIdNo
confirmationTextNo
expectedRevisionYes
confirmation_textNo

Output Schema

NameRequiredDescriptionDefault
deletedYes
savedSqlIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is known; the description adds real signal beyond that: optimistic concurrency via expectedRevision, a content-bound confirmation gate, and atomic rejection of concurrent changes. It stops short of stating what the returned payload indicates or what happens to dependent objects, keeping it below a 5.

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?

Three short sentences, front-loaded with the resource scope before the precondition and concurrency behavior, with no filler. The middle clause about guarded policy is slightly compressed but every sentence carries distinct information.

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

Completeness3/5

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

Output schema exists so return values need not be described, and the annotations plus text cover the destructive and concurrency semantics well. However, for a mutation tool with zero schema description coverage and a duplicated confirmation parameter set, the description leaves an agent without enough detail to confidently construct the confirmation payload.

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

Parameters3/5

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

Schema description coverage is 0% across 6 parameters, so the description must compensate and only partly does: it explains expectedRevision and gestures at confirmation via 'content-bound confirmation'. It says nothing about savedSqlId, workspaceId, the confirm boolean, or why both confirmationText and confirmation_text appear, leaving the agent to guess which confirmation field the policy reads.

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 ('Deletes a saved SQL snippet') and immediately bounds the scope with 'never database tables or rows', which distinguishes it from execution/query siblings an agent might confuse it with. The resource is unambiguous.

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

Usage Guidelines4/5

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

Gives the precondition for use (requires expectedRevision) and the guarded-policy confirmation requirement, which tells the agent when the call will be rejected. It does not explicitly route to an alternative such as list_saved_sql to obtain the current revision, but the operating context is clear enough to act on.

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

Deploy Server

Other Tools