Skip to main content
Glama
RexySaragih

mysql-mcp

by RexySaragih

schema_query

Destructive

Execute database schema changes like CREATE, ALTER, DROP, or RENAME with a confirmation preview to prevent accidental modifications.

Instructions

Execute CREATE, ALTER, DROP, or RENAME (DDL). Separate from write_query. Requires confirmed=true after a strong confirmation preview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYesSingle CREATE/ALTER/DROP/RENAME statement
confirmedNoMust be true to execute. If omitted/false, returns an impact preview only — nothing runs.
Behavior4/5

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

The description adds the key behavior of requiring confirmed=true and returning a preview when confirmed is false/absent. This complements the annotations (destructiveHint=true). No contradiction: description aligns with destructive nature.

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?

Three sentences with no redundancy. Front-loaded with the core purpose. Every sentence is essential: what it does, how it differs, and the confirmation requirement.

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?

The description covers the main purpose, differentiation, and the confirmation workflow. Given no output schema, it doesn't need to detail return values. It is adequate for the tool's complexity.

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?

With 100% schema coverage, the description adds value by framing the sql parameter as DDL statements and explaining the confirmed parameter's preview vs execution behavior. This exceeds the schema's basic 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?

The description clearly states the tool executes DDL statements (CREATE, ALTER, DROP, RENAME), distinguishing it from write_query. The verb 'execute' and the list of DDL verbs provide a specific resource and action.

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?

It explicitly separates from write_query, implying a clear context for DDL vs DML. It also instructs to use confirmed=true after a preview. However, it doesn't explicitly exclude usage for other query types, but sibling tool names imply alternatives.

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/RexySaragih/mcp-mysql'

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