list_relations
Retrieve tables, partitions, views, sequences, indexes, and other relations from PostgreSQL databases with optional schema and kind filters.
Instructions
List tables, partitions, views, sequences, foreign tables, indexes, and other relations
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_relations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum relations | |
| offset | No | Result offset | |
| schema_name | No | Optional exact schema filter | |
| relation_kind | No | Optional kind: table, partitioned_table, view, materialized_view, sequence, foreign_table, index, partitioned_index, composite, or toast | |
| include_system | No | Include system schemas |