Skip to main content
Glama
omichelbraga

PNETLab MCP Server

by omichelbraga

connect_nodes

Create a point-to-point link between two device interfaces in a PNETLab lab. Specify lab, nodes, and interfaces to establish a network connection.

Instructions

Create a point-to-point link between two node interfaces. Interfaces may be given as an index or an interface name. IMPORTANT: IOL interfaces are indexed 0/16/32/48 (e0/0=0, e0/1=16, e0/2=32, e0/3=48); VPCS uses 0. You can pass 'e0/1' and it is converted automatically. Use get_lab to see each node's interface map. Do NOT connect nodes after editing them — wire the topology, then start.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lab_pathYes
node1_idYes
node2_idYes
network_nameNo
network_typeNobridge
node1_interfaceYes
node2_interfaceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden for behavioral disclosure. It explains the automatic conversion of interface names and special indexing for IOL/VPCS, but does not address auth needs, rate limits, or what happens if the connection already exists or fails.

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?

The description is concise, using a few short sentences. It front-loads the main purpose, then adds essential details and a warning. No superfluous information is present.

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

Completeness3/5

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

Given the tool's complexity (7 parameters, 5 required, no annotations), the description adequately covers the main usage scenario and interface details. However, it lacks mentions of prerequisites (lab path must be valid, nodes must exist) and error handling, making it slightly incomplete.

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 0%, so the description must compensate. It adds value for interface parameters by explaining index vs. name and automatic conversion. However, it does not explain 'network_name' or 'network_type', which are present in the schema but undocumented.

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 clearly states 'Create a point-to-point link between two node interfaces,' which is a specific verb+resource. It also provides examples of interface indexing, making the purpose unmistakable. The existence of a sibling tool 'disconnect_nodes' naturally contrasts with this tool's function.

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?

The description provides clear guidance: 'Use get_lab to see each node's interface map' and explicitly warns 'Do NOT connect nodes after editing them — wire the topology, then start.' While it does not mention alternative tools, it gives strong contextual cues for when to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/omichelbraga/pnetlab-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server