Skip to main content
Glama

hn_search

Read-onlyIdempotent

Search Hacker News stories and comments via Algolia (free, no key). Returns titles, URLs, authors, points, comment counts and timestamps, sorted by relevance or date. Use for tech-community signal and discussion; use gdelt_news for mainstream news coverage.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoSort order, default relevance
tagsNoOptional Algolia tag filter, e.g. story or comment
limitNoMax hits, default 20, max 50
queryYesSearch terms, e.g. primary sources mcp

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesSource payload; fields vary per tool
sourceYesHuman-readable upstream source name
retrievedAtYesISO-8601 timestamp of retrieval

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds useful context beyond annotations: it states the service is 'free, no key' (no auth needed) and lists returned fields and sorting behavior. It does not mention rate limits or pagination, but the output schema reduces that burden.

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?

Two tightly written sentences with no filler. The purpose and return fields are front-loaded, followed immediately by the sibling routing guidance, making every sentence earn its place.

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?

With annotations covering safety and an output schema present, the description needs only to state purpose, usage, and routing. It does all three, plus notes that no API key is required, leaving no critical gap 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 including the sort enum and limit bounds. The description reinforces 'sorted by relevance or date' and implicitly references stories/comments, but it adds no syntax or format details 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?

The description states a specific verb and resource: 'Search Hacker News stories and comments via Algolia'. It also explicitly distinguishes itself from a sibling by naming gdelt_news for mainstream news coverage, so an agent can route between them without opening either schema.

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?

The description gives explicit when-to-use guidance ('Use for tech-community signal and discussion') and names the alternative with its own use case ('use gdelt_news for mainstream news coverage'). This is a clear routing rule rather than vague implied usage.

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.