Skip to main content
Glama

Create a network segment

create_segment
Destructive

Creates an isolated network segment on a Keenetic router with VLAN, bridge, NAT, DHCP, optional Wi-Fi and routing policy, rolling back on failure.

Instructions

Creates an isolated network that the web interface actually lists as a segment: a VLAN subinterface trunked over every switch port, a bridge, an address, NAT, a DHCP pool, and optionally a Wi-Fi network and a routing policy. Free identifiers are chosen automatically. The result is verified against the router-computed iseg block, and a failure anywhere rolls the whole thing back. Nothing is saved; call save_config once the user confirms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pskNoWi-Fi password, at least 8 characters. Required with ssid.
nameYesSegment name, shown in the web interface. One word works best.
ssidNoWi-Fi network name. Omit for wired only.
subnetNoThird octet of 192.168.x.0/24. Allocated when omitted.
permit_interfacesNoCreate a routing policy allowing only these interfaces, for example ["Wireguard1"]. Omit to leave the segment on the default route.
policy_descriptionNoDescription for the created policy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0-dev

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the result is verified against the router-computed iseg block, that any failure rolls the entire thing back atomically, and that nothing is persisted until save_config. These are non-obvious transactional semantics an agent must know before invoking a destructiveHint=true tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then layers mechanics and the persistence caveat. The first sentence is long and dense but each clause carries distinct information, and no sentence is filler.

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 multi-resource, destructive, non-persisting creation tool with no output schema, the description covers atomic rollback, verification, and the commit step. It is nearly complete; it stops short of describing what identifiers come back on success, which would matter given no output 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 the baseline is 3; each parameter is already documented. The description adds only that free identifiers (the subnet third octet) are chosen automatically and that Wi-Fi/policy pieces are optional, which corroborates but does not extend the schema meaningfully.

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+resource and enumerates exactly what gets built: VLAN subinterface, bridge, address, NAT, DHCP pool, optional Wi-Fi and routing policy. It also distinguishes itself from the persistence step by naming save_config, so an agent can separate creation from commit without opening another schema.

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?

Explicitly tells the agent the workflow: this only stages the change, and save_config must be called once the user confirms. It does not name when-not to use it versus siblings like update_device or list_segments, but the commit boundary is clear enough to route correctly.

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