get_table_schema_info
Retrieve detailed schema information for a specific MySQL table or entire database, including columns, indexes, foreign keys, constraints, statistics, defaults, and comments for design analysis.
Instructions
[Tool Purpose]: Get detailed schema information for a specific table or entire database
[Exact Functionality]:
If table_name provided: Show all columns, indexes, foreign keys for that table
If table_name empty: Show overview of all tables in the database
Display table statistics, constraints, and engine information
Include column comments and default values
[Required Use Cases]:
When user requests "table schema", "table structure", "describe table"
When analyzing table design and constraints
When requesting database-wide schema analysis with empty table_name
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_name": "<table_name>"
},
"name": "get_table_schema_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Name of the table to analyze (empty string for database overview) | |
| database_name | No | Database containing the table (uses current database if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |