hn-search
Search Hacker News stories and comments. Filter by type, date range, and sort order. Get titles, scores, comment counts, authors, and URLs.
Instructions
Hacker News story and comment search via Algolia. Returns titles, scores, comment counts, authors, and URLs for posts matching the query. Filter by type (story/comment) and date range (day/week/month/year/all). Sorted by relevance by default; use sort=date for newest-first. Useful for tech news, community sentiment, or discovering discussion threads about a topic.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hn-search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Search query (required). Use quotes for exact phrases. | |
| type | No | Content type to search. Default: story. | |
| limit | No | Number of results (1–20). Default: 10. | |
| sort | No | Sort order — relevance (default) or date (newest first). | |
| date_range | No | Filter results to a time window. Default: all. |