Skip to main content
Glama

Hn Get Stories

hn_get_stories
Read-only

Fetch stories from an HN feed (top, new, best, ask, show, jobs), with title, URL, score, author, and comment count for each story.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
feedYesWhich HN feed to fetch. "top" includes jobs. "ask" and "show" are Ask HN / Show HN posts.
countNoNumber of stories to return. Larger counts take longer.
offsetNoNumber of stories to skip from the start of the feed. Use with count for pagination.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNoThe count cap that was applied.
feedNoWhich feed was fetched.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of stories returned on this page.
totalNoTotal items in the feed (up to 500 for top/new/best, 200 for ask/show/jobs).
noticeNoRecovery hint when a page is empty — e.g. offset past end of feed or feed has no items. Absent on non-empty result pages.
offsetNoOffset that was applied to this page.
hasMoreNoWhether more stories are available beyond this page.
storiesNoStories from the feed, ordered by HN ranking.
truncatedNoTrue when the feed was capped by the count parameter.

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint: true, so the tool's read-only nature is established. The description adds value by specifying the exact fields returned per story (title, URL, score, author, comment count), which goes beyond what the annotation conveys. It also consistently describes a fetch operation, showing no contradiction with the annotation. This supplemental behavioral detail is useful for the agent.

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?

The description is a single, concise sentence that front-loads the action and resource, then provides the essential details (feed types and return fields) without extraneous information. Every word contributes to the tool's purpose, and it is immediately scannable. This is an exemplar of efficient, structured description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given that an output schema exists (so return format is structurally defined), the annotations cover safety, and the input schema fully documents all parameters, the description supplies sufficient context for correct invocation. It covers the feed varieties and the nature of the returned data, and there are no hidden prerequisites or side effects to disclose. The tool is simple and the definition is complete for an agent to use it correctly.

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?

Since schema description coverage is 100%, every parameter (feed, count, offset) is already documented in the input schema with clear descriptions, including the enum values for feed. The description itself does not add significant semantic value beyond restating the feed types, which are already in the schema. This matches the baseline of 3 for full schema coverage.

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?

The description explicitly states the action (fetch stories), the resource (HN feed), and the specific feed types (top, new, best, ask, show, jobs), while also listing the returned fields (title, URL, score, author, comment count). This clearly distinguishes it from sibling tools like hn_get_thread or hn_get_user, which target different resources. The purpose is unambiguous and highly specific.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description implies usage by enumerating feed types and returned fields, but it does not explicitly state when to use this tool versus alternatives like hn_search_content or hn_get_thread. There are no exclusions or scenario-based guidance, leaving the agent to infer appropriate usage from the tool's name and description. This is adequate but lacks explicit routing.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a clearly distinct resource: feed stories, threaded items, user profiles, and content search. No overlap exists; an agent can easily select the appropriate tool for a given intent.

Naming Consistency5/5

All tools follow a uniform `hn_` prefix with a consistent verb_noun pattern (`get_stories`, `get_thread`, `get_user`, `search_content`). The naming is intuitive and predictable.

Tool Count5/5

Four tools is well-scoped for a Hacker News read-only server, covering core data access patterns without redundancy. Each tool earns its place, and the count is neither too thin nor bloated.

Completeness4/5

The surface covers fetching stories, retrieving item trees, viewing user profiles, and searching content. Minor gaps exist (e.g., no direct way to list a user's comments, no explicit single-item fetch beyond depth-0 thread), but agents can work around them using the thread tool.