show_create_table
Retrieve the SQL CREATE TABLE statement for a specified table in a MySQL or MariaDB database. Useful for schema migration or documentation.
Instructions
Return CREATE TABLE DDL.
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": "show_create_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| database | No | Database/schema name; defaults to connection default_database | |
| connection | No | Named connection from config; defaults to default_connection |