Skip to main content
Glama

HN Algolia Search (Relevance)

hnalgolia.search.relevance
Read-onlyIdempotent

Full-text search over the entire HackerNews history ranked by relevance — covers 20+ years of tech stories, Ask HN threads, Show HN posts, and job listings. Returns title, URL, author, score, comment count, and submission time. Supports filtering by type (story/ask/show/job/poll). Powered by Algolia. No auth required. Data: Hacker News (CC BY 3.0).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoZero-based page index for pagination (default 0).
typeNoContent type filter. "story" = submitted links; "ask" = Ask HN threads; "show" = Show HN posts; "job" = job listings; "poll" = polls. Default: story.
limitNoNumber of results to return (1–30, default 10).
queryYesFull-text search query. Searches across HN story titles, URLs, and authors. Supports multi-word queries (e.g. "rust programming language", "openai gpt").

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.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive behavior, so the bar is lower. The description adds valuable context beyond the annotations: no auth required, Algolia as the backend, CC BY 3.0 data license, and the return field set. It does not contradict annotations and provides useful operational context.

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?

Four sentences with no filler; core purpose is front-loaded in the first sentence. The content-type enumeration appears twice ('covers... Ask HN threads, Show HN posts...' and 'Supports filtering by type...'), a small redundancy, but each sentence otherwise earns its place.

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, the description need not explain return structure. It covers scope, ranking, filtering, auth, and data provenance. The only notable gap is the omission of 'comment' from the described type filter, which the schema corrects. For a read-only search tool, the definition is complete enough for correct invocation.

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 the schema already documents all four parameters. The description adds marginal value by mentioning type filtering and result fields, but it actually omits the 'comment' type that the schema enum includes, which is a minor inconsistency. Since the schema carries the semantic load, a baseline 3 is appropriate.

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 states a specific verb ('full-text search'), a specific resource ('entire HackerNews history'), and a clear ranking criterion ('ranked by relevance'). This directly distinguishes it from sibling tools like hnalgolia.search.recent (chronological) and hnalgolia.search.comments (comment-focused). The content type coverage and return fields further pin down exactly what it does.

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 implies when to use it: when you want relevance-ranked full-text search across all HN history. However, it never explicitly names alternatives or states when-not-to-use (e.g., 'for recent items use hnalgolia.search.recent'). The context is clear but the exclusion guidance is left to inference.

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.