list_objects
List tables, views, or sequences in a specified PostgreSQL schema, enabling direct inspection of database object structure.
Instructions
List tables/views/sequences in a schema.
Args:
schema_name: Name of the schema to list objects from.
object_type: One of "table", "view", "sequence" (default: "table").
database_url: Database URL (optional, uses DATABASE_URL from .env if omitted).
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": {
"schema_name": "<schema_name>"
},
"name": "list_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_type | No | table | |
| schema_name | Yes | ||
| database_url | No |