Skip to main content
Glama

updates_policy

Configure apt-based hosts to apply a fleet security-update policy: install security updates automatically via unattended-upgrades, keep reboots manual, and enable APT timers.

Instructions

Bring hosts to the fleet update policy: security updates install automatically (unattended-upgrades, stock security-only origins), NO automatic reboots — reboots stay manual (host_reboot). Writes /etc/apt/apt.conf.d/20auto-upgrades and 99zz-mia-policy, enables apt-daily timers. apt-based hosts only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNofalse (default) = dry run: show what will happen on which hosts and a planHash. true = run it; needs planHash
batchNohosts at a time (rolling). Default depends on the action: 1 for disruptive ones
targetNohosts: all | <host> | <glob nl-*> | <group> | role:<edge|remnanode|panel|docker> | tag:<tag>; comma-separated, !x excludesall
planHashNoplanHash from the dry run of the very same call, good for one apply; refused if targets or their state changed since
continueOnErrorNokeep going after a host fails (default: stop the rollout at the first failure)
skipUnreachableNoskip hosts that do not answer over ssh instead of refusing the whole plan (they show as skipped)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does well: it discloses which files are written, which timers are enabled, and the deliberate no-reboot policy. It does not disclose privilege requirements, idempotency, or reversal behavior when the policy is later changed, leaving a modest gap for a write-configuration tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences, front-loaded with the core policy outcome before the implementation files. Every clause (auto-install scope, no-reboot rule, written paths, apt-only boundary) carries distinct, non-redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool with no annotations and no output schema, the description covers the essential policy semantics and scope boundary, while the schema handles apply/planHash mechanics. It omits any note on required privileges or effect on hosts already carrying a conflicting policy, which would round it out.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all six parameters (apply, batch, target, planHash, continueOnError, skipUnreachable) are already documented in the schema, including the dry-run/planHash workflow. The description adds no parameter-level syntax or format detail beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (bring hosts to the fleet update policy) and enumerates the exact configuration outcome: security-only unattended upgrades, no auto reboots, which files are written (/etc/apt/apt.conf.d/20auto-upgrades and 99zz-mia-policy). An agent can distinguish this from apt_upgrade (which performs upgrades) and host_reboot (which it explicitly routes reboots to) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Names the alternative for the excluded behavior ('reboots stay manual (host_reboot)') and gives an explicit applicability boundary ('apt-based hosts only'), which tells the agent when this tool is valid. It stops short of stating when to prefer this over apt_upgrade or tuning_apply, so it is strong context without full when/when-not coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.