Full-text search server for the HackTricks security knowledge base (981 docs covering web, AD, Linux/macOS/Windows privesc, network services, binary exploitation, cloud, mobile). Backed by Cloudflare Workers D1 + FTS5.
Three well-named, read-only tools with clear descriptions (194 - 250 chars, within baseline 34 - 392). All tools have complete input schemas with typed parameters and descriptions. search() is particularly strong: it documents default behavior (include_content=true), result limits, and truncation handling. Output schemas are partially documented via implementation (search returns count/results/snippet/content; get_page returns path/title/category/body; list_section returns section/count/pages). However, output schemas are not formally declared in tool definitions, LLMs must infer structure from descriptions. Error handling is minimal: no recovery guidance, no categorization of retryable vs fatal errors. No tool annotations (readOnlyHint, idempotentHint). Parameter descriptions are adequate but lack format/range constraints (e.g., 'limit: max 25' stated in description but not as JSON Schema maxLength/maximum).
Return the full clean markdown of one knowledge-base page by its exact path (the `path` field returned by search), e.g. knowledge/pentesting-web/sql-injection/README.md.
List every page in a top-level section (folder), e.g. 'pentesting-web', 'windows-hardening', 'linux-hardening', 'binary-exploitation'. Use to browse a domain.
Full-text search the HackTricks security knowledge base (981 docs: web, AD, Linux/macOS/Windows privesc, network services, binary exploitation, cloud, mobile, etc.). By DEFAULT returns the ranked matching pages WITH their full markdown content (the `content` field), so you can read and use the techniques directly from this one call — no follow-up needed. Set include_content=false for lightweight snippet-only discovery. Use 2-4 specific terms.
Output schemas not formally documented in tool definitions. LLMs must infer response structure from implementation or description text. search() returns {count, results[], snippet, content, truncated}; get_page() returns {path, title, category, body}; list_section() returns {section, count, pages[]}. Formal schema declarations enable better LLM planning and reduce hallucination.
No tool annotations (readOnlyHint, idempotentHint, destructiveHint). All three tools are read-only and idempotent, but this is not declared in the tool definition. Agents cannot infer safety properties without explicit hints.
Error handling lacks recovery guidance. doSearch() returns empty results on invalid query (no error thrown); doGetPage() and doListSection() throw generic Error objects with no actionable next steps. E.g., 'page not found: <path>' should suggest 'Try search() to find the correct path.'
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
Parameter constraints stated in descriptions but not in JSON Schema. 'limit: max 25' is documented in description text, not as JSON Schema maxLength/maximum. LLMs cannot parse natural-language constraints reliably.
get_page() description does not explain when to use it vs search(). Users may not understand that search() returns full content by default, making get_page() often redundant. Clarify: 'Use after search() to retrieve a page not included in search results, or to refresh content.'