Skip to main content
Glama

Run Windows Service Control

ninjaone_run_windows_service_control
Destructive

Start, stop, pause, or restart a Windows service on a specific device, with explicit confirmation required before the live service change is applied.

Instructions

Start, stop, pause or restart a Windows service on one device. Find the service with ninjaone_list_device_services. Never retried automatically. Body (object) per NinjaOne controlWindowsService. Fields: action ("START"|"PAUSE"|"STOP"|"RESTART"). 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_run_windows_service_control"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for controlWindowsService. 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.2/5.0
Behavior4/5

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

Annotations already declare destructive=true and idempotent=false, but the description adds real context beyond them: 'Never retried automatically' explains why an agent must not loop the call, and the environment-flag plus confirm gating describes the safety envelope. It does not cover blast radius (dependent services, whether the service must be stopped first), which would be the final missing piece for a destructive action.

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?

The destructive verb set and the device scope come first, then discovery, then the retry caveat, then the payload, then the gating. Telegraphic fragments, but each one carries a distinct fact an agent needs; nothing is 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?

Covers the essentials for a destructive, non-idempotent, no-output-schema call: what it changes, how to locate the target, the action values, that it is not auto-retried, and the two flags plus confirm needed before it will run. Only the post-call state (what the response reports, effect on dependents) is left unstated.

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 coverage is 100%, so device_id, service_id and confirm are already documented. The schema's body is a bare object with additionalProperties and no enums, and the description does supply the action vocabulary ('START'|'PAUSE'|'STOP'|'RESTART'), which is the only genuine semantic addition; the rest of the body contract is deferred to external NinjaOne docs.

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 set plus resource and scope: 'Start, stop, pause or restart a Windows service on one device.' An agent can immediately distinguish this mutation tool from read-oriented siblings like ninjaone_report_windows_services and the config sibling ninjaone_set_windows_service_config.

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 actionable routing ('Find the service with ninjaone_list_device_services') and the prerequisites that select this tool: NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true and confirm: true. It stops short of an explicit 'do not use this to change service startup type – use set_windows_service_config', so the boundary with that sibling is implied rather than stated.

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