describe_table
Inspect a database table or view to retrieve column types, nullability, defaults, primary keys, indexes, and foreign keys for schema-aware queries and migrations.
Instructions
Describe a table or view: columns (type, nullable, default), primary key, indexes and foreign keys.
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": "<table>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | table name; may be qualified: schema.table (postgres), db.table (mysql) | |
| schema | No | postgres schema, defaults to public | |
| database | No | ||
| connection | Yes | connection name, see list_connections |