get_trigger_definition
Fetch the complete source definition of a DML trigger by providing its schema and name. Useful for reviewing trigger logic in SQL Server or PostgreSQL.
Instructions
Get the full source definition of a DML 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": {
"schema": "<schema>",
"name": "<name>"
},
"name": "get_trigger_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Trigger name | |
| schema | Yes | Schema of the parent table the trigger belongs to (e.g. dbo) | |
| database | No | Database name (defaults to the configured default database) |