Skip to main content
Glama

Reddit Buddy MCP

by karanb192

get_post_details

Fetch Reddit posts with comments using URL or post ID, including options for comment limits, sorting, and link extraction to analyze discussions.

Instructions

Fetch a Reddit post with its comments. Requires EITHER url OR post_id. IMPORTANT: When using post_id alone, an extra API call is made to fetch the subreddit first (2 calls total). For better efficiency, always provide the subreddit parameter when known (1 call total).

Input Schema

NameRequiredDescriptionDefault
comment_depthNoLevels of nested replies to include (1-10, default: 3)
comment_limitNoMaximum comments to fetch (1-500, default: 20)
comment_sortNoComment ordering: "best" (algorithm-ranked), "top" (highest score), "new", "controversial", "qa" (Q&A style). Default: best
extract_linksNoExtract all URLs mentioned in post and comments (default: false)
max_top_commentsNoNumber of top comments to return (1-50, default: 5)
post_idNoReddit post ID (e.g., "abc123"). Can be used alone or with subreddit for better performance
subredditNoOptional subreddit name when using post_id. Providing it avoids an extra API call (e.g., "science")
urlNoFull Reddit post URL (e.g., "https://reddit.com/r/science/comments/abc123/...")

Input Schema (JSON Schema)

{ "properties": { "comment_depth": { "description": "Levels of nested replies to include (1-10, default: 3)", "type": "number" }, "comment_limit": { "description": "Maximum comments to fetch (1-500, default: 20)", "type": "number" }, "comment_sort": { "description": "Comment ordering: \"best\" (algorithm-ranked), \"top\" (highest score), \"new\", \"controversial\", \"qa\" (Q&A style). Default: best", "enum": [ "best", "top", "new", "controversial", "qa" ], "type": "string" }, "extract_links": { "description": "Extract all URLs mentioned in post and comments (default: false)", "type": "boolean" }, "max_top_comments": { "description": "Number of top comments to return (1-50, default: 5)", "type": "number" }, "post_id": { "description": "Reddit post ID (e.g., \"abc123\"). Can be used alone or with subreddit for better performance", "type": "string" }, "subreddit": { "description": "Optional subreddit name when using post_id. Providing it avoids an extra API call (e.g., \"science\")", "type": "string" }, "url": { "description": "Full Reddit post URL (e.g., \"https://reddit.com/r/science/comments/abc123/...\")", "type": "string" } }, "type": "object" }

Other Tools from Reddit Buddy MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/karanb192/reddit-buddy-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server