List PostgreSQL Sequences
pg_list_sequencesList all sequences in a PostgreSQL schema, displaying their configuration, current value, and owning column.
Instructions
List all sequences in a schema with their configuration and current state.
Args:
schema: Schema name (default: public)
response_format: Output format
Returns: JSON: { sequences: SequenceInfo[], count: number } Markdown: table with name, type, range, increment, current value, and owning column
Note: last_value reflects the last allocated value, not necessarily the next one to be issued.
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": "pg_list_sequences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | PostgreSQL schema name (default: public) | public |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable | markdown |