Skip to main content
Glama

pt_add_device

Add a validated device to a Packet Tracer topology by specifying its name, model, and canvas coordinates; rejects empty names, unknown models, and duplicates.

Instructions

Add a single device to Packet Tracer with validation. Checks: name not empty, model exists in catalog, no duplicate name.

Parameters:

  • name: device name (e.g. "R1", "SW-Core", "PC-Admin")

  • model: PT model type (e.g. "2911", "2960-24TT", "PC-PT", "Server-PT")

  • x: X coordinate on canvas (default 200)

  • y: Y coordinate on canvas (default 200)

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

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameYes
modelYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the definition carries the full burden; it does disclose the three validation rules (non-empty name, model must exist in catalog, no duplicate name) and coordinate defaults, which is real behavioral context. It omits what happens on validation failure, whether the model name is case-sensitive, and any side effects on existing devices or canvas layout.

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-loaded with the verb and resource, then a short validation list, then a compact parameter enumeration. Every line adds information and there is no filler.

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?

For a four-parameter mutation with no annotations, the definition covers the inputs and validation well and can rely on the output schema for return values. It still leaves gaps around failure behavior, environment prerequisites, and the exact format of the model catalog identifier.

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%, so the description must compensate, and it documents all four parameters with concrete example values ("2911", "PC-PT", "R1") and repeats the coordinate defaults. It does not say whether the model string must match catalog names exactly or what happens with out-of-canvas coordinates.

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 opens with a specific verb and resource ("Add a single device to Packet Tracer") and the word "single" implicitly distinguishes it from bulk or link/module operations. It does not explicitly name a sibling alternative, but the action is unambiguous.

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

Usage Guidelines2/5

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

The description states what the tool does and lists validation checks, but gives no guidance on when to use it versus other tools such as pt_add_link, pt_add_module or pt_add_note, and no preconditions (e.g., whether Packet Tracer must be running or a canvas/file must be open).

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