Search stories
search_storiesSearches Hacker News stories by keyword and returns summaries ranked by relevance. Use it to find topics or phrases quickly.
Instructions
Searches Hacker News stories by keyword via the public Algolia HN API and returns summaries ranked by Algolia relevance/popularity, not exact phrase matching or HN front-page order. Read-only, idempotent, and unauthenticated; the client caches GET responses in memory for 60 seconds and throttles upstream HN/Algolia requests to 10 requests/second with a burst of 20, while upstream HTTP, rate-limit, or response-shape failures are returned as tool errors. Empty queries are rejected, no-match searches return an empty stories array, and this is the right tool for topics or phrases; use story-list tools for rankings and get_item_thread for comments on a known item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Non-empty keyword query sent verbatim to Algolia HN search; matching is Algolia token-based search, not guaranteed exact phrase matching. | |
| limit | No | Maximum number of stories to return. Defaults to 10; valid range is 1 to 30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stories | Yes | ||
| returned | Yes |