Claroty asset inventory

From automateyournetwork/netclaw · View interactive version

Claroty asset inventory is an AI agent skill from the GitHub repository automateyournetwork/netclaw. Discover and classify OT / IoT / IoMT assets via Claroty xDome. List devices by site, Purdue level, and device purpose; assign Purdue layers and custom attributes; cross-reference with Nautobot / NetBox SoT to surface drift.

How to use this skill

Skill file

Claroty Asset Inventory

OT / IoT / IoMT asset discovery, Purdue Model classification, and source-of-truth reconciliation, using the Claroty xDome MCP server.

When to Use

MCP Server

Available Tools

| Tool | Parameters | What It Does |

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

| list_devices | site_id?, purdue_level?, device_purpose?, name_contains?, limit?, offset?, max_items? | List xDome-managed devices with rich filters |

| get_device_details | device_id | Full record for a single device including raw attributes |

| set_device_purdue_level | device_id, purdue_level, cr_number | Write (ITSM-gated) — assign Purdue layer |

| set_device_custom_attribute | device_id, attribute_key, attribute_value, cr_number | Write (ITSM-gated) — set a custom attribute |

For cross-referencing, also reach for:

Workflow Examples

Inventory by site and Purdue layer

"List the first 50 devices at site warehouse-east at Purdue level 1, showing names, vendors, and risk scores"

Calls list_devices(site_id="warehouse-east", purdue_level="Level 1", limit=50). Returns a GCF-encoded device table.

Find every PLC in the fleet

"List all PLCs across all sites"

Calls list_devices(device_purpose="PLC", max_items=500).

Classify a newly discovered device

"Set device 7a2c... to Purdue level 2 under CHG0012345"

Calls set_device_purdue_level(device_id="7a2c...", purdue_level="Level 2", cr_number="CHG0012345"). The ITSM gate validates the CR before the POST.

SoT drift check

"Compare xDome devices at site warehouse-east to Nautobot's inventory for that site and flag anything missing on either side"
  1. list_devices(site_id="warehouse-east") → xDome set
  2. nautobot_get_ip_address(...) filtered by site → SoT set
  3. The agent diffs MAC / IP / name and reports IP_DRIFT, MISSING_FROM_SOT, and MISSING_FROM_XDOME entries.

Tag for compliance audit

"Mark device 9f4d... with custom attribute compliance_scope=PCI under CHG0012999"

Calls set_device_custom_attribute(device_id="9f4d...", attribute_key="compliance_scope", attribute_value="PCI", cr_number="CHG0012999").

ITSM gating

All write tools call validate_change_request(cr_number) from mcp-servers/claroty-mcp/utils/itsm_gate.py. The CR must:

  1. Match CHG\d+.
  2. Be in "Implement" state in ServiceNow (skipped in NETCLAW_LAB_MODE=true).

A rejection returns {"itsm_gate": {...}, "applied": false} and the xDome call is NOT made.

Token scope expectations

If set_device_purdue_level or set_device_custom_attribute returns applied: false and an error object with status_code: 403, the ITSM gate passed and the request body is correct — xDome rejected at RBAC. The token in CLAROTY_API_TOKEN lacks write scope on devices. Don't retry — escalate to whoever provisions xDome API tokens.

GAIT audit

Every tool invocation is recorded in GAIT. The audit trail includes the tool name, parameters, CR number (for writes), and the xDome response status.

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.