Skip to main content
Glama

Approve Devices

ninjaone_approve_devices
Idempotent

Approve devices waiting in the pending queue by ID; dry runs return the exact request first, and live approval requires explicit confirmation.

Instructions

Approve devices waiting in the pending queue (find them with ninjaone_list_devices and df "status = PENDING"). Dry run by default. Body (object) per NinjaOne nodeApprovalOperation. Fields: devices (integer[]). Example: {"devices": [101, 102]}. Runs as a dry run unless dry_run is false: the first call returns the exact request without sending it. 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": {
      "body": "<body>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_approve_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesRequest body as NinjaOne documents it for nodeApprovalOperation. Field names are NinjaOne's (camelCase).
confirmYesMust be exactly true. States that this call changes live data. There is no undo from this server.
dry_runNoDefault true: return the exact request without sending it. Pass false to apply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the dry-run-by-default contract, that the first call returns the exact request without sending it, the NINJAONE_MODE=write environment requirement, and the mandatory confirm:true gate. These are exactly the operational facts an agent needs before invoking a mutating endpoint, and nothing here conflicts with readOnlyHint=false or idempotentHint=true.

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-loaded with the action and the discovery path, then prerequisites, then the body shape, then the dry-run mechanic — a sensible ordering. It loses a point for restating the dry-run default twice ('Dry run by default.' and 'Runs as a dry run unless dry_run is false'), which is redundant padding in an otherwise tight definition.

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 mutating tool with a free-form nested body and no output schema, the definition covers the auth mode, confirmation gate, dry-run semantics, and a body example. It leaves out what happens to devices that are not actually pending, any batch-size limits, and whether the approve state change is idempotent across repeat calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a concrete body example ({"devices": [101, 102]}) for an otherwise free-form additionalProperties object and points at the NinjaOne nodeApprovalOperation shape. That example is genuinely useful for a nested/opaque body parameter, though it slightly duplicates rather than extends the schema prose.

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?

Specific verb and resource ('Approve devices') plus the exact scope ('waiting in the pending queue'), and it names a sibling discovery path ('find them with ninjaone_list_devices and df "status = PENDING"'). An agent can distinguish this from list/search tools and knows the input population without opening any 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?

Clear context for use and an explicit prerequisite workflow (locate pending devices first). It does not name ninjaone_reject_devices as the contrasting alternative for the same queue, and it does not state when-not to use it (e.g., devices already approved/in a different status), so it falls 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