Skip to main content
Glama

Configure IOS device

configure_device

Adds IOS global-configuration commands to routers, switches, and multilayer switches for Packet Tracer topologies, appending to or replacing existing device commands.

Instructions

Add IOS configuration commands to a router, switch or multilayer switch (not PCs, servers, ASAs, access points or wireless routers). Commands run in GLOBAL CONFIGURATION MODE: do not send enable, configure terminal, end or write memory (PTBuilder saves automatically); such lines are dropped and reported. Leave sub-modes (interface, router ospf, line) with exit. Use full interface names (interface GigabitEthernet0/0). Commands are appended to earlier ones; set replace: true to overwrite the device's previous commands. Invalid commands fail silently in PT.

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>",
      "ios_commands": "<ios_commands>"
    },
    "name": "configure_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDevice name, e.g. R1, S1, PC1 (case-insensitive).
replaceNotrue = discard this device's previous commands first.
ios_commandsYesIOS commands in global configuration mode, one per item, e.g. ["hostname R1", "interface GigabitEthernet0/0", "ip address 192.168.1.1 255.255.255.0", "no shutdown", "exit"]. At most 2000 items of 512 characters; a device keeps at most 2000 commands.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: forbidden lines (enable/configure terminal/end/write memory) are dropped and reported, PTBuilder auto-saves, sub-modes must be exited, commands append unless replace:true, and invalid commands fail silently without error. Those silent-failure and append-vs-overwrite behaviors are the kind of thing no annotation conveys.

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 core action, then hard constraints, then the append/replace distinction. Every sentence carries operational information; nothing is padding.

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

Completeness5/5

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

For a non-idempotent mutating tool with no output schema, the description covers mode preconditions, destructive-esque overwrite semantics, error behavior, and naming requirements. An agent has everything needed to call this correctly on the first try.

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, and the description adds real meaning: replace:true discards prior commands rather than merging, and commands are appended per call. It also implies full interface-name syntax. Remaining detail (item limits, case-insensitivity) is left to the schema, which is fine.

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?

Specific verb+resource ('Add IOS configuration commands to a router, switch or multilayer switch') plus an explicit negative scope excluding PCs, servers, ASAs, APs and wireless routers, which separates it from configure_pc and add_device without opening their schemas.

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 strong when-to-use framing (global configuration mode only, device types it covers, replacing vs appending) and clear exclusions. It stops short of naming the exact alternative tool to use for a PC or ASA, leaving the agent to infer configure_pc.

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