Skip to main content
Glama

Reject Devices

ninjaone_reject_devices
DestructiveIdempotent

Reject devices waiting in the NinjaOne pending approval queue, removing them from onboarding. Runs as a dry run by default, requiring explicit confirmation to apply.

Instructions

Reject devices waiting in the pending queue. Rejected devices are removed. 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. 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": {
      "body": "<body>",
      "confirm": "<confirm>"
    },
    "name": "ninjaone_reject_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.6/5.0
Behavior4/5

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

Beyond the destructiveHint/idempotentHint annotations, it discloses the two-phase dry-run behavior (the first call returns the exact request without sending it) and the environment-gate requirements. That is meaningful additive context for a destructive mutation, though it does not spell out what happens to device records or related entities after rejection.

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?

Front-loads purpose, then outcome, then the dry-run default and gates. The only mild redundancy is 'Dry run by default' being restated later, but the restatement adds the mechanics of the first-call behavior, so it earns its place.

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?

Covers the body shape, invocation sequence, and safety gates for a 3-param destructive tool, which is everything an agent needs to call it correctly. No output schema exists, so no return-value explanation is required.

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

Parameters5/5

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

Schema coverage is 100%, but the opaque request body (additionalProperties: {}) is truly enriched by naming the devices integer[] field and giving a concrete example payload. That compensates for the body being otherwise untyped in the schema.

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 ('Reject devices') plus a precise scope ('waiting in the pending queue') and the outcome ('Rejected devices are removed'). An agent can distinguish this from the approval sibling 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?

Gives a clear condition for use (devices pending approval) and lays out the prerequisites for execution: NINJAONE_MODE=write, NINJAONE_ALLOW_DESTRUCTIVE=true, and confirm: true. It stops short of explicitly naming ninjaone_approve_devices as the alternative action, though the exclusion is strongly implied by the tool's scope.

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