Skip to main content
Glama
DB MCP Server

DB MCP Server

by HW-public

execute_dml

Executes INSERT, UPDATE, DELETE, and DDL statements on Oracle or PostgreSQL to modify data or schema; optionally selects a configured data source.

Instructions

Execute INSERT, UPDATE, DELETE, or DDL statements.

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": "execute_dml"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesA write statement or DDL.
dataSourceNoName of the data source to use (see list_data_sources). Defaults to the single configured database, if only one is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and provides essentially none. It does not state that this mutates or destroys data irreversibly, whether statements run in a transaction or autocommit, what permissions are required, or whether DDL is restricted — all critical for an unannotated write tool.

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?

A single front-loaded sentence with zero filler. It is efficient, though the brevity borders on under-specification given the destructive nature of the operation.

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

Completeness2/5

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

For a destructive, unannotated write/DDL tool with no output schema, the definition leaves out return behavior, error handling, and any safety context. The schema covers parameters, but nothing tells the agent what consequences to expect from invoking it.

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 100%, and the schema already explains that sql is a write statement or DDL and that dataSource references list_data_sources with a single-database default. The description adds no meaning beyond those fields, so the baseline of 3 applies.

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

Purpose4/5

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

The description names a specific verb (Execute) and enumerates the exact statement classes it handles (INSERT, UPDATE, DELETE, DDL), which implicitly separates it from the read-oriented sibling execute_query. It stops short of naming that sibling, so an agent must infer the split from the statement list rather than being told directly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can reason that write statements belong here and read queries belong to execute_query. There is no explicit when-to-use, when-not-to-use, or named alternative, and no note about prerequisites such as selecting a data source first.

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