Skip to main content
Glama

get_stories

Retrieve Hacker News stories by type (top, new, ask_hn, show_hn) and quantity using this tool. Excludes comments; use get_story_info for detailed story content.

Instructions

Get stories from Hacker News. The options are top, new, ask_hn, show_hn for types of stories. This doesn't include the comments. Use get_story_info to get the comments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
num_storiesNoNumber of stories to get
story_typeNoType of stories to get, one of: `top`, `new`, `ask_hn`, `show_hn`

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/erithwik/mcp-hn'

If you have feedback or need assistance with the MCP directory API, please join our Discord server