Skip to main content
Glama

Set Device Maintenance

ninjaone_set_device_maintenance
Idempotent

Schedule a maintenance window for a single device to suppress alerts, patching, antivirus scans, or tasks between epoch start and end times. Use it to prevent interruptions during planned work.

Instructions

Schedule a maintenance window on one device, suppressing alerts, patching, AV scans or tasks between start and end (epoch seconds). Undo with ninjaone_cancel_device_maintenance. Body (object) per NinjaOne updateDeviceMaintenance. Fields: disabledFeatures ("ALERTS"|"PATCHING"|"AVSCANS"|"TASKS"[]), start (number), end (number), reasonMessage (string). Needs NINJAONE_MODE=write and confirm: true.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "device_id": "<device_id>",
      "body": "<body>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_set_device_maintenance"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for updateDeviceMaintenance. Field names are NinjaOne's (camelCase).
confirmYesMust be exactly true. States that this call changes live data. There is no undo from this server.
device_idYesDevice id (from ninjaone_list_devices or ninjaone_search_devices).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description goes further by spelling out what is actually suppressed during the window and that a companion cancel tool restores normal operation, consistent with the non-destructive, idempotent hints. It does not cover duration limits, overlapping windows, or error behavior, keeping it below a 5.

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 critical action and effect are front-loaded, followed by the undo path, the body contract, and the prerequisites in a logical order. The compressed telegraphic style ('Body (object) per NinjaOne updateDeviceMaintenance') is dense but every clause carries information; only the external-doc reference is slightly unhelpful to an agent without that doc.

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?

For a 3-parameter mutation tool with a nested freeform body object and no output schema, the description supplies the key body fields and units, which is what an agent most needs. It is weakened by deferring the full body contract to NinjaOne documentation and by the tension with the confirm parameter, which says there is 'no undo from this server' while the description advertises ninjaone_cancel_device_maintenance as an undo.

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 coverage is 100%, so the baseline is 3. The description does add real value by enumerating the disabledFeatures enum values ('ALERTS'|'PATCHING'|'AVSCANS'|'TASKS') and the body field names (start, end, reasonMessage), which the freeform additionalProperties body schema does not express; the epoch-seconds unit is also a genuine clarification. However it adds nothing about device_id or confirm beyond the schema.

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?

The description opens with a specific verb and resource ('Schedule a maintenance window on one device') and immediately states the effect ('suppressing alerts, patching, AV scans or tasks between start and end'), which distinguishes it from siblings like ninjaone_update_device or ninjaone_reboot_device.

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?

It names the direct undo path ('Undo with ninjaone_cancel_device_maintenance') and states activation prerequisites ('Needs NINJAONE_MODE=write and confirm: true'), which gives the agent clear operating conditions. It stops short of stating when not to use it (e.g., bulk windows vs single device), but the alternatives it does name are the ones that matter.

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