Skip to main content
Glama

Social Media Data API: Posts, Profiles, Comments, Search and Mentions

Hacker News thread

hackernews_thread
Read-only

Hacker News Comments & Threads: one Hacker News story or comment by id or news.ycombinator.com URL with its direct replies (up to 8 per call, next_cursor for more), deleted and dead replies skipped. Per item the text as plain text, author, score, reply count, parent and time in the shared social schema. Bad input is free; not found or no match is not charged. Price: $0.01 per successful call, paid over x402 (USDC on Base); pass the payment in _meta["x402/payment"].

Input Schema

NameRequiredDescriptionDefault
idYesThe story or comment: a Hacker News item id (a positive whole number) or a news.ycombinator.com/item?id= URL.
limitNoDirect replies wanted, 1-50 (default 10); one call returns at most 8, next_cursor pages through the rest.
cursorNonext_cursor of the previous page (a reply offset).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover safety (readOnly, openWorld), but the description adds real value beyond them: a hard 8-item page cap with cursor pagination, silent skipping of deleted/dead replies, plain-text normalization of item bodies, and the exact field set returned. It also discloses the billing model ($0.01 per successful call, not charged for misses) and the x402 payment mechanism, which no structured field carries.

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?

Front-loads the identity of the resource, then pagination, then returned fields, then pricing — a sensible order with little waste. The final pricing/payment sentence is dense and slightly run-on, but every clause carries information an agent needs.

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?

With no output schema, the description compensates by enumerating the per-item fields (text, author, score, reply count, parent, time) and the shared social schema. Combined with pagination and charge semantics, nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: a call returns at most 8 items regardless of the requested limit, with next_cursor paging the remainder. That clarifies the limit/cursor interaction and explains why reply counts may appear truncated.

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 one Hacker News story or comment by id or news.ycombinator.com URL, together with its direct replies. The 'one item by id/URL' framing contrasts implicitly but clearly with the hackernews_search sibling, so an agent can pick without opening either schema.

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 operational context: up to 8 replies per call, next_cursor to page, deleted and dead replies skipped. It stops short of explicitly naming hackernews_search as the alternative for lookups without an id, so routing is implied rather than stated.

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.

Resources