Skip to main content
Glama

Resolve and download the VPN

htb_vpn_resolve
Destructive

Picks a low-load Hack The Box VPN server or specified server_id, switches if needed, downloads and resolves the OpenVPN profile, and optionally connects.

Instructions

Pick the least-busy server (or use server_id), switch if needed, download the OpenVPN profile, resolve its remote hostname, and optionally connect. Blocks switching while a machine is active unless force=true. Does not connect unless connect=true.

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_resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoAllow a server switch while a machine is active.
probeNoResolve DNS and try ICMP latency.
connectNoStart OpenVPN after downloading the profile.
productNoHTB VPN product. Lab machines use 'labs'.labs
protocolNoOpenVPN transport protocol.udp
server_idNo
select_bestNoAutomatically choose the least-busy server in the current tier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds meaningful context beyond them: the active-machine switch guard and the force=true override, plus the explicit no-connect-by-default rule. It still doesn't say whether an existing profile is overwritten or what happens to a currently active VPN session when switching.

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 dense sentences that front-load the action sequence and then state the two guard conditions. Every clause carries a distinct behavioral fact; nothing is redundant with the title or annotations.

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?

For a 7-parameter compound tool with no output schema, the description covers the action sequence and safety guards but omits what the call returns (profile path, resolved IP, connection state) and any auth/prerequisite context. Adequate to invoke, but an agent cannot predict the result shape.

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 coverage is 86%, so most parameters are already documented; the description only reinforces server_id, force, connect, and the select_best concept. It adds no detail on probe, protocol, or product semantics beyond the schema's own enum/default text, so baseline 3 is appropriate.

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?

The description names a concrete multi-step outcome — pick least-busy server or server_id, switch, download the OpenVPN profile, resolve hostname, optionally connect — so an agent can see this is a bundled setup pipeline. It implicitly differentiates from siblings like htb_vpn_download and htb_vpn_connect by covering the whole sequence, but never states that relationship explicitly.

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?

It gives real conditional behavior: switching is blocked while a machine is active unless force=true, and connection only happens with connect=true. However, it offers no guidance on when to use this compound tool versus the sibling primitives (htb_vpn_download, htb_vpn_switch, htb_vpn_connect), which is the main decision an agent faces with this catalog.

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