Skip to main content
Glama

Get Device Scripting Options

ninjaone_get_device_scripting_options
Read-onlyIdempotent

List the scripts and built-in actions available on a device, including IDs and parameters, so you can choose what to run before execution.

Instructions

List the scripts and built-in actions that can run on one device, with their ids and parameters. Call this before ninjaone_run_device_script.

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

Input Schema

NameRequiredDescriptionDefault
langNoLanguage tag for messages, e.g. "en".
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
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful behavioral context the annotations cannot: the response contains ids and parameters that feed the subsequent run call, and the call is a prerequisite step. It says nothing about pagination limits or behavior for an invalid or deleted device.

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 sentences, no waste. The capability and the return content come first, then the workflow prerequisite, which is the correct front-loading order for an agent deciding whether to call it now.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, read-only, non-destructive tool with full schema coverage and no output schema, the description supplies the two things structured data lacks: what the returned list contains (ids and parameters) and its role in the script-execution workflow.

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%, with both device_id and lang documented, so the description adds no parameter meaning beyond the schema (e.g., it does not explain that lang affects message localization of returned labels). Baseline 3 applies when the schema carries the burden.

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?

States a specific verb and resource (list the scripts and built-in actions) scoped to one device, and names its companion sibling ninjaone_run_device_script. An agent can immediately distinguish this enumerating tool from the execution tool without opening either schema.

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?

Gives explicit sequencing guidance: "Call this before ninjaone_run_device_script." That is a clear when-to-use cue tied to a named alternative. It stops short of stating when this call is unnecessary (e.g., if options are already cached) or what to do when no options are returned.

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