Skip to main content
Glama

htb_hosts_select

Resolve managed Hack The Box host entries by fuzzy pattern and return bare IP or hostname values, optionally narrowing by multiple patterns and selecting indexed results for immediate use in commands.

Instructions

Look up managed entries by fuzzy pattern and return just their bare values, ready to feed into another command. patterns matches against ip/tag/hostname, and several patterns NARROW (every one must match). field picks what comes back: 'ip' (default) or 'host'. Use this to resolve a box name to its IP before scanning.

Input Schema

NameRequiredDescriptionDefault
fieldNoWhich values to return (default 'ip')
indexNoKeep only these 1-based values when a box has several (a hostname per vhost): 2, -1 for the last, the range '2-4', or the list '1,3'. Omit to return them all.
patternsNoFuzzy patterns, e.g. ['machine']; omit to match everything

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose key traits: read-style lookup, return of bare values only (not formatted output), and the non-obvious fact that multiple patterns NARROW rather than widen. It omits error/empty-match behavior and result ordering.

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 sentences, each earning its place, with the core action and output shape front-loaded before the matching semantics and the use case.

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 3-param, 100%-covered, annotation-free read tool with no output schema, this covers purpose, output shape, and the tricky matching semantics. Only the `index` parameter's effect on results and empty-result behavior go unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning the schema lacks: that `patterns` matches against ip/tag/hostname and that multiple patterns are conjunctive, plus that `field` defaults to 'ip'. The `index` parameter is left entirely to the schema.

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?

Names a specific verb and resource ('look up managed entries ... return just their bare values') and states the output shape, which implicitly distinguishes it from the sibling htb_hosts_show. It never names that contrast explicitly, so an agent must infer it, which keeps it short of a 5.

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

Usage Guidelines4/5

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

Gives a concrete use case ('resolve a box name to its IP before scanning') plus the AND-narrowing rule. It offers no explicit when-not guidance or named alternative among htb_hosts_show / htb_hosts_list-style siblings.

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