Skip to main content
Glama
nix-agent

nix-agent

by JEFF7712

generations

List recent NixOS or Home Manager system states and roll back to a previous or specified state to recover from a broken configuration.

Instructions

action='list': enumerate recent system/HM generations (default limit=20, always keeping current; pass limit=None for all) with dates and current marker. NixOS entries include path when the profile link exists. action='rollback': revert to the previous generation, or pass generation= to activate that generation. Bare rollback is previous-only. Pass mode='home-manager' for HM generations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generations"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNonixos
limitNo
actionNolist
generationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": 20
      +}
  2. Changed1 schema field changedv0.9.1
    • addedInput schema / properties / generation
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  3. Addedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses defaults, the current-generation retention rule, and that bare rollback is previous-only, but it does not state whether rollback is destructive, reversible, or requires elevation.

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

Conciseness4/5

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

The description is compact, action-oriented, and front-loads the list behavior before rollback. It remains dense but avoids unnecessary repetition.

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

Completeness3/5

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

An output schema exists, so return values need not be explained. Still, for a mutation-capable tool with no annotations and low schema coverage, the description should more explicitly address rollback safety and sibling-tool selection.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It explains action, limit semantics including None for all, generation as id or path, and mode='home-manager' for HM generations, though it does not fully document all mode values or generation type distinctions.

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

Purpose4/5

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

The description states two concrete operations: listing recent system/HM generations and rolling back to a generation. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as switch or build.

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

Usage Guidelines3/5

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

It explains the two action modes and when bare rollback applies versus passing generation=<id or path>. However, it gives no explicit guidance on when to use this tool instead of siblings like switch, build, or check.

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