Get logical replication status
get_logical_replication_statusReports whether PostgreSQL 19's on-demand wal_level flip is available, showing configured and effective wal_level plus max_replication_slots so agents can detect pending reloads.
Instructions
Report whether PG 19's on-demand wal_level flip is usable, plus the configured wal_level, the new PG 19 effective_wal_level preset GUC, and max_replication_slots. When configured and effective diverge the agent can tell that an ALTER SYSTEM has been done but a reload is still pending. Never raises. Returns an object with available (bool), server_version_num, server_version, wal_level, effective_wal_level, max_replication_slots, and detail.
Example: get_logical_replication_status()
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": "get_logical_replication_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | Yes | ||
| available | Yes | ||
| wal_level | Yes | ||
| server_version | Yes | ||
| server_version_num | Yes | ||
| effective_wal_level | Yes | ||
| max_replication_slots | Yes |