Skip to main content
Glama

Update Device

ninjaone_update_device
Idempotent

Update a NinjaOne device's display name, user data, policy, location, role, or organization and return before/after values; requires write mode and explicit confirmation.

Instructions

Update one device's display name, user data, policy, location, role or organization. Returns before and after. Body (object) per NinjaOne updateDevice. Fields: displayName (string), userData (object), nodeRoleId (integer), policyId (integer), organizationId (integer), locationId (integer), warranty (object). 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_update_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for updateDevice. 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

A3.5/5.0
Behavior3/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 adds real context on top by stating the response contains before and after state and that write mode plus an explicit confirm flag are required. It omits the most important behavioral question for an update operation: whether fields not supplied in the body are left untouched or cleared.

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?

Front-loaded with the effect and scope, then return shape, then body contents, then the gating requirement — a sensible order for deciding whether to call. Some phrasing is telegraphic ('Body (object) per NinjaOne updateDevice') and leans on external API documentation, but no sentence is pure padding.

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?

With no output schema, the description correctly compensates by stating the return value is before/after. It also covers the confirm requirement and both write-mode gating and body field inventory, but for a destructive-capable update it leaves unanswered whether the body is a partial patch or a full replacement, and whether ID fields (policyId, organizationId, locationId) accept null to clear values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the three top-level parameters, but the body is declared as an opaque object with additionalProperties, so the schema conveys nothing about its contents. The description compensates by naming the seven body fields with their types (displayName, userData, nodeRoleId, policyId, organizationId, locationId, warranty), which is exactly the information the schema withholds.

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 ('Update one device') and enumerates the mutable aspects (display name, user data, policy, location, role, organization), so the agent knows exactly what the call changes. It does not explicitly contrast with sibling ninjaone_update_device_custom_fields, which covers a related but distinct mutation, so differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

Gives a concrete precondition for invocation ('Needs NINJAONE_MODE=write and confirm: true'), which is genuinely actionable gating. However, it never says when to choose this over alternatives such as ninjaone_update_device_custom_fields or ninjaone_update_location, and it gives no exclusion rules or ordering guidance for an agent operating on multiple device attributes.

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