Skip to main content
Glama

Update Location Custom Fields

ninjaone_update_location_custom_fields
Idempotent

Update custom field values on a single NinjaOne location without altering other fields, then return before-and-after values for verification.

Instructions

Set custom field values on one location. Only the fields in body change. Returns before and after. Body (object) per NinjaOne updateNodeAttributeValues_2. Body maps custom field names to values. 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": {
      "location_id": "<location_id>",
      "body": "<body>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_update_location_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgNoOrganization id, or a unique part of its name (case-insensitive). Overrides NINJAONE_ORG_ID. An ambiguous name is refused with the candidates; call ninjaone_list_organizations to see them all.
bodyYesRequest body as NinjaOne documents it for updateNodeAttributeValues_2. Field names are NinjaOne's (camelCase).
confirmYesMust be exactly true. States that this call changes live data. There is no undo from this server.
location_idYesLocation id (from ninjaone_list_org_locations).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=false, idempotentHint=true, destructiveHint=false), so the bar is lower, yet the description still adds real behavior: a merge-style partial write, an explicit warning that the server is write-gated, and a stated return shape (before and after). It omits what happens to field names not previously defined and any error behavior for an unknown custom field.

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?

Five short sentences, front-loaded with the action and the mutation constraint, with no filler. The only weak link is the opaque "Body (object) per NinjaOne updateNodeAttributeValues_2" clause, which spends words pointing at a document the agent cannot open.

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?

There is no output schema, and the description compensates by saying it returns before and after. For a four-parameter mutation with full schema coverage and helpful annotations, the only remaining gap is the undefined behavior for unrecognized custom field names.

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 the schema already documents all four parameters, making 3 the baseline. The description does contribute one genuinely new fact — that body maps custom field names to values rather than NinjaOne attribute ids — which the schema's generic object description does not convey, but the "per NinjaOne updateNodeAttributeValues_2" reference pushes structure back onto external docs.

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 location" gives a specific verb (set), a specific resource (custom field values) and an explicit scope (one location), which separates it from the device- and org-scoped variants and from the get_* readers. It stops short of naming a sibling to contrast with, so the agent must infer the read alternative.

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?

It states the operational prerequisites (NINJAONE_MODE=write, confirm: true) and the partial-update rule ("Only the fields in body change"), which tells the agent how to call it safely. It never says when to prefer this over ninjaone_update_location or the device/org custom-field updaters, so usage is implied rather than guided.

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