Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TIMEOUT_SECONDS | No | Request timeout in seconds | 30 |
| REDDIT_CLIENT_ID | Yes | Your Reddit app client ID | |
| REDDIT_USER_AGENT | Yes | User agent string for Reddit API requests (format: Your-App-Name/1.0.0 (by /u/YourUsername)) | |
| REDDIT_OAUTH_SCOPES | No | OAuth scopes for Reddit API access | read submit vote history privatemessages subscribe |
| REDDIT_REDIRECT_URI | No | OAuth2 redirect URI (must match Reddit app configuration exactly) | http://localhost:8080/callback |
| REDDIT_CLIENT_SECRET | Yes | Your Reddit app client secret |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_subreddit_posts | π Get posts from a subreddit π― What it does: Fetches posts from any Reddit subreddit with sorting options π Required: subreddit name (e.g., 'programming', 'AskReddit', 'MachineLearning') βοΈ Optional: sort ('hot', 'new', 'top') π‘ Examples: β’ Get hot posts: {"subreddit": "programming"} β’ Get new posts: {"subreddit": "AskReddit", "sort": "new"} β’ Get top posts: {"subreddit": "MachineLearning", "sort": "top"} π Output: Formatted list with title, author, score, comments, date, and Reddit link |
| search_reddit | π Search Reddit posts and comments π― What it does: Searches across Reddit or within a specific subreddit π Required: query (search terms) βοΈ Optional: subreddit (limit search to specific subreddit) π‘ Examples: β’ Global search: {"query": "machine learning"} β’ Subreddit search: {"query": "python tutorial", "subreddit": "programming"} β’ Tech search: {"query": "TypeScript", "subreddit": "typescript"} π Output: Formatted search results with title, author, subreddit, score, and link |
| get_user_profile | π€ Get Reddit user profile information π― What it does: Fetches detailed profile info for any Reddit user π Required: username (Reddit username without u/ prefix) π‘ Examples: β’ Get profile: {"username": "spez"} β’ Check user: {"username": "AwkwardTension4482"} β’ View profile: {"username": "gallowboob"} π Output: User info with karma, account age, gold status, moderator status, and profile link |
| get_subreddit_info | π Get subreddit information π― What it does: Fetches detailed info about any Reddit subreddit π Required: subreddit name (without r/ prefix) π‘ Examples: β’ Get info: {"subreddit": "programming"} β’ Check subreddit: {"subreddit": "AskReddit"} β’ View details: {"subreddit": "MachineLearning"} π Output: Subreddit details with description, subscribers, active users, creation date, NSFW status, and URL |
| get_post_comments | π¬ Get comments for a Reddit post π― What it does: Fetches comments and replies for any Reddit post π Required: post_id (Reddit post ID, found in post URLs) βοΈ Optional: sort ('best', 'top', 'new') π‘ Examples: β’ Get comments: {"post_id": "1n1nlse"} β’ Best comments: {"post_id": "1n1nlse", "sort": "best"} β’ New comments: {"post_id": "1n1nlse", "sort": "new"} π Output: Formatted comment tree with author, score, timestamp, and nested replies |
| get_trending_subreddits | π₯ Get trending/popular subreddits π― What it does: Fetches list of currently popular and trending subreddits π Required: None (no parameters needed) π‘ Examples: β’ Get trending: {} β’ Simple call: {} π Output: List of trending subreddits with name, title, subscribers, description, and URL |
| get_cross_posts | π Find crossposts of a Reddit post π― What it does: Finds posts that were cross-posted from the original post π Required: post_id (Reddit post ID to find crossposts for) π‘ Examples: β’ Find crossposts: {"post_id": "1n1nlse"} β’ Check shares: {"post_id": "1abc123"} π Output: List of crossposts with title, author, subreddit, score, and Reddit link |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |