Skip to main content
Glama

Switch VPN server

htb_vpn_switch
Destructive

Switch your account to another HTB VPN server by server ID; set force=true to allow switching while a machine is active.

Instructions

Assign your account to another VPN server. HTB may terminate an active machine when the server changes, so this tool refuses unless force=true. Prefer htb_vpn_resolve for automatic least-busy selection.

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": {
      "server_id": "<server_id>"
    },
    "name": "htb_vpn_switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoAllow switching while a machine is active.
productNoHTB VPN product. Lab machines use 'labs'.labs
server_idYesVPN server ID from htb_vpn_servers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint/openWorldHint annotations, the description discloses the concrete consequence — HTB may terminate an active machine on switch — and the enforcement mechanism (refusal without force=true). This is exactly the kind of risk context an agent needs before invoking a destructive mutation.

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 sentences, front-loaded with the action, then the safety constraint, then the routing hint. No filler or redundancy.

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

Completeness5/5

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

For a destructive mutation with rich annotations, no output schema, and fully described parameters, the definition covers the key gap — the risk of machine termination and the force gate. Nothing required to call it safely is missing.

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 100%, so all three parameters including the product enum and the server_id source are already documented. The description reinforces the force semantics with the consequence of switching, but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 a specific verb and resource ('Assign your account to another VPN server') and explicitly distinguishes itself from htb_vpn_resolve, which handles automatic least-busy selection. An agent can tell exactly what operation this performs and how it differs from the sibling.

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

Usage Guidelines5/5

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

It gives both the preferred alternative ('Prefer htb_vpn_resolve for automatic least-busy selection') and the condition blocking use ('refuses unless force=true' when a machine is active). When-to-use, when-not-to-use, and the alternative are all explicit.

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