Skip to main content
Glama

Connect OpenVPN

htb_vpn_connect

Starts an OpenVPN connection using an HTB VPN profile, downloading the assigned profile first when no path is given. Runs without a password prompt via sudo -n.

Instructions

Start OpenVPN using a profile in the configured VPN directory. If config_path is omitted, the assigned profile is downloaded first. Uses sudo -n when not root; it never prompts for a password.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "htb_vpn_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
productNoHTB VPN product. Lab machines use 'labs'.labs
protocolNoOpenVPN transport protocol.udp
server_idNo
config_pathNoProfile inside the configured HTB VPN directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses the network side effect of downloading a profile, the privilege path (sudo -n when not root), and the important non-interactive guarantee that no password prompt occurs. It does not explain what happens to an existing tunnel or what force changes, which keeps 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?

Three short sentences, front-loaded with the action, then the fallback behavior, then the privilege note. No filler and nothing repeated from the schema or annotations.

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 5-parameter connection tool with no output schema, the description covers the essentials an agent needs: the download fallback, the sudo behavior, and the no-prompt guarantee. The remaining gap is result reporting and the effect of force on an active connection, which is minor but not zero.

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?

With 60% schema description coverage, the schema already documents product, protocol and config_path. The description adds real meaning only for config_path by stating that omission triggers a download; force and server_id remain undescribed in both places, so it does not fully compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Start OpenVPN using a profile in the configured VPN directory" gives a specific verb (start) and resource (OpenVPN session from a stored profile), which separates it from htb_vpn_download, htb_vpn_disconnect and htb_vpn_switch by implication. It stops short of naming those siblings explicitly, so an agent must infer the boundary itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The one conditional given is genuinely useful: omitting config_path triggers a profile download, which implicitly tells the agent it need not call htb_vpn_download first. However, there is no guidance on when to prefer this over htb_vpn_switch, what to do if already connected, or when force should be set, leaving the main routing decisions implied.

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