Skip to main content
Glama
adjacentai

necl-hn-mcp

hn_search

Search Hacker News stories and comments by full-text query, sorted by relevance or date, with adjustable result count.

Instructions

Full-text search across HN stories and comments via Algolia.

Args: query: Search query string. sort: "relevance" (default) or "date" (newest first). limit: Number of hits to return (1-50). Default 20.

Returns: Dict with hits (list of clean dicts: id, kind, title, url, hn_url, author, points, comments_count, story_text, comment_text, created_at, tags) and total_hits (total matches Algolia found, may exceed limit).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNorelevance
limitNo
queryYes
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses return format (dict with hits and total_hits), hit structure (id, kind, title, etc.), sort defaults, limit range, and that it's full-text search via Algolia. Does not mention rate limits or idempotency, but search is inherently read-only.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structured as docstring with Args and Returns sections. Each sentence adds value, though the return format list is somewhat lengthy but necessary. No wasted words.

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?

Given no output schema, the description thoroughly explains return values and hits structure. Parameters are fully explained. Covers defaults and constraints. Lacks error handling or edge cases, but sufficient for a search tool.

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 0%, but description adds meaning beyond schema: explains query as search string, sort options with default 'relevance', limit range 1-50 and default 20. It compensates well for lack of schema descriptions.

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?

The description clearly states 'Full-text search across HN stories and comments via Algolia,' specifying the verb (search), resource (HN stories and comments), and method (Algolia). It distinguishes from sibling tools like hn_get_story and hn_top_stories, which are specific retrieval tools.

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?

The description explains parameters but does not explicitly state when to use this tool versus alternatives. It implies usage for broad search, but lacks explicit when-not or comparison to siblings, reducing guidance.

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/adjacentai/necl-hn-mcp'

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