Reddit Automation via Rube MCP
Automate Reddit operations through Composio's Reddit toolkit via Rube MCP.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Reddit connection via
RUBE_MANAGE_CONNECTIONS with toolkit reddit
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit reddit
- If connection is not ACTIVE, follow the returned auth link to complete Reddit OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Search Reddit
When to use: User wants to find posts across subreddits
Tool sequence:
REDDIT_SEARCH_ACROSS_SUBREDDITS - Search for posts matching a query [Required]
Key parameters:
query: Search terms
subreddit: Limit search to a specific subreddit (optional)
sort: Sort results by 'relevance', 'hot', 'top', 'new', 'comments'
time_filter: Time range ('hour', 'day', 'week', 'month', 'year', 'all')
limit: Number of results to return
Pitfalls:
- Search results may not include very recent posts due to indexing delay
- The
time_filter parameter only works with certain sort options
- Results are paginated; use after/before tokens for additional pages
- NSFW content may be filtered based on account settings
2. Create Posts
When to use: User wants to submit a new post to a subreddit
Tool sequence:
REDDIT_LIST_SUBREDDIT_POST_FLAIRS - Get available post flairs [Optional]
REDDIT_CREATE_REDDIT_POST - Submit the post [Required]
Key parameters:
subreddit: Target subreddit name (without 'r/' prefix)
title: Post title
text: Post body text (for text posts)
url: Link URL (for link posts)
flair_id: Flair ID from the subreddit's flair list
Pitfalls:
- Some subreddits require flair; use LIST_SUBREDDIT_POST_FLAIRS first
- Subreddit posting rules vary widely; karma/age restrictions may apply
- Text and URL are mutually exclusive; a post is either text or link
- Rate limits apply; avoid rapid successive post creation
- The subreddit name should not include 'r/' prefix
3. Manage Comments
When to use: User wants to comment on posts or manage existing comments
Tool sequence:
REDDIT_RETRIEVE_POST_COMMENTS - Get comments on a post [Optional]
REDDIT_POST_REDDIT_COMMENT - Add a comment to a post or reply to a comment [Required]
REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit an existing comment [Optional]
REDDIT_DELETE_REDDIT_COMMENT - Delete a comment [Optional]
Key parameters:
post_id: ID of the post (for retrieving or commenting on)
parent_id: Full name of the parent (e.g., 't3_abc123' for post, 't1_xyz789' for comment)
body: Comment text content
thing_id: Full name of the item to edit or delete
Pitfalls:
- Reddit uses 'fullname' format: 't1_' prefix for comments, 't3_' for posts
- Editing replaces the entire comment body; include all desired content
- Deleted comments show as '[deleted]' but the tree structure remains
- Comment depth limits may apply in some subreddits
4. Browse Subreddit Content
When to use: User wants to view top or trending content from a subreddit
Tool sequence:
REDDIT_GET_R_TOP - Get top posts from a subreddit [Required]
REDDIT_GET - Get posts from a subreddit endpoint [Alternative]
REDDIT_RETRIEVE_REDDIT_POST - Get full details for a specific post [Optional]
Key parameters:
subreddit: Subreddit name
time_filter: Time range for top posts ('hour', 'day', 'week', 'month', 'year', 'all')
limit: Number of posts to retrieve
post_id: Specific post ID for full details
Pitfalls:
- Top posts with time_filter='all' returns all-time top content
- Post details include the body text but comments require a separate call
- Some posts may be removed or hidden based on subreddit rules
- NSFW posts are included unless filtered at the account level
5. Manage Posts
When to use: User wants to edit or delete their own posts
Tool sequence:
REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit a post's text content [Optional]
REDDIT_DELETE_REDDIT_POST - Delete a post [Optional]
REDDIT_GET_USER_FLAIR - Get user's flair in a subreddit [Optional]
Key parameters:
thing_id: Full name of the post (e.g., 't3_abc123')
body: New text content (for editing)
subreddit: Subreddit name (for flair)
Pitfalls:
- Only text posts can have their body edited; link posts cannot be modified
- Post titles cannot be edited after submission
- Deletion is permanent; deleted posts show as '[deleted]'
- User flair is per-subreddit and may be restricted
Common Patterns
Reddit Fullname Format
Prefixes:
t1_ = Comment (e.g., 't1_abc123')
t2_ = Account (e.g., 't2_xyz789')
t3_ = Post/Link (e.g., 't3_def456')
t4_ = Message
t5_ = Subreddit
Usage:
1. Retrieve a post to get its fullname (t3_XXXXX)
2. Use fullname as parent_id when commenting
3. Use fullname as thing_id when editing/deleting
Pagination
- Reddit uses cursor-based pagination with 'after' and 'before' tokens
- Set
limit for items per page (max 100)
- Check response for
after token
- Pass
after value in subsequent requests to get next page
Flair Resolution
1. Call REDDIT_LIST_SUBREDDIT_POST_FLAIRS with subreddit name
2. Find matching flair by text or category
3. Extract flair_id
4. Include flair_id when creating the post
Known Pitfalls
Rate Limits:
- Reddit enforces rate limits per account and per OAuth app
- Posting is limited to approximately 1 post per 10 minutes for new accounts
- Commenting has similar but less restrictive limits
- 429 errors should trigger exponential backoff
Content Rules:
- Each subreddit has its own posting rules and requirements
- Some subreddits are restricted or private
- Karma requirements may prevent posting in certain subreddits
- Auto-moderator rules may remove posts that match certain patterns
ID Formats:
- Always use fullname format (with prefix) for parent_id and thing_id
- Raw IDs without prefix will cause 'Invalid ID' errors
- Post IDs from search results may need 't3_' prefix added
Text Formatting:
- Reddit uses Markdown for post and comment formatting
- Code blocks, tables, and headers are supported
- Links use
[text](url) format
- Mention users with
u/username, subreddits with r/subreddit
Quick Reference
| Task |
Tool Slug |
Key Params |
| Search Reddit |
REDDIT_SEARCH_ACROSS_SUBREDDITS |
query, subreddit, sort, time_filter |
| Create post |
REDDIT_CREATE_REDDIT_POST |
subreddit, title, text/url |
| Get post comments |
REDDIT_RETRIEVE_POST_COMMENTS |
post_id |
| Add comment |
REDDIT_POST_REDDIT_COMMENT |
parent_id, body |
| Edit comment/post |
REDDIT_EDIT_REDDIT_COMMENT_OR_POST |
thing_id, body |
| Delete comment |
REDDIT_DELETE_REDDIT_COMMENT |
thing_id |
| Delete post |
REDDIT_DELETE_REDDIT_POST |
thing_id |
| Get top posts |
REDDIT_GET_R_TOP |
subreddit, time_filter, limit |
| Browse subreddit |
REDDIT_GET |
subreddit |
| Get post details |
REDDIT_RETRIEVE_REDDIT_POST |
post_id |
| Get specific comment |
REDDIT_RETRIEVE_SPECIFIC_COMMENT |
comment_id |
| List post flairs |
REDDIT_LIST_SUBREDDIT_POST_FLAIRS |
subreddit |
| Get user flair |
REDDIT_GET_USER_FLAIR |
subreddit |
1---2name: reddit-automation3description: Automate Reddit tasks via Rube MCP (Composio): search subreddits, create posts, manage comments, and browse top content. Always search tools first for current schemas.4---5
6# Reddit Automation via Rube MCP
7
8Automate Reddit operations through Composio's Reddit toolkit via Rube MCP.
9
10## Prerequisites
11
12- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
13- Active Reddit connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `reddit`
14- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas
15
16## Setup
17
18**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
19
20
211. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds
222. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `reddit`
233. If connection is not ACTIVE, follow the returned auth link to complete Reddit OAuth
244. Confirm connection status shows ACTIVE before running any workflows
25
26## Core Workflows
27
28### 1. Search Reddit
29
30**When to use**: User wants to find posts across subreddits
31
32**Tool sequence**:
331. `REDDIT_SEARCH_ACROSS_SUBREDDITS` - Search for posts matching a query [Required]
34
35**Key parameters**:
36- `query`: Search terms
37- `subreddit`: Limit search to a specific subreddit (optional)
38- `sort`: Sort results by 'relevance', 'hot', 'top', 'new', 'comments'
39- `time_filter`: Time range ('hour', 'day', 'week', 'month', 'year', 'all')
40- `limit`: Number of results to return
41
42**Pitfalls**:
43- Search results may not include very recent posts due to indexing delay
44- The `time_filter` parameter only works with certain sort options
45- Results are paginated; use after/before tokens for additional pages
46- NSFW content may be filtered based on account settings
47
48### 2. Create Posts
49
50**When to use**: User wants to submit a new post to a subreddit
51
52**Tool sequence**:
531. `REDDIT_LIST_SUBREDDIT_POST_FLAIRS` - Get available post flairs [Optional]
542. `REDDIT_CREATE_REDDIT_POST` - Submit the post [Required]
55
56**Key parameters**:
57- `subreddit`: Target subreddit name (without 'r/' prefix)
58- `title`: Post title
59- `text`: Post body text (for text posts)
60- `url`: Link URL (for link posts)
61- `flair_id`: Flair ID from the subreddit's flair list
62
63**Pitfalls**:
64- Some subreddits require flair; use LIST_SUBREDDIT_POST_FLAIRS first
65- Subreddit posting rules vary widely; karma/age restrictions may apply
66- Text and URL are mutually exclusive; a post is either text or link
67- Rate limits apply; avoid rapid successive post creation
68- The subreddit name should not include 'r/' prefix
69
70### 3. Manage Comments
71
72**When to use**: User wants to comment on posts or manage existing comments
73
74**Tool sequence**:
751. `REDDIT_RETRIEVE_POST_COMMENTS` - Get comments on a post [Optional]
762. `REDDIT_POST_REDDIT_COMMENT` - Add a comment to a post or reply to a comment [Required]
773. `REDDIT_EDIT_REDDIT_COMMENT_OR_POST` - Edit an existing comment [Optional]
784. `REDDIT_DELETE_REDDIT_COMMENT` - Delete a comment [Optional]
79
80**Key parameters**:
81- `post_id`: ID of the post (for retrieving or commenting on)
82- `parent_id`: Full name of the parent (e.g., 't3_abc123' for post, 't1_xyz789' for comment)
83- `body`: Comment text content
84- `thing_id`: Full name of the item to edit or delete
85
86**Pitfalls**:
87- Reddit uses 'fullname' format: 't1_' prefix for comments, 't3_' for posts
88- Editing replaces the entire comment body; include all desired content
89- Deleted comments show as '[deleted]' but the tree structure remains
90- Comment depth limits may apply in some subreddits
91
92### 4. Browse Subreddit Content
93
94**When to use**: User wants to view top or trending content from a subreddit
95
96**Tool sequence**:
971. `REDDIT_GET_R_TOP` - Get top posts from a subreddit [Required]
982. `REDDIT_GET` - Get posts from a subreddit endpoint [Alternative]
993. `REDDIT_RETRIEVE_REDDIT_POST` - Get full details for a specific post [Optional]
100
101**Key parameters**:
102- `subreddit`: Subreddit name
103- `time_filter`: Time range for top posts ('hour', 'day', 'week', 'month', 'year', 'all')
104- `limit`: Number of posts to retrieve
105- `post_id`: Specific post ID for full details
106
107**Pitfalls**:
108- Top posts with time_filter='all' returns all-time top content
109- Post details include the body text but comments require a separate call
110- Some posts may be removed or hidden based on subreddit rules
111- NSFW posts are included unless filtered at the account level
112
113### 5. Manage Posts
114
115**When to use**: User wants to edit or delete their own posts
116
117**Tool sequence**:
1181. `REDDIT_EDIT_REDDIT_COMMENT_OR_POST` - Edit a post's text content [Optional]
1192. `REDDIT_DELETE_REDDIT_POST` - Delete a post [Optional]
1203. `REDDIT_GET_USER_FLAIR` - Get user's flair in a subreddit [Optional]
121
122**Key parameters**:
123- `thing_id`: Full name of the post (e.g., 't3_abc123')
124- `body`: New text content (for editing)
125- `subreddit`: Subreddit name (for flair)
126
127**Pitfalls**:
128- Only text posts can have their body edited; link posts cannot be modified
129- Post titles cannot be edited after submission
130- Deletion is permanent; deleted posts show as '[deleted]'
131- User flair is per-subreddit and may be restricted
132
133## Common Patterns
134
135### Reddit Fullname Format
136
137**Prefixes**:
138```
139t1_ = Comment (e.g., 't1_abc123')
140t2_ = Account (e.g., 't2_xyz789')
141t3_ = Post/Link (e.g., 't3_def456')
142t4_ = Message
143t5_ = Subreddit
144```
145
146**Usage**:
147```
1481. Retrieve a post to get its fullname (t3_XXXXX)
1492. Use fullname as parent_id when commenting
1503. Use fullname as thing_id when editing/deleting
151```
152
153### Pagination
154
155- Reddit uses cursor-based pagination with 'after' and 'before' tokens
156- Set `limit` for items per page (max 100)
157- Check response for `after` token
158- Pass `after` value in subsequent requests to get next page
159
160### Flair Resolution
161
162```
1631. Call REDDIT_LIST_SUBREDDIT_POST_FLAIRS with subreddit name
1642. Find matching flair by text or category
1653. Extract flair_id
1664. Include flair_id when creating the post
167```
168
169## Known Pitfalls
170
171**Rate Limits**:
172- Reddit enforces rate limits per account and per OAuth app
173- Posting is limited to approximately 1 post per 10 minutes for new accounts
174- Commenting has similar but less restrictive limits
175- 429 errors should trigger exponential backoff
176
177**Content Rules**:
178- Each subreddit has its own posting rules and requirements
179- Some subreddits are restricted or private
180- Karma requirements may prevent posting in certain subreddits
181- Auto-moderator rules may remove posts that match certain patterns
182
183**ID Formats**:
184- Always use fullname format (with prefix) for parent_id and thing_id
185- Raw IDs without prefix will cause 'Invalid ID' errors
186- Post IDs from search results may need 't3_' prefix added
187
188**Text Formatting**:
189- Reddit uses Markdown for post and comment formatting
190- Code blocks, tables, and headers are supported
191- Links use `[text](url)` format
192- Mention users with `u/username`, subreddits with `r/subreddit`
193
194## Quick Reference
195
196| Task | Tool Slug | Key Params |
197|------|-----------|------------|
198| Search Reddit | REDDIT_SEARCH_ACROSS_SUBREDDITS | query, subreddit, sort, time_filter |
199| Create post | REDDIT_CREATE_REDDIT_POST | subreddit, title, text/url |
200| Get post comments | REDDIT_RETRIEVE_POST_COMMENTS | post_id |
201| Add comment | REDDIT_POST_REDDIT_COMMENT | parent_id, body |
202| Edit comment/post | REDDIT_EDIT_REDDIT_COMMENT_OR_POST | thing_id, body |
203| Delete comment | REDDIT_DELETE_REDDIT_COMMENT | thing_id |
204| Delete post | REDDIT_DELETE_REDDIT_POST | thing_id |
205| Get top posts | REDDIT_GET_R_TOP | subreddit, time_filter, limit |
206| Browse subreddit | REDDIT_GET | subreddit |
207| Get post details | REDDIT_RETRIEVE_REDDIT_POST | post_id |
208| Get specific comment | REDDIT_RETRIEVE_SPECIFIC_COMMENT | comment_id |
209| List post flairs | REDDIT_LIST_SUBREDDIT_POST_FLAIRS | subreddit |
210| Get user flair | REDDIT_GET_USER_FLAIR | subreddit |