/datto-rmm:variablesfrom datto-rmm
Manages Datto RMM account-level and site-level variables including scoping, inheritance, naming conventions, CRUD operations, and referencing from component scripts.
Ships in datto-rmm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Variables in Datto RMM store key-value configuration data at account or site level. They're used to customize component scripts, store configuration values, and maintain environment-specific settings. This skill covers variable management, scoping, and usage patterns.
datto-rmm-jobs.datto-rmm-devices or
autotask-configuration-items.| Scope | Description | Use Case |
|---|---|---|
| Account | Available to all sites | Global configuration |
| Site | Available to specific site | Client-specific settings |
Account Variables (Global)
│
▼ (inherited by)
Site Variables
│
▼ (used in)
Jobs/Components
Site variables can override account variables with the same name.
All variables are stored as strings but can represent:
Recommended Format: SCREAMING_SNAKE_CASE (e.g. BACKUP_PATH, ADMIN_EMAIL, LOG_RETENTION_DAYS).
Reserved prefixes - names starting with these are rejected (400 Invalid name):
CS_ - Datto internal useDATTO_ - System variablesA Variable has id, name, value, optional description, scope
(account|site), and siteUid when site-scoped. See
references/fields.md for the full interface.
Account variables can be overridden by site variables - check site scope first, then fall back to account:
async function getEffectiveVariable(client, siteUid, variableName) {
// Try site variable first
const siteVars = await client.request(`/api/v2/site/${siteUid}/variables`);
const siteVar = siteVars.variables?.find(v => v.name === variableName);
if (siteVar) {
return {
name: variableName,
value: siteVar.value,
scope: 'site',
source: `Site: ${siteUid}`
};
}
// Fall back to account variable
const accountVars = await client.request('/api/v2/account/variables');
const accountVar = accountVars.variables?.find(v => v.name === variableName);
if (accountVar) {
return {
name: variableName,
value: accountVar.value,
scope: 'account',
source: 'Account'
};
}
return {
name: variableName,
value: null,
error: 'Variable not found'
};
}
Bulk site-variable setup, an account+site audit report, an override finder that scans every site for a given variable name, a template applier for standardized onboarding, and a create-or-update "safe set" helper are in references/examples.md.
GET /api/v2/account/variables - list account-scoped variablesGET /api/v2/site/{siteUid}/variables - list site-scoped variablesPOST /api/v2/account/variables / POST /api/v2/site/{siteUid}/variables - createPUT /api/v2/account/variable/{variableId} / PUT /api/v2/site/{siteUid}/variable/{variableId} - updateDELETE .../variable/{variableId} - delete (account or site path)See references/api.md for full request/response examples.
PUT to update instead of retrying POST.PUT, not POST - unlike variable creation, which is POST.CS_, DATTO_) are rejected outright - validate names client-side before submitting to avoid a wasted round trip.See references/errors.md for the full variable API error table.
| Category | Examples | Purpose |
|---|---|---|
| Backup | BACKUP_PATH, BACKUP_RETENTION_DAYS | Backup configuration |
| Logging | LOG_PATH, LOG_LEVEL | Log settings |
| Alerting | ALERT_EMAIL, ALERT_THRESHOLD | Alert configuration |
| Security | AV_SCAN_SCHEDULE, FIREWALL_ENABLED | Security settings |
| Client | CLIENT_CODE, CLIENT_CONTACT | Client identification |
Variables are referenced in component scripts as environment variables:
PowerShell:
$backupPath = $env:BACKUP_PATH
$retentionDays = $env:LOG_RETENTION_DAYS
# Use the variables
Get-ChildItem -Path $backupPath -Recurse |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-$retentionDays) } |
Remove-Item
Bash:
BACKUP_PATH="${BACKUP_PATH:-/backup}"
RETENTION_DAYS="${LOG_RETENTION_DAYS:-30}"
find "$BACKUP_PATH" -type f -mtime +$RETENTION_DAYS -delete
What SKILL.md sets; muted values are Claude Code's defaults
When working with account-level and site-level variables for storing configuration data in Datto RMM variables. Use when: datto variable, rmm variable, account variable, site variable, script variable, component variable, or configuration variable.
Three short reads, in order
7 skills in this plugin
/alertsDatto RMM AlertsDatto RMM alert structure, priorities, and the 25+ alert context types (antivirus_ctx, eventlog_ctx, perf_disk_usage_ctx, ransomware_ctx, and more), each with its own type-specific fields. Covers alert resolution workflows and context-specific triage guidance.
/api-patternsDatto RMM API PatternsDatto RMM REST API v2 fundamentals: OAuth 2.0 client-credentials-style authentication, the 6 regional platforms (Pinotage, Merlot, Concord, Vidal, Zinfandel, Syrah), token lifecycle, cursor-based pagination, rate limiting, Unix-millisecond timestamps, and error handling.
/npx claudepluginhub wyre-ai/msp-claude-plugins --plugin datto-rmmOther plugins' skills for the same job