infer_topology
Given device configs, infer shared subnets and VLANs, then visualize network adjacencies as a Mermaid topology diagram.
Instructions
Given several device configs, work out which devices share subnets or VLANs and draw the segments as a Mermaid diagram (graph LR). Shared-subnet inference: two devices with an interface on the same network are adjacent. A subnet contained in a broader declared one is merged into it. Prefixes shorter than /16 are ignored as too broad to mean a segment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"devices": "<devices>"
},
"name": "infer_topology"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |