describe_table
Inspect a PostgreSQL table's columns, data types, primary key, and foreign keys to understand its schema before writing read-only queries.
Instructions
Show columns, types, primary key and foreign keys for a table (e.g. 'public.orders').
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 | ||
| database | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||