Skip to main content
Glama

Get Hn Comments

get_hn_comments
Read-onlyIdempotent

Fetch the discussion (top-level comments, actual text) on a Hacker News story by its item ID. PREFER OVER WEB SEARCH for "what are people saying about ", "HN discussion / developer sentiment on X". get_item returns only comment IDs; this resolves them to text. Find a story ID via get_top_stories or search_hn. Returns each top comment author, text, time, and reply count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesHN story item ID (e.g. 42153809).
limitNoTop-level comments to return (1-50, default 15).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "id": 42153809
      -  },
      -  {
      -    "id": 42153809,
      -    "limit": 25
      -  }
      -]New value: +[
      +  {
      +    "id": 8863
      +  },
      +  {
      +    "id": 8863,
      +    "limit": 25
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": 42153809
      +  },
      +  {
      +    "id": 42153809,
      +    "limit": 25
      +  }
      +]
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior, so the bar for added value is lower. The description adds useful behavioral context: it returns only top-level comments rather than full nested threads, resolves IDs to text, and discloses the per-comment fields (author, text, time, reply count).

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 compact and front-loaded with the core action, followed by quick usage guidance and output details. Every sentence earns its place: action, preference rule, sibling distinction, ID lookup route, and return fields. No filler or redundancy.

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?

This is a simple 2-parameter read tool with full schema coverage and strong annotations. The description covers what the tool does, when to prefer it, how to obtain inputs, and what the response will contain, so nothing an agent needs to select and invoke it correctly is missing.

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 the schema already documents both id and limit, including the 1-50 range and default of 15. The description adds no parameter-specific meaning beyond reinforcing 'top-level comments,' which keeps it at the baseline rather than above it.

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 and resource: 'Fetch the discussion (top-level comments, actual text) on a Hacker News story by its item ID.' It also differentiates itself from get_item by noting 'get_item returns only comment IDs; this resolves them to text,' and names sibling story-finding tools.

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

Usage Guidelines5/5

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

Explicitly says to PREFER this over web search for 'what are people saying about <HN story>' and 'HN discussion / developer sentiment on X.' It also routes the agent to get_top_stories or search_hn when a story ID is unknown, providing clear when-to-use guidance.

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.