add_comment
Add a comment to a MySQL table or column. Preview changes with dryRun before execution.
Instructions
Safely add a comment to a table or column. This tool only modifies comments — it cannot alter table structure, column types, or data. Set dryRun=true to preview the generated SQL without executing it. Use describe_table first to verify column names. Not available in read-only mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name. | |
| column | No | Column name. If omitted, sets a table-level comment. | |
| dryRun | No | If true, returns the generated SQL without executing it. Defaults to false. | |
| comment | Yes | Comment text to set. | |
| database | No | Database name. Uses the current database if omitted. |