Skip to main content
Glama

Spawn a machine

htb_launch_machine
Destructive

Start an active or retired Hack The Box machine by name or ID, then wait for its IP. Set replace to terminate another running machine first and avoid launch rate limits.

Instructions

Spawn an active or retired machine and wait for its IP. If another machine is active, set replace=true to terminate it first. HTB limits machine actions to roughly one per minute.

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": {
      "target": "<target>"
    },
    "name": "htb_launch_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesMachine or challenge name/slug, or numeric ID.
replaceNoTerminate a different active machine before spawning.
wait_secondsNoHow long to wait for an IP before returning a spawning status.

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?

The annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds real behavioral context beyond that: replace=true terminates the existing machine, the call blocks waiting for an IP, and HTB throttles machine actions to roughly one per minute. What is missing is failure behavior (e.g., what happens if no IP arrives before wait_seconds) and whether VPN connectivity is a prerequisite.

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, each earning its place: action and blocking behavior first, the replace precondition second, the rate-limit warning last. The most important constraint is front-loaded and there is no filler.

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 three-parameter mutation tool with full schema coverage and safety annotations, the description covers the essential behaviors: spawning scope, waiting, replacement semantics, and throttling. It stops short of covering prerequisites (VPN/auth) and the distinct outcomes of a timed-out spawn, which leaves a modest gap given there is no output schema.

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 100%, so all three parameters are already documented, making 3 the baseline. The description adds only a little — it reinforces that replace causes termination and mentions the IP wait — and says nothing extra about accepted target formats (name vs. slug vs. numeric ID) or tuning wait_seconds.

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 states a specific verb and resource ('Spawn an active or retired machine') and adds the post-spawn behavior ('wait for its IP'), which is more than a restatement of the name. It does not explicitly name or contrast with siblings such as htb_stop_machine or htb_reset_machine, so the agent must infer the distinction from the verb alone.

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 one concrete usage rule — set replace=true when another machine is active — plus a rate-limit constraint. However, it never says when to prefer an alternative such as checking status first with htb_status/htb_get_machine or stopping an existing machine via htb_stop_machine instead of replacing it.

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