Skip to main content
Glama

SiteCheck Web Intel

Hacker News story search through the official HN Search

search_hacker_news_stories
Read-only

Hacker News story search through the official HN Search API (Algolia, public, no key): title, article URL, author, points, comment count and discussion link. Returns stories only, most relevant first. Related tools on this server, for a different need: search_hacker_news_item_by_id when you need One Hacker News item by numeric id from the official HN. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "<q>"
    },
    "name": "search_hacker_news_stories"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesSearch words (1 to 200 characters)
limitNoHow many stories, 1 to 30 (default 10)

Output Schema

NameRequiredDescriptionDefault
qNo
countNo
itemsNo
nbHitsNo
sourceNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint, openWorldHint), but the description adds information those annotations cannot convey: the API is public and keyless, the call costs $0.002 and is billed via x402 in USDC, and failed calls are free. That cost/auth disclosure is materially useful for an agent deciding whether to call it; only rate limits or result-cap behavior are left unstated.

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?

Front-loaded with purpose, then return shape, then sibling routing, then cost — each sentence carries distinct decision-relevant information. The phrasing 'Related tools on this server, for a different need:' is slightly clunky but costs no clarity.

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?

For a two-parameter read-only search with a full output schema, the description covers what matters: source, scope, ordering, and the paid-call model. Enumerating the return fields is partly redundant with the output schema, and nothing is said about pagination or throttling.

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%, with both `q` and `limit` documented including ranges and default, so the baseline is 3. The description contributes no additional meaning about query syntax, matching behavior, or how `limit` interacts with relevance ordering.

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?

Names a specific verb+resource (Hacker News story search via the Algolia HN Search API) and states the exact scope: stories only, most relevant first, with the returned fields enumerated. It also contrasts itself against search_hacker_news_item_by_id, so an agent can distinguish the two 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent away from this tool when a single item by numeric id is needed, naming the sibling that handles that case. It does not address when to prefer this over the many general news/search siblings (e.g. search_google_news) for HN-specific content, so guidance is clear but not exhaustive.

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.

Resources