get_replication_status
Diagnose PostgreSQL replication issues by monitoring connections, standby lag, WAL sender/receiver processes, and replication slots.
Instructions
[Tool Purpose]: Monitor PostgreSQL replication status and statistics
[Exact Functionality]:
Show current replication connections and their status
Display replication lag information for standbys
Monitor WAL sender and receiver processes
Provide replication slot information and statistics
[Required Use Cases]:
When user requests "replication status", "standby lag", "replication monitoring", etc.
When diagnosing replication issues or performance problems
When checking replication slot usage and lag
[Strictly Prohibited Use Cases]:
Requests for replication configuration changes
Requests for replication slot creation or deletion
Requests for failover or switchover operations
Returns: Replication status including connections, lag information, slots, and statistics
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_replication_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |