Skip to main content
Glama

pt_delete_device

Removes a named device from the active Packet Tracer topology and verifies it is gone. Use it to clean up simulated routers, switches, PCs, or laptops by exact device name.

Instructions

Delete a device from the active topology in Packet Tracer. Uses getLogicalWorkspace().removeDevice() and verifies the device is gone.

Parameters:

  • device_name: exact device name (e.g. "R1", "PC3", "Laptop-WAN")

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_name": "<device_name>"
    },
    "name": "pt_delete_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the underlying mechanism (getLogicalWorkspace().removeDevice()) and that the result is verified, but it omits key destructive-operation context: that the action is irreversible, what happens to links attached to the device, and what error surfaces for an unknown name.

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?

Two short, front-loaded sentences plus a one-line parameter note; nothing is repeated and the confirmation behavior is stated compactly. The internal API call named is slightly implementation-flavored but still informative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the single parameter is documented. However, for a destructive tool with zero annotation coverage, the description should also cover side effects (dangling links, topology state) and failure modes.

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 0% and the schema only carries a bare title, so the description must compensate — and it does, clarifying that the name must be the 'exact device name' and giving concrete examples ("R1", "PC3", "Laptop-WAN"). That adds real meaning over the schema, though it doesn't say whether names are case-sensitive or how to discover them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — 'Delete a device from the active topology' — which separates it from pt_delete_link and pt_add_device without ambiguity. It stops short of naming those siblings explicitly, so an agent must still infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose (you call it when you need a device removed), but there is no explicit when-to-use, no exclusion such as 'use pt_delete_link to remove cabling', and no prerequisite conditions (e.g. device must exist, must be powered off). Adequate but with obvious gaps.

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