Skip to main content
Glama

Update Device Custom Fields

ninjaone_update_device_custom_fields
Idempotent

Set custom field values on a single device, changing only fields included in the request and returning before/after values for rollback. Requires write mode and explicit confirmation.

Instructions

Set custom field values on one device. Only the fields in body change. Returns before and after, so a change can be put back. Body (object) per NinjaOne updateNodeAttributeValues. Body maps custom field names to values, e.g. {"assetOwner": "Example User"}. 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_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for updateNodeAttributeValues. 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.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the write is partial, that the call returns before/after state so a change can be reverted, and that it is gated behind write mode plus an explicit confirm flag. This is exactly the kind of operational context the readOnly/destructive/idempotent hints cannot carry, and it does not conflict with them.

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?

Four short sentences, front-loaded with the action and scope, then the mutation semantics, then the return shape, then the gating requirements. Nothing is repeated and nothing is padding.

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 no output schema, the description steps in to describe the return (before and after), and it explains the nested body object, so the main gaps are closed. The one omission is how to discover valid field names before calling, which matters for a free-form body with additionalProperties.

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%, so the baseline is 3, and the description earns a bump by explaining body as a name-to-value map with a concrete example ({'assetOwner': 'Example User'}) and by tying the body fields to NinjaOne's updateNodeAttributeValues contract. It adds little on device_id or confirm, but the schema already covers those fully.

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?

"Set custom field values on one device" gives a specific verb plus resource and scopes it to a single device, which implicitly separates it from the location and org custom-field siblings. It stops short of naming an alternative outright, but an agent can place it correctly from the scope phrase alone.

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?

The description supplies real prerequisites: NINJAONE_MODE=write must be active and confirm must be true. It also states the partial-update contract ("Only the fields in body change"), which tells the caller it need not resend the whole field set. It does not point to ninjaone_list_device_custom_field_definitions or the get_* siblings for discovering valid field names, so the guidance is clear but not complete.

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