Skip to main content
Glama
adamrpostjr

sqlmate-mcp

by adamrpostjr

run_write

Run write SQL statements with a built-in safety mechanism: destructive operations first display a risk summary and require user approval before execution.

Instructions

Run a write SQL statement (INSERT, UPDATE, DELETE, TRUNCATE, DROP, ALTER). IMPORTANT: For destructive operations (DELETE, TRUNCATE, DROP, UPDATE without WHERE, ALTER TABLE ... DROP COLUMN) you MUST first call this tool WITHOUT confirm to get a risk summary, show it to the user and ask for explicit approval, then call again with confirm: true. Never pass confirm: true on the first call without user approval.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSQL statement to execute
confirmNoSet to true only after the user has explicitly approved the risk shown by a prior call to this tool
connectionIdYesConnection ID from list_connections
project_rootNoAbsolute path to the current project directory (same value passed to list_connections)
Behavior4/5

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

Discloses the two-step confirmation requirement for destructive operations, which is critical. However, does not describe the format of the risk summary return or any error/authentication behavior. With no annotations, more could be said, but the main safety feature is well communicated.

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?

Two sentences, both essential. First sentence states purpose, second provides critical usage instruction. No wasted words.

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?

Covers purpose, confirmation flow, and sibling relationship. Could be improved by explicitly stating what happens when confirm is false (returns risk summary) and any preconditions (e.g., user authentication). But overall sufficient for an agent to use correctly.

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%, but description adds meaningful context: explains confirm parameter's usage pattern and notes connectionId comes from list_connections. This goes beyond the schema's descriptions.

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?

Description explicitly states it runs write SQL statements (INSERT, UPDATE, DELETE, TRUNCATE, DROP, ALTER), clearly distinguishing from the read-only sibling run_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?

Provides explicit step-by-step guidance: for destructive operations, first call without confirm to get a risk summary, then call with confirm: true only after user approval. Also warns against passing confirm: true on first call.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamrpostjr/sqlmate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server