Describe table
describe_tableInspect a PostgreSQL table to get its columns, data types, primary key, and existing indexes. Use it to understand table structure before writing or optimizing queries.
Instructions
Describe one table: columns and types, primary key, and existing indexes.
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": {
"table": "<table>"
},
"name": "describe_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name, e.g. "orders". | |
| schema | No | Schema name. Defaults to "public". |