Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

show_create_trigger

Read-onlyIdempotent

Retrieves the CREATE TRIGGER statement for a specified MySQL trigger, optionally within a database, to inspect its exact definition.

Instructions

Shows the CREATE statement for a trigger.

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": {
      "trigger_name": "<trigger_name>"
    },
    "name": "show_create_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
trigger_nameYesName of the trigger

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is fully covered. The description adds only that the returned artifact is a CREATE statement, and says nothing about error behavior for a missing trigger or how the optional database parameter affects resolution.

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?

A single front-loaded sentence with no filler or repetition. The key fact — it returns the CREATE statement — is the first thing the agent reads.

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?

For a simple, non-destructive read tool with full annotation coverage and 100% schema documentation, the description is adequate. The remaining gap is minor: it does not state what happens when the trigger does not exist.

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%, with both `trigger_name` and the optional `database` documented in the schema, so the baseline is 3. The description contributes no additional parameter meaning, such as whether `database` defaults to the connected database.

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 ('Shows') and resource ('CREATE statement for a trigger'), so the agent knows it retrieves DDL text. It is clearly distinct from get_trigger_info or get_table_status by virtue of returning the CREATE statement, though it does not name a sibling to route away from.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites (e.g., that the trigger must exist or that `database` defaults to the current one), and no reference to the alternative get_trigger_info for metadata rather than DDL. The agent must infer usage entirely from the name.

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