Skip to main content
Glama

htb_hosts_remove

Remove a Hack The Box host entry from the managed /etc/hosts block by hostname or IP, keeping lab mappings accurate.

Instructions

Remove an HTB host entry from the managed block by hostname or IP.

Input Schema

NameRequiredDescriptionDefault
selectorYesHostname or IP to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It identifies an update to the managed block but does not say whether removal is idempotent, what happens if the host is absent, whether the change is reversible, whether a backup is created, or what permissions are required.

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?

A single front-loaded sentence that states action, target, scope, and selector format with no wasted words.

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 single-parameter tool with a complete schema, the definition is minimally adequate. However, as a mutation tool with no annotations or output schema, it should at least state idempotency, missing-host behavior, and relationship to backup/restore siblings.

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%, and the single parameter is documented with 'Hostname or IP to remove'. The description repeats that the selector accepts a hostname or IP but adds no matching/format details beyond the schema, so the baseline of 3 applies.

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 (Remove) and resource (HTB host entry), and scopes it to the managed block by hostname or IP. This clearly separates it from siblings like htb_hosts_add or htb_hosts_show, though it does not explicitly name alternatives.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus htb_hosts_clean or htb_hosts_add, nor any prerequisites or exclusions. Usage is only implied by the mutation verb 'Remove'.

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