Skip to main content
Glama

Configure host IP

configure_pc
Idempotent

Set a Packet Tracer host's IPv4 configuration on FastEthernet0 by assigning a static IP, mask, gateway, and DNS, or enabling DHCP; replaces the previous address setup.

Instructions

Set the IPv4 configuration of a host: PC-PT and Server-PT (Laptop-PT and Printer-PT are accepted but unverified). PTBuilder configures only the FastEthernet0 interface. dhcp: true enables DHCP (ip, mask and gateway are ignored; dns is kept). Otherwise ip and mask are required; mask accepts 255.255.255.0 or /24. Replaces the host's previous IP configuration. For routers and switches use configure_device instead.

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

Input Schema

NameRequiredDescriptionDefault
ipNoIPv4 address, e.g. 192.168.1.10 (or 192.168.1.10/24 to include the mask).
dnsNoDNS server IPv4 address (kept with DHCP too).
dhcpNotrue = obtain the address by DHCP (ip/mask/gateway are ignored).
maskNoSubnet mask, e.g. 255.255.255.0 or /24.
nameYesDevice name, e.g. R1, S1, PC1 (case-insensitive).
gatewayNoDefault gateway IPv4 address.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses that the previous IP configuration is replaced, that only the FastEthernet0 interface is touched, that dns survives DHCP mode, and that two device types are accepted but unverified. These are exactly the scope and side-effect details an agent cannot infer from structured fields.

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 scope limits, then the DHCP branch, then the sibling redirect — every clause carries distinct information and nothing is padding. The parenthetical about unverified device types is compact rather than verbose.

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 mutating, 6-parameter tool with no output schema, the description covers supported devices, interface scope, required-vs-ignored parameters, and replacement semantics. The only gap is that it never says what a successful or failed result looks like, which the agent must discover by calling it.

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 baseline is 3; the description adds real conditional semantics not present in the schema — that ip/mask/gateway are ignored under dhcp while dns is kept, and that ip+mask become effectively required otherwise (only name is marked required in the schema). It slightly repeats the schema's own mask-format and DHCP notes, which keeps it from a 5.

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+resource ("Set the IPv4 configuration of a host") and immediately scopes the supported device models (PC-PT, Server-PT, with Laptop-PT/Printer-PT caveated). It also names the sibling it is not, configure_device, so the agent can distinguish the two without opening schemas.

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

Usage Guidelines5/5

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

Explicitly routes non-host devices to configure_device ("For routers and switches use configure_device instead") and states the internal branch conditions (dhcp: true vs otherwise ip and mask required). Both when-to-use and when-to-use-something-else are covered.

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