reddit_get_post
Retrieve complete Reddit post details and nested comment threads using a permalink to analyze discussions or extract content.
Instructions
Get full details of a Reddit post including its comment tree.
Args: permalink: Reddit permalink path (e.g., '/r/Python/comments/abc123/my_post/')
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| permalink | Yes |
Implementation Reference
- The handler function 'reddit_get_post' which executes the tool logic by calling the PostService.
async def reddit_get_post( permalink: str, ctx: Context, ) -> dict[str, Any]: try: result = await service.get_post(permalink) return McpSerializer.serialize(result) except Exception as e: McpErrorMapper.map(e, "reddit_get_post") - Registration of the 'reddit_get_post' tool using the FastMCP decorator.
@mcp.tool( name="reddit_get_post", description=( "Get full details of a Reddit post including its comment tree.\n\n" "Args:\n" " permalink: Reddit permalink path " "(e.g., '/r/Python/comments/abc123/my_post/')" ), )