Skip to main content
Glama

Set Windows Service Config

ninjaone_set_windows_service_config
Destructive

Change a Windows service's start type and run-as account on one device to control startup behavior and service permissions.

Instructions

Change a Windows service's start type and run-as account on one device. Body (object) per NinjaOne setWindowsServiceConfiguration. Fields: startType ("AUTO_START"|"AUTO_START_DELAYED"|"BOOT_START"|"DEMAND_START"|"DISABLED"|"SYSTEM_START"), userName (string). Destructive tier: needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true 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>",
      "service_id": "<service_id>",
      "body": "<body>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_set_windows_service_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for setWindowsServiceConfiguration. 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).
service_idYesService name or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the description's added value is the explicit 'Destructive tier' label and the three gating requirements (mode flag, destructive allow flag, confirm:true) an agent must satisfy before calling. It also points at the upstream NinjaOne payload contract, though it doesn't independently state irreversibility or side effects like a service restart.

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-loads the action and scope in the first sentence, then lists body fields and finally the gating requirements. The telegraphic 'Body (object) per NinjaOne setWindowsServiceConfiguration' fragment is slightly compressed but every sentence carries information.

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 4-required-parameter destructive mutation with no output schema, the definition covers the action, the body shape, and the safety gates, and the schema supplies device_id provenance and confirm semantics. Missing are whether both body fields are optional and any note on return value or verification, which keeps it below 5.

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%, which sets the baseline at 3. The description does add real meaning for the otherwise opaque nested body by enumerating the six startType enum values and naming userName, but the schema already carries the authoritative confirm, device_id, and service_id semantics, so the net gain is modest.

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 plus scope: 'Change a Windows service's start type and run-as account on one device.' The two mutable properties (startType, userName) are named, so an agent can distinguish this configuration-write from the sibling run_windows_service_control which operates the service rather than configuring it.

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 concrete preconditions ('needs NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true'), which tells the agent when the call is even permitted. It stops short of explicit when-not-to-use or sibling routing (e.g., vs. run_windows_service_control), so it is clear context without exclusions.

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