Skip to main content
Glama
MySQL MCP Server

MySQL MCP Server

by berthojoris

list_triggers

Read-onlyIdempotent

Retrieve all database triggers, optionally filtered by database or table, to inspect automation logic and verify schema behavior.

Instructions

Lists all triggers in the database, optionally filtered by table.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_triggers"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOptional: specific database name
table_nameNoOptional: filter triggers for specific table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.46.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds only that filtering is optional, and omits behavior such as what happens when database is omitted (default connection? all databases?) and whether results are paginated.

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 no filler. It is appropriately sized for the tool's simplicity, though it is thin enough that it could afford one more clause of differentiation at no real cost.

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

Completeness3/5

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

For a two-optional-parameter read-only list tool with full schema coverage and no output schema, the description is minimally sufficient. It leaves unresolved whether an omitted database means the current connection or a scan across databases, which is the main practical ambiguity.

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%, so both parameters are already documented with their optionality. The description restates the table filter and loosely implies the database parameter, adding little semantics beyond the schema; baseline 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?

Names a specific verb and resource ("Lists all triggers") and states the scope is the database, with an optional table filter. It does not distinguish itself from the sibling get_trigger_info, so an agent must infer that this one enumerates while the other returns details.

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?

The phrase "optionally filtered by table" implies when to supply table_name, but there is no explicit when-to-use guidance, no mention of get_trigger_info as an alternative for trigger details, and no note on when to scope by database.

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