Skip to main content
Glama
wallaceluis

hackernews-mcp-server

by wallaceluis

Fetch Hacker News

fetch_hacker_news
Read-onlyIdempotent

Retrieve current Hacker News stories by category and limit, returning title, link, score, author, and comment count for tech news or Ask/Show HN queries.

Instructions

Fetch current stories from Hacker News (news.ycombinator.com) with title, link, score, author and comment count. Use it for questions about tech news, what is trending among developers, or recent Ask HN / Show HN posts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many stories to return, from 1 to 30.
categoryNoWhich list to read: top (front page), new (latest), best (highest voted recently), ask (Ask HN), show (Show HN) or job (job postings).top

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
storiesYes
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint, so the safety and external-dependency profile is covered. The description adds only that it hits news.ycombinator.com and what fields come back, which is largely restated by the output schema; no rate limits, caching, or ordering behavior is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with the capability front-loaded and usage context second. Every clause carries information, though the field enumeration is slightly redundant given the output schema.

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

Completeness4/5

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

With rich annotations, a 100%-covered schema and an existing output schema, the description covers source and scope adequately for an agent to invoke it correctly. Minor gaps (story ordering, freshness of 'current') are not critical for the call.

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?

Schema description coverage is 100%, so both the 'limit' range and the 'category' enum semantics are fully documented in the schema. The description contributes no additional parameter meaning, so the baseline 3 is appropriate.

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?

States a specific verb (fetch) and resource (current stories from Hacker News) and enumerates the returned fields (title, link, score, author, comment count). An agent immediately knows exactly what this tool produces and from which source.

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

Usage Guidelines4/5

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

Gives clear triggering contexts — tech news questions, developer trending topics, recent Ask HN / Show HN posts. It does not name exclusions or alternatives, but with no sibling tools there is nothing to route away from, so the guidance is sufficient.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools