List BGP Peers
list_bgp_peersList BGP sessions on a MikroTik RouterOS 7+ device, showing state, remote AS, prefix count, and uptime. Filter by session state to quickly assess neighbor health.
Instructions
List BGP sessions on a MikroTik router (RouterOS 7+). Returns state, remote AS, prefix counts, and uptime.
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": "list_bgp_peers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | Filter by session state (e.g. established, active, idle) | |
| routerId | No | Router ID; omit to use the default router. |