Skip to main content
Glama

gns3_connection

Check GNS3 connection status, force re-authentication, or fully reconnect to clear stale console, SSH, and notification sessions after server restarts or project switches.

Instructions

Manage GNS3 server connection

CRUD-style connection management tool.

Actions: - check: Check connection status (connection state, error details, last attempt time, current project, server version; update_available with the update command when PyPI has a newer release - looked up within 300 ms, omitted otherwise) - retry: Force immediate re-authentication (bypasses exponential backoff) - reconnect: Full reconnect - re-authenticate AND clear all console/SSH/notification sessions. Use after GNS3 server restart, project switch, or when sessions are stale.

Args: action: Connection action to perform

Returns: JSON with connection status or reconnection result

Examples: # Check connection status >>> gns3_connection(action="check") {"connected": false, "server": "http://192.168.1.20:80", "error": "Connection timeout", "last_attempt": "08:15:42 30.10.2025"}

# Force re-authentication only
>>> gns3_connection(action="retry")

# Full reconnect (clears all sessions)
>>> gns3_connection(action="reconnect")
{"success": true, "sessions_cleared": {"console": 3, "notification": true}}

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": {
      "action": "<action>"
    },
    "name": "gns3_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction: 'check' (status, current project, newer gns3-mcp release), 'retry' (re-auth only), 'reconnect' (re-auth + clear all console/SSH/notification sessions)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.61.0
    • changedInput schema / properties / action / description
      Previous value: -"Action: 'check' (status), 'retry' (re-auth only), 'reconnect' (re-auth + clear all console/SSH/notification sessions)"New value: +"Action: 'check' (status, current project, newer gns3-mcp release), 'retry' (re-auth only), 'reconnect' (re-auth + clear all console/SSH/notification sessions)"
  2. First observedv0.54.2

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses that reconnect has a destructive side effect (clearing all console/SSH/notification sessions, with a sample showing counts), that retry bypasses exponential backoff, and that the PyPI update lookup is time-boxed to 300 ms and omitted on timeout. It does not state authentication prerequisites or whether check is strictly read-only, which are minor remaining gaps.

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-loaded with the purpose, then a scannable action list, then args/returns/examples. It is somewhat redundant: the action semantics appear in the action list and again verbatim in the schema description, and three full example invocations duplicate what the action list already conveys.

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 spelled out, and the description still illustrates key shapes. For a tool with destructive reconnect semantics and zero annotations, it covers side effects, triggers, and timing caveats well; only auth/credential requirements are unstated.

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?

There is only one parameter and schema description coverage is 100%, with an enum whose inline description already maps each value to its behavior. The description restates and slightly enriches those semantics (error details, last attempt time, current project, server version for check), but adds no syntax or format the schema lacks, so the 3 baseline is appropriate.

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 states the resource (GNS3 server connection) and enumerates three distinct operations with concrete outcomes: status check, forced re-authentication, and full reconnect. It is clearly distinguishable from siblings such as console, ssh, and notification, since reconnect is described as clearing those very sessions.

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?

It explicitly routes between its own actions: retry = re-auth only and bypasses exponential backoff, while reconnect = re-auth plus clearing all console/SSH/notification sessions, with a stated trigger ('after GNS3 server restart, project switch, or when sessions are stale'). That is strong when-to-use guidance, though no 'when not to use' or cross-tool alternative is named.

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