List database objects of one kind
pg_list_objectsList PostgreSQL objects of one kind—views, functions, indexes, sequences, types, policies, and more—with schema and name filters, returning compact, kind-specific columns.
Instructions
List objects of ONE kind: views, materialized views, sequences, functions, procedures, aggregates, triggers, indexes, types, enums, domains, extensions, foreign tables and servers, operators, casts, collations, languages, tablespaces, rules, policies, statistics, publications, subscriptions, text search configs, access methods or databases.
Each kind returns its own compact columns (a function: arguments, returns, language,
volatility; a sequence: type, last value, owning column; an index: table, method,
size). Filter by schema and by a name pattern (* and ? wildcards; plain text
matches any name containing it). Kinds the server version does not have return an
empty list with a note. Tables are listed by pg_list_tables.
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": {
"kind": "<kind>"
},
"name": "pg_list_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| limit | No | ||
| offset | No | ||
| schema | No | ||
| pattern | No | ||
| connection | No |