Skip to main content
Glama

Add device

add_device

Add a network device to a Packet Tracer topology by model, with aliases resolved to canonical keys and ports returned. Names must be unique; omit coordinates for automatic placement.

Instructions

Add a device to the topology. model must be a PTBuilder model key; common aliases are resolved and the result shows the canonical key ("4331" -> ISR4331, "WRT300N" -> Linksys-WRT300N, "ASA5505" -> 5505, "IP Phone 7960" -> 7960, "PC" -> PC-PT). Routers: 1841, 1941, 2811, 2901, 2911, ISR4321, ISR4331. Switches: 2950-24, 2950T-24, 2960-24TT. Multilayer switches: 3560-24PS (preferred), 3650-24PS (ships without a power supply in PT). Hosts: PC-PT, Server-PT, Laptop-PT, Printer-PT. Other: Hub-PT, Cloud-PT, AccessPoint-PT, Linksys-WRT300N, 5505, 5506-X, 7960. The pt://catalog resource lists every accepted key and its ports. Names must be unique (case-insensitive), 1-64 characters: letters, digits, spaces and . _ ( ) / -, starting with a letter or digit. At most 500 devices. Omit x and y to place the device automatically. The result lists the device's ports.

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>",
      "model": "<model>"
    },
    "name": "add_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX coordinate on the Packet Tracer logical workspace, -100000 to 100000. Omit both x and y for automatic placement.
yNoY coordinate on the Packet Tracer logical workspace, -100000 to 100000. Omit both x and y for automatic placement.
nameYesUnique device name, e.g. R1, S1, PC1: 1-64 characters: letters, digits, spaces and . _ ( ) / -, starting with a letter or digit. Names are case-insensitive.
modelYesPTBuilder model key, e.g. 2911, 2960-24TT, PC-PT. Aliases such as "4331", "WRT300N" or "PC" are resolved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-readonly, non-destructive, non-idempotent mutation, so the description's job is to add operational constraints, and it does: a hard cap of 500 devices, case-insensitive name uniqueness, alias resolution with the canonical key echoed back, and the fact that the result lists the device's ports. It does not say whether the change is persisted to disk or requires a save_topology call, which is the notable remaining gap for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the ordering is logical, but the markup is dense and repetitive: the name validation rule is restated almost verbatim from the schema, and the auto-placement rule for x/y is duplicated from the schema descriptions. The inline model catalog also duplicates what the pt://catalog resource is said to provide, so the definition carries both a list and a pointer to the list.

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 four-parameter mutation tool with no output schema, the definition covers the model vocabulary, naming rules, capacity limit, and placement behavior, and it tells the agent what comes back (device ports). Only the persistence/reversibility story is missing, which keeps it short of a 5.

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; the description earns extra credit by enumerating the accepted model keys (routers, switches, multilayer switches, hosts, other) far beyond the three examples in the schema, and by pointing to the pt://catalog resource for the exhaustive list. The alias resolution behavior ('4331' -> ISR4331) and the note that the result shows the canonical key add real semantic value the schema does not carry.

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?

Opens with a specific verb and resource ('Add a device to the topology'), immediately distinguishing it from add_link, configure_device, and remove_device among the siblings. The scope is unambiguous without opening the schema.

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 context is implied by the topic (building a topology) but no explicit when-to-use or when-not-to-use guidance is given, and no sibling alternative is named or excluded. It does clarify one decision point — omit x and y for automatic placement — which is genuinely useful, but that is parameter guidance rather than tool selection guidance.

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