Skip to main content
Glama

Get Device Custom Fields

ninjaone_get_device_custom_fields
Read-onlyIdempotent

Retrieve one NinjaOne device's custom field values, optionally including values inherited from its location and organization. Secure fields stay hidden.

Instructions

Get one device's custom field values. Secure fields are never revealed. To change them, ninjaone_update_device_custom_fields.

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_get_device_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYesDevice id (from ninjaone_list_devices or ninjaone_search_devices).
with_inheritanceNoInclude values inherited from location and organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered structurally. The description adds genuine behavioral context beyond that: secure fields are never returned, which tells the agent to expect filtered output rather than missing data.

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?

Three short sentences, front-loaded with the core action, followed by a constraint and the alternative. Nothing is redundant or padded.

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?

For a simple two-parameter read operation with full annotations and schema coverage, the description covers purpose, output filtering (secure fields) and the mutation alternative. It does not mention that inherited values are opt-in via with_inheritance, a minor omission given there is no output schema.

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 both device_id and with_inheritance are already documented in the schema. The description adds no semantics for either parameter, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource scoped to a single device ('Get one device's custom field values'), which distinguishes it from the update sibling and from the location/org custom-field getters named in the catalog.

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?

It explicitly routes mutation intent to ninjaone_update_device_custom_fields, which is the right alternative for a read-only tool. It gives no guidance on when to use the with_inheritance option or when to prefer the definitions-listing sibling, so it stops short of full when/when-not coverage.

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