Skip to main content
Glama

sql-command-add

Destructive

Adds a SQL task with its display name, database type, and script or inline SQL so DBAs can define and run controlled database operations.

Instructions

dbabrain common.cli sql-command-add: A SQL task's WHAT: its name and its script. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • display_name (required): What a person reads.

  • db_type (required): sqlserver | oracle | postgresql.

  • sql_id: The id; the next free one when absent.

  • sql_code: Its code.

  • script_type: single | array | folder.

  • script_path: The script.

  • script_paths: array: the scripts.

  • final_script_paths: Run once at the end.

  • sql_text: Or the SQL itself.

  • version_from: Oldest product version.

  • version_to: Newest product version.

  • parameters: Its parameters.

  • autocommit: Commit each statement.

  • progress_per_file: Report each file.

  • input_type: What input it takes.

  • input: That input's settings.

  • active: Switched on.

  • note: Why it exists.

  • replace: Overwrite this sql_id.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sql-command-add"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description is consistent with that. It adds genuine context beyond the annotations: that certain commands require `confirm: "yes"` plus a `reason`, that `sql_id` defaults to the next free id, and that `replace` overwrites an existing entry. The phrasing is hedged, though — "a command on the emergency-operations list" gives no way to tell whether this particular call falls under that rule, and there is no disclosure of what `replace` destroys or what permissions are required.

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?

The bulleted request-field list is front-loaded and scannable, and each field gets exactly one line with no padding. The opening two sentences and the "dbabrain common.cli" prefix carry little information and dilute the otherwise tight structure.

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?

With an output schema present, return values need not be explained, and the parameter documentation is thorough for an 18-field request object. What is missing is the decision-level context: no statement of when this tool applies versus its siblings, and ambiguity about whether the operation is additive or mutating/removing, which matters for a tool flagged destructive.

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?

The schema exposes a single opaque `request` object with 0% description coverage, so the description carries the full burden and largely discharges it: it enumerates every request field, marks display_name and db_type as required, and supplies enum values (sqlserver|oracle|postgresql, single|array|folder) that the schema never declares. Some glosses are too terse to be actionable ("input_type: What input it takes", "input: That input's settings"), which keeps it below a 5.

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

Purpose3/5

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

The description identifies the resource as a SQL task defined by a name and a script, and the field list makes clear it is creating (or with `replace`, overwriting) a SQL command. However, the opening is garbled ("A SQL task's WHAT: its name and its script") and the following sentence, "Changes or removes something," reads like boilerplate that muddies whether this tool adds, edits, or deletes. It does not distinguish itself from siblings such as add-sql or run-sql.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The one conditional statement present concerns the `confirm`/`reason` fields for emergency-operations commands, which is a behavioral caveat rather than routing advice. An agent must infer from the name alone whether to call this versus add-sql or sql-target-add.

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