Skip to main content
Glama

Device Set Maintenance

device_set_maintenance
Idempotent

Place a network device into maintenance mode in LibreNMS with a configurable duration, title, notes, and optional start time to suppress alerts during planned work.

Instructions

Set device maintenance in LibreNMS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesMaintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (optional): Start time in "Y-m-d H:i:00" format (default: now)
hostnameYesDevice hostname or ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.0

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already indicate a non-read-only, idempotent, non-destructive write, and no annotation contradiction exists. However, the description adds no behavioral context beyond the bare action, such as what setting maintenance does, whether it suppresses alerts, or how it interacts with device_maintenance_status.

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?

The description is a single front-loaded sentence with no filler; every word contributes the action and target. Given the schema carries parameter detail, the brevity is appropriate.

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?

Together with the complete input schema, output schema, and annotations, the description is minimally viable for invoking the tool correctly. It is less complete for selection and expectation-setting because it does not explain the effect of maintenance or how it relates to sibling maintenance tools, but the schema and annotations compensate for much of the missing context.

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 the payload and hostname fields are already documented with formats, defaults, and required fields. The tool description itself adds no parameter-level meaning, which meets the baseline but does not exceed it.

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 a specific action ('Set') and resource ('device maintenance') in the context of LibreNMS, so an agent can tell this is a write operation targeting a single device. It is not as detailed as explicitly contrasting with devicegroup_set_maintenance or location_set_maintenance, but the device scope is clear from the description and hostname parameter.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this tool over the closely related devicegroup_set_maintenance, location_set_maintenance, or device_maintenance_status siblings. The description gives no when-to-use, when-not-to-use, or prerequisite context; an agent must infer the selection criteria entirely from the tool name and schema.

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

Deploy Server

Other Tools