Skip to main content
Glama
reddit-mcp-server

reddit-mcp-server

Get Post Comments

get_post_comments
Read-only

Fetches a Reddit post's comment thread by post ID and subreddit, sorted best/top/new/controversial/old/QA, returning authors, scores, bodies and nesting. Expand truncated threads with get_more_comments.

Instructions

Get the comment thread for a post (by post id + subreddit), sorted best/top/new/controversial/old/qa. Read-only; works without credentials via the Arctic Shift archive (scores lag). Returns the post header plus threaded comments (author, OP/edited badges, score, body, nesting depth) up to limit. Long threads are truncated with 'load more' stubs — expand those with get_more_comments. Use get_reddit_post for just the post body, not the thread.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "post_id": "<post_id>",
      "subreddit": "<subreddit>"
    },
    "name": "get_post_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoComment ordering: 'best' (default), 'top', 'new', 'controversial', 'old', or 'qa' (Q&A).best
limitNoMaximum comments to return, 1–500 (default 100). Deeply nested replies may still be truncated as 'load more' stubs.
post_idYesBase36 post id — the segment after /comments/ in a permalink (e.g. '1abc23'). With or without a t3_ prefix.
subredditYesThe subreddit the post lives in, without the r/ prefix (e.g. 'movies').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.2
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of comments to load"New value: +"Maximum comments to return, 1–500 (default 100). Deeply nested replies may still be truncated as 'load more' stubs."
    • changedInput schema / properties / post_id / description
      Previous value: -"The ID of the post"New value: +"Base36 post id — the segment after /comments/ in a permalink (e.g. '1abc23'). With or without a t3_ prefix."
    • changedInput schema / properties / sort / description
      Previous value: -"Comment sort order: best, top, new, controversial, old, qa"New value: +"Comment ordering: 'best' (default), 'top', 'new', 'controversial', 'old', or 'qa' (Q&A)."
    • changedInput schema / properties / subreddit / description
      Previous value: -"The subreddit where the post is located"New value: +"The subreddit the post lives in, without the r/ prefix (e.g. 'movies')."
  2. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint by disclosing the data source (Arctic Shift archive), the data-freshness caveat ('scores lag'), and the truncation behavior with 'load more' stubs. It also enumerates the returned fields, so the agent knows the shape of the result despite no output schema.

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?

Four tight sentences, front-loaded with the core action, then caveats, then sibling routing. No filler and nothing repeated that isn't earning its place as guidance.

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?

For a read tool with no output schema, the description covers result contents, nesting, truncation, sort options, and auth-free access. Nothing an agent needs to call it correctly is absent.

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 parameters are already documented, and enum values for sort are simply restated. The description still adds real meaning by tying `limit` to truncation behavior ('up to limit', nested replies may become stubs), which the schema only partly conveys.

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+resource ('Get the comment thread for a post'), names the identifying keys, and distinguishes itself from get_reddit_post ('just the post body, not the thread') and get_more_comments. An agent can pick this tool without opening any schema.

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?

Explicit routing: use this for the thread, use get_reddit_post for the post body alone, and expand truncated threads with get_more_comments. The 'works without credentials' note also tells the agent this succeeds even when auth-backed siblings would not.

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