get_rule
Fetch complete rule documentation: what it reports, why it matters, if auto-fixable, and configuration. Call with a violation ID to get the reasoning before rewriting a migration.
Instructions
Get the full documentation for one MigrationPilot rule: what it reports, why it matters, whether it can be auto-fixed, and how to configure it. Call this when a violation ID appears and you need the reasoning behind it before rewriting a migration.
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": {
"ruleId": "<ruleId>"
},
"name": "get_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | Optional SQL to run this one rule against. When the rule fires, the response carries the exact violation message and the concrete safe alternative for that statement. | |
| ruleId | Yes | Rule ID, e.g. MP001 (case-insensitive) |