Skip to main content
Glama

delete_device

Deletes a device in rejected state for cleanup after decommissioning, returning a change_id for review and apply.

Instructions

Delete a rejected device for cleanup after decommissioning. The device must be in 'rejected' state first. Returns a change_id; nothing changes until apply_change.

Args: device_id: UUID of the device to delete.

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": "delete_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that this is destructive, that the effect is deferred via a change_id until apply_change, and that a state precondition gates the call. It does not state whether the deletion is reversible, what happens to devices referenced elsewhere, or what permissions are required.

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 action and its precondition are front-loaded in the first two sentences, followed by the deferred-effect warning and then the argument. Four short lines with no filler; the Args block is arguably redundant given the schema but costs nothing.

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?

An output schema exists and the description still names change_id, so return semantics are adequately covered, and the precondition plus apply_change sequencing close the main operational gaps. The remaining omissions are the ones annotations would normally carry (irreversibility, authorization), which are unstated because no annotations exist.

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 description coverage is 0% and the single property is titled only "Device Id", so the description is what tells the agent the value is a UUID identifying the device to be deleted. That is a real addition over the schema, though it stops short of clarifying whether it accepts a name or only a UUID.

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?

The description names a specific verb and resource ("Delete a rejected device") and immediately constrains the scope to devices in the 'rejected' state after decommissioning. It also names the follow-up sibling apply_change, so an agent can place the tool in the wider workflow rather than guessing.

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?

It gives an explicit precondition ("The device must be in 'rejected' state first") and an explicit sequencing rule ("nothing changes until apply_change"), which is genuine when-to-use guidance. What it lacks is a when-not path, e.g. how to handle a device that is still active or already deleted, or which tool to use instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.