Ipfabric

From automateyournetwork/netclaw · View interactive version

Ipfabric is an AI agent skill from the GitHub repository automateyournetwork/netclaw. Query IP Fabric network assurance, intent checks, inventory, paths, and diagrams. Use when IP Fabric is the requested source of network evidence.

How to use this skill

Skill file

IP Fabric Network Assurance Skill

Skill: /ipfabric

MCP Server: ipfabric-mcp (remote HTTP via mcp-remote)

Tools: 10 (health, path lookups, diagrams, API discovery)

Developed in collaboration with Daren Fulwell (Field CTO, IP Fabric) and John Capobianco (Creator, NetClaw), representing nearly a decade of professional partnership.

Overview

The IP Fabric skill provides natural language access to IP Fabric's network assurance platform. IP Fabric discovers, models, and analyzes network infrastructure, exposing data through standardized MCP tools for health assessment, path analysis, visual diagrams, and custom API queries.

Key Capabilities:

Prerequisites

Environment Variables

IPFABRIC_HOST=https://ipfabric.example.com    # Appliance URL (no trailing slash)
IPFABRIC_API_TOKEN=your-api-token-here        # API token from Settings → API Tokens

MCP Tools Reference

Health Assessment

| Tool | Description |

|------|-------------|

| ipf_network_health_assess | Comprehensive network health overview |

Parameters:

Returns: Snapshot freshness, intent verification, device issues, routing stability

Path Lookups

| Tool | Description |

|------|-------------|

| ipf_pathlookup_unicast | Trace unicast path between two IPs |

| ipf_pathlookup_host-to-gateway | Trace host to default gateway |

| ipf_pathlookup_multicast | Trace multicast distribution path |

Common Parameters:

Path Diagrams (PNG)

| Tool | Description |

|------|-------------|

| ipf_png_pathlookup_unicast | Unicast path as PNG diagram |

| ipf_png_pathlookup_host-to-gateway | Host-to-gateway path as PNG diagram |

| ipf_png_pathlookup_multicast | Multicast path as PNG diagram |

Parameters: Same as corresponding path lookup tools

Returns: Base64-encoded PNG image

API Discovery

| Tool | Description |

|------|-------------|

| ipf_api_endpoint_search | Search for API endpoints using natural language |

| ipf_api_endpoint_details | Get endpoint details including parameters |

| api_invoke | Execute arbitrary API calls |


Query Examples by Use Case

Network Health Assessment (US1)

/ipfabric check network health
/ipfabric show me critical issues only
/ipfabric what's the BGP status across my network
/ipfabric are there any routing problems
/ipfabric show snapshot freshness

Query Patterns → ipf_network_health_assess:

Path Analysis with Diagrams (US2)

/ipfabric show me the path from 10.0.1.5 to 10.0.2.10
/ipfabric trace route from server A to server B with diagram
/ipfabric show path from 192.168.1.100 to its gateway
/ipfabric show path from 10.1.1.1 to 10.2.2.2 in VRF MGMT
/ipfabric show multicast path for group 239.1.1.1 from source 10.0.1.5 with diagram

Query Patterns → ipf_pathlookup_* or ipf_png_pathlookup_*:

Device Inventory Queries (US3)

/ipfabric show all Cisco devices in site HQ
/ipfabric find devices with uptime less than 1 day
/ipfabric list devices with telnet enabled
/ipfabric show device counts by vendor
/ipfabric what devices are in site DATACENTER

Query Patterns → api_invoke with inventory endpoints:

Routing Protocol Troubleshooting (US4)

/ipfabric show BGP neighbors that are not in Established state
/ipfabric list OSPF neighbors not in Full state
/ipfabric are there any routing adjacency issues
/ipfabric show routing neighbors for device CORE-RTR-01

Query Patterns → ipf_network_health_assess (routing section):

Intent Validation and Compliance (US5)

/ipfabric are there any intent violations
/ipfabric check compliance status
/ipfabric show failed intent rules
/ipfabric what intent checks are failing

Query Patterns → ipf_network_health_assess (intent section):

Advanced API Discovery (US6)

/ipfabric find endpoints for device inventory
/ipfabric how do I query interface statistics
/ipfabric show me the API for routing tables
/ipfabric invoke /tables/inventory/devices with vendor filter Cisco

Workflow:

  1. ipf_api_endpoint_search - Find relevant endpoints
  2. ipf_api_endpoint_details - Get parameters and schema
  3. api_invoke - Execute the query

Cross-Platform Composition (US7)

/ipfabric compare network state with SuzieQ historical data
/ipfabric validate paths against Batfish config analysis
/ipfabric which Check Point firewall rules affect the path from 10.1.1.1 to 10.2.2.2
/ipfabric compare topology with my CML lab

Composition Patterns:

| Integration | IP Fabric Provides | Partner Provides | Use Case |

|-------------|-------------------|------------------|----------|

| SuzieQ | Live network state | Historical analysis | State drift detection |

| Batfish | Live paths, topology | Config analysis | Intent vs reality |

| Check Point | Path endpoints | Security policies | Security path analysis |

| CML/GNS3 | Production topology | Lab topology | Lab validation |


Snapshot Handling

IP Fabric queries execute against a specific snapshot (point-in-time network state).

Default Behavior: All queries default to $last (most recent completed snapshot)

Override Options:

Example:

/ipfabric check network health using snapshot from last week
/ipfabric show path from 10.0.1.5 to 10.0.2.10 in snapshot 'Pre-Change'

Diagram Handling

PNG diagrams are returned as base64-encoded images.

Delivery Methods:

Workspace Storage:

~/.openclaw/workspace/diagrams/ipfabric/
├── path-2026-06-19-001.png
└── path-2026-06-19-002.png

Error Handling

| Error | Cause | Resolution |

|-------|-------|------------|

| "Cannot connect" | Network issue or wrong URL | Verify IPFABRIC_HOST and connectivity |

| "Authentication failed" | Invalid or expired token | Regenerate token in IP Fabric UI |

| "Permission denied" | RBAC restrictions | Request appropriate token permissions |

| "Snapshot not found" | Invalid snapshot ID | Use $last or list available snapshots |

| "No path exists" | Disconnected endpoints | Check connectivity, verify IPs |


RBAC Considerations

The API token's RBAC permissions determine accessible data:

| Permission Level | Capabilities |

|-----------------|--------------|

| Read-only | Health, paths, inventory, diagrams |

| Intent Admin | + Intent rule configuration |

| Full Access | All capabilities |

Security Note: API tokens are never exposed to the AI model. Only query results (network data) are processed.


Related Documentation


Partnership Attribution

This integration was developed in collaboration with:

Their partnership, spanning nearly a decade, continues to bring innovative network automation capabilities to the community.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.