mysql_get_table_schema
Retrieve column definitions, primary key, indexes, and constraints to understand table structure before writing queries.
Instructions
Get table column definitions, primary key, indexes, and constraints. Use this to understand table structure before writing queries.
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": {
"database": "<database>",
"table": "<table>"
},
"name": "mysql_get_table_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| database | Yes | Database (schema) name |