Skip to main content
Glama

HN Algolia Search Comments

hnalgolia.search.comments
Read-onlyIdempotent

Search HackerNews comments by keyword — retrieves community opinions, technical insights, and discussions across the full HN history. Each result includes comment text (HTML-stripped), parent story context (title + URL), author, and direct HN link. No auth required. Data: Hacker News (CC BY 3.0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoZero-based page index for pagination (default 0).
limitNoNumber of comments to return (1–30, default 10).
queryYesSearch query to find comments across HackerNews history. Returns comment text, story context (title + URL), author, and direct HN link. Useful for finding community opinions or technical discussions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations (readOnlyHint=true, idempotentHint=true, destructiveHint=false) already establish that this is a safe, non-destructive read. The description adds meaningful context beyond that: result composition (HTML-stripped comment text, parent story context, author, direct link), no auth required, and licensing. It doesn't mention rate limits or pagination behavior, but with annotations covering the safety profile, the added detail earns a 4.

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 with zero fluff: purpose is front-loaded, followed by result contents and auth/licensing. Every sentence earns its place, and the structure makes the description easy to scan.

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?

With an output schema present, return values are already defined structurally, and annotations cover the safety profile. The description adds search scope (full HN history) and result composition, while pagination defaults are in the schema. It's complete for invoking the tool, though a pointer to sibling search tools for different relevance/recency needs would make it stronger.

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 description coverage is 100%, so all three parameters (query, page, limit) are fully documented with types, defaults, and bounds. The description mirrors the query semantics but adds no new meaning beyond the schema, so the baseline 3 is appropriate.

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?

States a specific verb and resource: 'Search HackerNews comments by keyword', and describes what it finds (community opinions, technical insights, discussions). It clearly distinguishes its target (comments) from story/item tools, but doesn't explicitly differentiate itself from sibling hnalgolia.search.recent or hnalgolia.search.relevance, so it misses the top mark.

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 explicit guidance on when to use this tool versus related siblings. The description implies a full-history keyword comment search but does not state when an agent should prefer this over hnalgolia.search.recent or hnalgolia.search.relevance, nor does it mention any exclusions or alternative conditions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.