Skip to main content
Glama

List Device OS Patches

ninjaone_list_device_os_patches
Read-onlyIdempotent

Retrieves pending, failed, and rejected OS patches for one device so agents can audit patch status and filter by severity, status, or type.

Instructions

List one device's pending, failed and rejected OS patches. For the same data across many devices, use the matching ninjaone_report_* tool with df.

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>"
    },
    "name": "ninjaone_list_device_os_patches"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoPatch type filter.
limitNoRows per page, 1 to 500. Default 50.
cursorNoOpaque cursor from next_cursor on the previous page. Omit for the first page.
fieldsNoOmit for the compact field set. "all" returns full records; a list of names returns just those fields.
statusNoPatch status filter, e.g. "PENDING", "FAILED", "REJECTED", "APPROVED", "INSTALLED".
severityNoSeverity filter, e.g. "CRITICAL".
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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds only the content scope (which patch states are returned), and says nothing about default page size behavior or ordering beyond what the schema documents. Adequate but thin on top of rich annotations.

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?

Two sentences, front-loaded with the primary scope statement, with zero filler. The second sentence's cryptic "with df" tail slightly weakens an otherwise efficient structure.

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?

A seven-parameter read-only list tool with full schema coverage and complete annotations needs little more than scope plus routing, both of which are present; no output schema is required for a list endpoint. The undefined "df" reference and the status enumeration that omits APPROVED/INSTALLED are the remaining gaps.

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 every one of the seven parameters (including the device_id provenance hint and the fields compact/full semantics) is already documented in the schema. The description contributes no additional parameter meaning, which is the baseline case.

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 ("List one device's pending, failed and rejected OS patches"), which clearly separates it from fleet-wide reporting tools. Slight mismatch: the description enumerates only three statuses while the schema's status filter also allows APPROVED and INSTALLED, so the stated content scope is narrower than the tool's actual capability.

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?

Explicitly routes the agent to the alternative: "For the same data across many devices, use the matching ninjaone_report_* tool with df." That is a real when-to-use-this-vs-that statement. It loses a point because "with df" is an unexplained shorthand that an agent cannot reliably act on.

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