Skip to main content
Glama

Configure an End-Device Interface

configure_host_interface
Idempotent

Sets IPv4 address, subnet mask, gateway, and DNS on an end-device port in Packet Tracer, or enables DHCP. For PCs, laptops, servers, and printers; use CLI for routers and switches.

Instructions

Set IPv4 settings on an end device's port (PC, laptop, server, printer...). Typical port names: 'FastEthernet0' (PC-PT), 'GigabitEthernet0'. For routers and switches use send_cli_command. subnet_mask defaults to 255.255.255.0 when ip_address is given. dhcp=true switches the port to DHCP.

Examples:

  • "Give PC0 192.168.1.10/24 with gateway 192.168.1.1"

  • "Set the server's DNS to 8.8.8.8"

  • "Put PC1 on DHCP"

Input Schema

NameRequiredDescriptionDefault
dhcpNo
nameYesDevice display name as shown in Packet Tracer (e.g. 'Router0', 'PC1')
portYesFull port name (e.g. 'GigabitEthernet0/0', 'FastEthernet0', 'Serial0/1/0')
dns_serverNo
ip_addressNo
subnet_maskNo
default_gatewayNo

Output Schema

NameRequiredDescriptionDefault
dhcpNo
ip_addressNo
subnet_maskNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already disclose readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds meaningful behavior beyond that: subnet_mask defaults to 255.255.255.0 when ip_address is supplied, and dhcp=true switches the port to DHCP. It does not fully explain interactions such as whether static fields are ignored or cleared when DHCP is enabled, so it is strong but not exhaustive.

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?

The key scope and exclusion are front-loaded, followed by compact default/DHCP notes and relevant examples. The examples earn their place by showing DNS, gateway, and DHCP usage patterns without bloating the definition.

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?

An output schema exists, so return values need not be described. The description covers purpose, sibling routing, port naming, defaults, and examples well, but with 29% schema coverage some parameter interactions remain underspecified.

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 description coverage is only 29%, so the description must compensate. It usefully explains port naming, subnet_mask defaulting, and DHCP mode, and its examples imply DNS and gateway usage, but it does not fully document all seven parameters or interactions among ip_address, subnet_mask, default_gateway, dns_server, and dhcp.

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?

The description gives a precise verb and resource: setting IPv4 settings on an end device's port, with concrete device types and port names. It explicitly distinguishes routers/switches by directing those to send_cli_command, so an agent can select it confidently against siblings.

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?

It states the relevant scope (end devices such as PC, laptop, server, printer) and gives an explicit exclusion: 'For routers and switches use send_cli_command.' The DHCP example further clarifies a common usage mode without ambiguity.

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