get_replica_states
Retrieve detailed state information for all availability group replicas, optionally filtered by availability group or SQL Server instance, to monitor replication health and troubleshoot issues.
Instructions
Get detailed state information for all availability group replicas
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_replica_states"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agName | No | Filter by availability group name | |
| server | No | SQL Server instance (e.g., "server\instance" or "server,port"). Uses default if not specified. |