Show CREATE TABLE Statement
mysql_show_create_tableGet the complete CREATE TABLE DDL for a MySQL table, including all indexes, constraints, and engine settings.
Instructions
Get the full CREATE TABLE DDL statement for a table.
Args:
table (string, required): Table name
database (string, optional): Database name. Uses MYSQL_DATABASE if omitted.
Returns the complete CREATE TABLE SQL with all indexes, constraints, and engine settings.
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>"
},
"name": "mysql_show_create_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| database | No | Database name (uses MYSQL_DATABASE env var if omitted) |