You're viewing a demo portfolio

Join the waitlist
PRSM

hn_get_thread

Active

Tool of @cyanheads/hn-mcp-server

declared in 0.5.11

Get an item and its comment tree as a threaded discussion, with child comments resolved recursively. Use depth 0 for an item-only lookup.

Parameters schema

{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "itemId"
  ],
  "properties": {
    "depth": {
      "type": "number",
      "default": 3,
      "maximum": 10,
      "minimum": 0,
      "description": "How many levels of replies to resolve. 0 = just the item, no comments. 1 = direct replies only. Popular stories often have more top-level comments than maxComments — to see nesting, raise maxComments together with depth, or call again with a specific comment's itemId to drill into a subtree."
    },
    "itemId": {
      "type": "number",
      "description": "ID of the story, comment, or poll to fetch the thread for."
    },
    "maxComments": {
      "type": "number",
      "default": 50,
      "maximum": 200,
      "minimum": 1,
      "description": "Maximum total comments to include across all depth levels. Highest-ranked top-level comments resolve first; replies fill in only after the level above is exhausted."
    }
  }
}

What this tool wraps· 1 endpoint

min confidence0.700.50

Parent server

@cyanheads/hn-mcp-server

https://github.com/cyanheads/hn-mcp-server

2/7 registries
View full server →
hn_get_thread — @cyanheads/hn-mcp-server — PRSM MCP