Skip to main content
Glama

Rename device

rename_device
Idempotent

Rename a device in a Packet Tracer topology; links, IOS commands and IP configuration follow the new name. IOS hostname commands stay unchanged.

Instructions

Rename a device; its links, IOS commands and IP configuration follow. IOS hostname commands are not changed (use configure_device with replace: true to update them).

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": {
      "name": "<name>",
      "new_name": "<new_name>"
    },
    "name": "rename_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDevice name, e.g. R1, S1, PC1 (case-insensitive).
new_nameYesNew unique device name, e.g. R1, S1, PC1: 1-64 characters: letters, digits, spaces and . _ ( ) / -, starting with a letter or digit. Names are case-insensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare write, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond them: the rename cascades to links, IOS commands and IP configuration, but deliberately excludes `hostname` commands. It does not mention collision handling or reversibility, which keeps it from a 5.

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 tight sentences: the action and its cascade come first, the exclusion and its workaround second. Every clause carries information an agent needs; nothing is redundant.

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 two-parameter, fully documented, non-destructive mutation with no output schema, the description covers the action, its side effects and the one case it cannot handle. Only edge cases such as name collisions are left to the schema.

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% and both parameters are fully documented, including naming constraints and case-insensitivity, so the baseline is 3. The description adds nothing parameter-level beyond the schema, which is acceptable here since the schema does the work.

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 ("Rename a device") and immediately describes the cascading effect on links, IOS commands and IP configuration. It also names a sibling, configure_device, so the agent can distinguish the two without opening either 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 an explicit when-not-to-use rule: IOS `hostname` commands are not touched by this tool, and the description routes that case to configure_device with replace: true. It does not spell out when to prefer rename_device over other rename-ish flows, but the boundary it does draw is precise.

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