describe_table
Inspect a PostgreSQL table or view to retrieve columns, primary key, foreign keys, indexes, and an estimated row count; returns an explicit error if the relation is missing.
Instructions
Describe one table or view: columns, primary key, foreign keys, indexes and an instant row-count estimate. Fails with an explicit error if the relation does not exist.
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_id": "<connection_id>",
"table": "<table>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name. | |
| schema | No | Schema name; defaults to "public". | |
| connection_id | Yes | Connection id. See list_connections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |