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.
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": {
"table": "<table>",
"comment": "<comment>"
},
"name": "add_comment"
}
}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. |