Skip to main content
Glama

Report OS Patches

ninjaone_report_os_patches
Read-onlyIdempotent

Lists pending, failed, and rejected OS patches across devices with cursor paging and device filters, so you can audit patch status fleet-wide before drilling into a single device.

Instructions

Report pending, failed and rejected OS patches across devices, one row per item, cursor paged. Narrow with df (device filter). Use it for fleet questions; follow up on one device with ninjaone_get_device_profile.

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": "ninjaone_report_os_patches"
  }
}

Input Schema

NameRequiredDescriptionDefault
dfNoNinjaOne device filter. Combine terms with AND. Examples: "org = 12", "class = WINDOWS_SERVER AND offline", "status = APPROVED", "role in (1,10)", "created after 2026-01-01", "group = 5". Omit for every device in scope.
tsNoMonitoring timestamp filter, e.g. "ts > 1767225600" (epoch seconds).
typeNoPatch type.
limitNoRows per page, 1 to 1000. 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, e.g. "CRITICAL".

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 readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real context beyond that: the default result set is limited to pending/failed/rejected patches, output is one row per patch item, and results are cursor paged. Minor tension: the status parameter also accepts APPROVED/INSTALLED, which the description's summary does not acknowledge.

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?

Two tight sentences: scope and output shape first, then the filter hint, then the sibling handoff. No redundant restatement of the title and nothing wasted.

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?

With eight optional parameters, no output schema and read-only annotations, the description covers the essentials an agent needs: what is listed, row granularity, pagination via next_cursor, and the primary filter. It could go slightly further by noting the compact-vs-full 'fields' behavior or default page size, but nothing critical 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 description coverage is 100%, so every parameter including df, ts, cursor, limit, fields and status is already documented in the schema. The description only reinforces df as the narrowing lever and cursor as the paging mechanism, adding no syntax or semantics beyond the schema that would push this above baseline.

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 ('Report pending, failed and rejected OS patches across devices') plus output granularity ('one row per item, cursor paged'). Scope distinguishes it from single-device siblings by naming 'fleet questions' and pointing to ninjaone_get_device_profile, though it never names the closest patch-report rivals like ninjaone_report_os_patch_installs.

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 says to use it 'for fleet questions' and to follow up on a single device with ninjaone_get_device_profile, giving a clear use condition plus an alternative. It omits when NOT to use it (e.g., versus the patch-install report or list_device_os_patches) and gives no prerequisite/auth guidance.

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