Skip to main content
Glama

Run OS Patch Scan

ninjaone_run_os_patch_scan
Idempotent

Start an OS patch scan on a single device to assess missing updates; results become available in the device OS patches list after the scan completes.

Instructions

Start an OS patch scan on one device. Results appear in ninjaone_list_device_os_patches when it finishes. 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>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_run_os_patch_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds genuinely non-structured context: the scan is asynchronous and its output lands in ninjaone_list_device_os_patches, plus the write-mode gate. It does not say how long a scan takes or what happens if a scan is already running, which is the remaining gap.

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?

Three short sentences with no waste: action first, then where results appear, then the prerequisite. Front-loaded and easy to scan.

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

Completeness5/5

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

For a two-parameter mutation-adjacent trigger tool with no output schema, the definition covers everything an agent needs: what it does, that it is async, where to find the outcome, and the mode/confirm gate. Nothing essential is missing.

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% with only two parameters, both already documented, so the schema carries the burden. The description's mention of 'confirm: true' and 'one device' only restates what the schema's const and device_id descriptions already say. Baseline 3 is appropriate when no additional parameter meaning is added.

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?

States a specific verb and resource with scope: 'Start an OS patch scan on one device.' That distinguishes it from sibling listing tools (ninjaone_list_device_os_patches) and from install-style tools by implication of 'scan'. It does not explicitly distinguish itself from ninjaone_run_software_patch_scan or ninjaone_apply_os_patches, so it stops short of full sibling differentiation.

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?

Gives clear context for when the result becomes available and points to the sibling tool that surfaces it. It also states the operational prerequisite (NINJAONE_MODE=write and confirm: true), which is real when-to-use guidance. It lacks an explicit exclusion such as 'use apply_os_patches to actually install the patches', but the usage path is clear.

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