Skip to main content
Glama
jovian-zhibai

mcp-database

execute

Run write SQL statements (INSERT, UPDATE, DELETE) on a database connection. Use to modify data when write support is enabled.

Instructions

Execute a write SQL statement (INSERT, UPDATE, DELETE). Only works if writes are enabled.

Args: sql: SQL statement to execute. database: Name of the database within the connection (optional). connection_name: Name of the database connection (default: "default").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
databaseNo
connection_nameNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly discloses that the tool performs writes and depends on writes being enabled. It does not mention permissions, reversibility, or what happens when writes are disabled, so coverage is moderate rather than complete.

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

Conciseness5/5

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

The description is compact and well structured: a one-sentence purpose, a prerequisite, and a short argument list. It is front-loaded with the most important behavior and contains no filler.

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?

Given the tool's simplicity, an output schema, and clear parameter docs, the description is nearly complete. It covers the core write behavior, the writes-enabled prerequisite, and all arguments. Minor gaps like error behavior when writes are disabled or transactional semantics are not addressed, but they are not essential for basic invocation.

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%, and the description does provide some meaning for each parameter: sql is the statement, database is the database within the connection, and connection_name has a default. However, most of this is thin restatement of the parameter names and schema defaults, adding limited semantic value beyond what the schema already shows.

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 clearly names the action ('Execute a write SQL statement') and specifies the allowed statement types (INSERT, UPDATE, DELETE). This separates it from the read-oriented sibling tools like query and sample_rows.

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?

The description makes clear the tool is for write SQL and not for reads, which implies the distinction from sibling tools. It also states the key prerequisite that writes must be enabled. It does not explicitly name read alternatives, but the context is sufficient.

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