Sites

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

Sites is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Datto RMM site management: site hierarchy and identifiers, proxy and patch-window settings, site-scoped device/alert queries, and create/update/delete operations for client locations.

How to use this skill

Skill file

Datto RMM Site Management

Overview

Sites in Datto RMM represent client organizations or locations. Each site contains devices, has its own settings, and can have site-level variables. Sites provide organizational hierarchy and enable scoped operations - alerts, jobs, and reports can all be filtered by site.

Anti-triggers

documentation entity, itglue-organizations; as a SOC tenant,

rocketcyber-accounts. None of these share IDs with a Datto RMM site.

datto-rmm-devices.

MCP Tools

| Tool | Tier | Purpose |

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

| datto_list_sites / datto_get_site | read | Sites (customers) and one site's detail |

| datto_get_site_patches | admin (unclassified) | Patch status rolled up across a site's devices |

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

Key Concepts

Site Hierarchy

Account
└── Sites (many)
    └── Devices (many per site)
        └── Alerts, Jobs, Audit Data

Site Types

Sites can represent:

Site Identifiers

| Identifier | Type | Description |

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

| siteUid | string | Globally unique identifier |

| siteId | integer | Legacy numeric ID |

| name | string | Display name |

Field Reference

A Site carries identifiers, onDemand/splapiEnabled flags, optional

proxySettings, device/alert counts, and a settings object (auto-patch

approval, patch window, timezone). See

references/fields.md for the complete interfaces.

Common Workflows

Site Lookup by Name

async function findSiteByName(client, name) {
  const response = await client.request('/api/v2/sites?max=250');
  const sites = response.sites || [];

  // Exact match first
  const exact = sites.find(s =>
    s.name.toLowerCase() === name.toLowerCase()
  );
  if (exact) return { found: true, site: exact };

  // Partial match
  const matches = sites.filter(s =>
    s.name.toLowerCase().includes(name.toLowerCase())
  );

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

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

  return {
    found: false,
    ambiguous: true,
    suggestions: matches.map(s => ({
      name: s.name,
      uid: s.uid,
      deviceCount: s.devicesCount
    }))
  };
}

Site health scoring (device status + alert priority weighted into a 0-100

score), a multi-site summary sorted by open alerts, an onboarding

checklist validator, and a safe CRUD wrapper are in

references/examples.md.

API Patterns

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

Gotchas

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

Site Naming Conventions

Recommended Format: {ClientName} - {Location/Purpose}

Examples:

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.