Devices

From wyre-technology/msp-claude-plugins · View interactive version

Devices is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Datto RMM device management: identifiers (UID, hostname, MAC), device types and statuses, user-defined fields (UDF1-30), warranty data, and device lookup/update/delete operations.

How to use this skill

Skill file

Datto RMM Device Management

Overview

Devices are the core managed entities in Datto RMM. Each device represents an endpoint with the Datto agent installed - workstations, servers, ESXi hosts, or network devices. This skill covers device identification, status monitoring, user-defined fields, and common device operations.

Anti-triggers

autotask-configuration-items.

itglue-configurations.

periodic audit, not the device record; use datto-rmm-audit.

commonly runs both; use rocketcyber-agents.

managed endpoint in most of them, so the wording never disambiguates;

confirm which agent is enrolled, then use ncentral-devices,

ninjaone-devices, or atera-agents (Atera reserves

"device" for agentless monitors).

MCP Tools

| Tool | Tier | Purpose |

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

| datto_find_device | read | Resolve a hostname to a device UID (exactMatch, optional siteUid) |

| datto_list_devices / datto_get_device | read | Devices and one device's detail |

| datto_get_device_patches | admin (unclassified) | Per-patch installed/missing/pending status, severity, reboot requirement, KB |

| datto_get_device_audit | admin | Full hardware/software audit of a device |

Tiers are Conduit's classification. REST examples later in this skill show what the tools call underneath.

Key Concepts

Device Identifiers

Every device has multiple identifiers:

| Identifier | Type | Description | Example |

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

| deviceUid | string | Globally unique identifier | d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f9a |

| deviceId | integer | Legacy numeric ID | 123456 |

| hostname | string | Computer name | ACME-DC01 |

| intIpAddress | string | Internal IP address | 192.168.1.100 |

| extIpAddress | string | External/public IP | 203.0.113.50 |

| macAddresses | array | Network interface MACs | ["00:1A:2B:3C:4D:5E"] |

Device Types

| Type | Description | Typical Use |

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

| Desktop | Workstation/PC | End-user computers |

| Laptop | Portable workstation | Mobile workers |

| Server | Windows/Linux server | Infrastructure |

| ESXi Host | VMware hypervisor | Virtualization |

| Network Device | Router/switch/firewall | SNMP-monitored |

| Printer | Network printer | Print infrastructure |

Device Status

| Status | Description | Business Impact |

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

| online | Agent checking in | Normal operation |

| offline | No agent communication | May require attention |

| rebooting | Restart in progress | Temporary state |

| unknown | Status undetermined | Check connectivity |

Field Reference

Devices carry identifier, site, type/status, network, OS, hardware, agent, and

timestamp fields, plus 30 user-defined fields (udf1-udf30, 255 char max,

commonly used for asset tag, department, primary user, location, purchase

date, lease expiration). See references/fields.md

for the complete Device interface and UDF table.

Common Workflows

Device Lookup by Hostname

async function findDeviceByHostname(client, hostname) {
  // Fetch all devices (with pagination)
  const allDevices = [];
  let url = '/api/v2/devices?max=250';

  while (url) {
    const response = await client.request(url);
    allDevices.push(...response.devices);
    url = response.pageDetails?.nextPageUrl;
  }

  // Search case-insensitive
  const matches = allDevices.filter(d =>
    d.hostname.toLowerCase().includes(hostname.toLowerCase())
  );

  if (matches.length === 0) {
    return { found: false, suggestions: [] };
  }

  if (matches.length === 1) {
    return { found: true, device: matches[0] };
  }

  return {
    found: false,
    ambiguous: true,
    suggestions: matches.map(d => ({
      hostname: d.hostname,
      uid: d.uid,
      site: d.siteName
    }))
  };
}

Equivalent lookups by IP and MAC address, an offline-device report, and a

bulk UDF update helper follow the same pagination pattern - see

references/examples.md for the full

implementations, including UDF/description length validation.

API Patterns

See references/api.md for full request/response examples.

Gotchas

See references/errors.md for the full device API error table.

Related Skills

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.