Skip to main content
Glama

configure_host

Set host IPv4 configuration via DHCP or static IP with mask, gateway, and DNS. Validates common mistakes before applying to Packet Tracer.

Instructions

Set the IPv4 configuration of a PC, laptop or server: either DHCP, or a static ip and mask with optional gateway and DNS. Catches classic mistakes (invalid mask, host address equal to the network or broadcast, gateway outside the subnet) before touching Packet Tracer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNoStatic IPv4 address, for example `192.168.10.10`. Required unless `dhcp` is true.
dnsNoDNS server address.
dhcpNoGet the address from a DHCP server instead of setting it statically.
maskNoSubnet mask, for example `255.255.255.0`. Required unless `dhcp` is true.
portNoNetwork port to configure. Defaults to `FastEthernet0`.
deviceYesPC, laptop or server name.
gatewayNoDefault gateway; must be inside the host's subnet.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNo
dnsNo
dhcpYes
maskNo
portYes
deviceYes
gatewayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds real value beyond that by disclosing pre-flight validation behavior (invalid mask, host equals network/broadcast, gateway outside subnet) that fires before the simulator is touched. It doesn't state idempotency or what an invalid input returns, keeping it short of a 5.

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?

Two sentences, no filler, with the primary action and its two modes front-loaded and the validation guarantee as supporting detail. Every clause earns its place.

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 and annotations cover the safety profile, so return values and read/write nature need no explanation here. The description covers both modes and the validation contract; the only minor omission is the port parameter and its FastEthernet0 default, which lives only in the schema.

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 100%, so every parameter is already documented, including the 'required unless dhcp is true' conditions and the gateway-in-subnet constraint. The description only restates that ip/mask are needed for static mode and gateway/DNS are optional, adding little beyond the schema. Baseline 3 applies.

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?

States a specific verb (set) plus resource (IPv4 configuration) and scopes it to PC/laptop/server. The word 'IPv4' cleanly separates it from the sibling configure_host_ipv6, and the two operating modes (DHCP or static) are stated up front.

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?

Clearly frames the usage context: choose DHCP or static ip/mask with optional gateway and DNS. It does not, however, name when to prefer this over related siblings such as configure_host_ipv6 or configure_ios, so routing is left partly to inference.

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