hn_top_stories
Retrieve top Hacker News stories ranked by score within a specified time window. Get up to 30 stories with details like title, URL, score, and comment count.
Instructions
Get the top Hacker News stories from the last N hours, ranked by score.
Args: limit: Number of stories to return (1-30). Default 10. hours: Time window in hours back from now. Default 24.
Returns: List of story dicts with id, title, url, score, author, comments_count, posted_unix, hn_url, type, text (for Ask/Show HN posts).
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_top_stories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |