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 |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
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 |