magento_find_trigger
Find MySQL database trigger definitions in Magento Setup scripts to detect triggers created via TriggerFactory. Use when investigating DB-level automation, trigger chains, or performance issues caused by cascading triggers.
Instructions
Find MySQL database trigger definitions in Magento Setup scripts. Detects triggers created via TriggerFactory (setName, setTable, setEvent, setTime, addStatement, createTrigger). Returns trigger name, target table, event type (INSERT/UPDATE/DELETE), timing (BEFORE/AFTER), and SQL statements. Use when investigating DB-level automation, trigger chains, or performance issues caused by cascading triggers.
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": "magento_find_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | No | Optional table name to find triggers targeting this table. | |
| triggerName | No | Optional trigger name or pattern to search for. If omitted, finds all triggers in the codebase. |