Skip to main content
Glama
SignOff Studio MCP server

SignOff Studio MCP server

Run a SQL write

db_execute
Destructive

Run a single INSERT, UPDATE, DELETE, or DDL statement on an approved agent-write connection; dry-run by default reports affected rows and rolls back before you commit.

Instructions

Runs one INSERT / UPDATE / DELETE / DDL statement on a connection the owner opened to agent writes (agentWrites in database/connections.json). Production-like connections are always refused; DROP, TRUNCATE, schema changes (CREATE / ALTER) and DELETE / UPDATE without WHERE are refused unless the owner's policy allows. dryRun (default true) runs the write in a transaction, reports rows affected and rolls back; pass dryRun:false to commit. Prefer setting up test data through the API under test when it can.

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": {
      "sql": "<sql>"
    },
    "name": "db_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesOne write statement
dryRunNoDefault true: run, report, roll back
paramsNoObject for :name placeholders, or array for $1 / ? / @p1
connectionNoName or id; optional when there is one

Output Schema

NameRequiredDescriptionDefault
dryRunYes
warningsYes
committedYes
elapsedMsYes
riskLevelYes
statementYesStatement keyword, e.g. UPDATE
connectionYes
environmentYes
rowsAffectedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses the connection allowlist mechanism (agentWrites in database/connections.json), the refusal policy for production-like connections and dangerous statements, and the transaction/rollback semantics of the default dryRun mode. This is exactly the behavioral context an agent needs before issuing a destructive write.

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?

Four sentences, no filler, with the eligibility rule and refusal policy front-loaded before the dryRun mechanics and the softer alternative recommendation. Minor cost: the final sentence ('when it can') is slightly vague and the first sentence is long, but nothing is wasted.

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

Completeness5/5

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

For a destructive write tool, the definition covers eligibility, refusal policy, safety default, commit path, and row-count reporting; an output schema exists so return values need not be re-explained. An agent has everything required to call it safely without opening another source.

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 schema already documents all four parameters and the baseline is 3. The description still adds value: it clarifies that dryRun:false is what commits (the schema only says the default runs, reports, and rolls back) and that connection must be one the owner opened to agent writes, which the schema's 'Name or id' does not convey.

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?

The description opens with a specific verb and resource ('Runs one INSERT / UPDATE / DELETE / DDL statement') and scopes it to a connection opened for agent writes. The write-only framing plus the explicit list of statement types makes it clearly distinguishable from a read-oriented sibling such as db_query.

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?

It states when the tool will not work (production-like connections always refused), which statement classes are refused absent an owner policy (DROP, TRUNCATE, CREATE/ALTER, DELETE/UPDATE without WHERE), and an alternative path ('Prefer setting up test data through the API under test when it can'). It also tells the agent which mode to choose: dryRun for verification versus dryRun:false to commit.

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