get_table_detail
Retrieve column details and CREATE TABLE DDL for a specific table in a MySQL-compatible database. Provide instance, database, and table name to get the schema information.
Instructions
Get column info and CREATE TABLE DDL for a specific table.
Args: instance_id: The instance name from register_instance. database: The database name. table_name: The table name.
Returns: JSON with {columns: [...], ddl: "..."}, or error details.
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": {
"instance_id": "<instance_id>",
"database": "<database>",
"table_name": "<table_name>"
},
"name": "get_table_detail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| table_name | Yes | ||
| instance_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |