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.
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 |