Skip to main content
Glama
Xplo8E

HackTricks MCP Server

by Xplo8E

get_hacktricks_outline

Retrieve the table of contents of a HackTricks page to verify relevance and find exact section names before extracting full content, saving tokens.

Instructions

Get TABLE OF CONTENTS (all section headers) of a page. Returns ~20-50 lines showing page structure. Use this FIRST after search to: (1) verify page is relevant, (2) find exact section names for get_hacktricks_section. Cost: ~100 tokens vs 3000+ for full page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath from search results
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses output size (~20-50 lines), that it shows structure, and token cost. It implies read-only behavior. While not exhaustive, it is sufficient for a simple outline tool.

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 serving a purpose: defining output, giving usage guidance, and providing cost context. No wasted words, front-loaded with most important info.

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 simple tool with one parameter and no output schema, the description fully covers purpose, output characteristics, usage workflow, and cost. No critical gaps.

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% with one parameter 'path' already described. The description adds no additional meaning or constraints beyond what the schema provides.

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?

Clearly states it gets the table of contents (all section headers) of a page. Distinguishes from siblings by specifying it is used after search and before get_hacktricks_section, and mentions token cost savings.

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?

Explicitly says 'Use this FIRST after search' and provides two specific use cases: verify page relevance and find exact section names. Also compares token cost to full page, guiding when to use this tool over alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Xplo8E/hacktricks-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server