describe_table
Get complete table schema with column names, types, constraints, and indexes, so AI understands the database structure before generating queries.
Instructions
Show full column definitions, types, constraints, and indexes for a table.
Includes: column names, data types, nullable, primary key, unique, foreign keys. The editor AI reads this to understand the exact schema before generating 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": {
"connection": "<connection>",
"table_name": "<table_name>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | Yes | Database alias. | |
| table_name | Yes | Table to describe (exact name, case-sensitive). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |