redditapis-mcp 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +9 -9
- package/package.json +2 -2
- package/src/tools.js +27 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0 (2026-11-07)
|
|
4
|
+
|
|
5
|
+
### Self-post bodies on search, on request
|
|
6
|
+
|
|
7
|
+
No new tools; one tool gains an optional parameter.
|
|
8
|
+
|
|
9
|
+
- `reddit_search`: optional boolean `include_bodies`. `true` reads the self-post bodies (`text`, `is_self`) the search page left null, on up to 25 posts. Default `false`: the page as served, where bodies the free listing fill reached are present and the rest stay null. The description now says so, so a caller can tell a missing body from an empty one.
|
|
10
|
+
|
|
11
|
+
Needs the API release that accepts `include_bodies` on `GET /api/reddit/search` (live since 2026-11-06). test/format-details.test.mjs checks it reaches the query string, and is left out when absent.
|
|
12
|
+
|
|
13
|
+
## 0.17.0 (2026-11-06)
|
|
14
|
+
|
|
15
|
+
### Normalized comment trees, and list details on request
|
|
16
|
+
|
|
17
|
+
No new tools; five tools gain an optional parameter, and a minor release because the tool surface grows.
|
|
18
|
+
|
|
19
|
+
- `reddit_post_comments`: optional `format`, `raw` or `normalized`. Absent is `raw`, unchanged (Reddit's `{kind, data}` tree). `normalized` returns flat comments with `id`, `author`, `body`, `subreddit`, `upvotes`, `score_hidden`, `permalink`, `url`, `post_id`, `parent_id`, `is_submitter`, `created`, `depth` and `replies` (nested in the same shape), load-more stubs dropped, and `meta.format: "normalized"`. The description now says that with no `sort` sent, `meta.sort_used` names the sort Reddit applied and `meta.sort_defaulted` is `true`.
|
|
20
|
+
- `reddit_search_users`: optional boolean `include_details`. `true` fills `link_karma`, `comment_karma` and `created` on up to the first 10 users, from one extra read per user. Default `false`.
|
|
21
|
+
- `reddit_subreddits_popular`, `reddit_subreddits_new`, `reddit_subreddits_default`: optional boolean `include_details`. `true` fills `created` on up to the first 10 subreddits. Default `false`.
|
|
22
|
+
- Descriptions name the fields the API now returns so a caller can tell a gap from a value: `meta.unavailable_fields` on the user search and subreddit lists, `sort_requested` and `sort_served` on `reddit_subreddit_posts` when a signed-out `rising` read is served as hot, `url_masked` on `reddit_monitor_webhook_list`, and `attempts` and `retries` on `reddit_monitor_deliveries`.
|
|
23
|
+
|
|
24
|
+
Needs the API release that accepts `format` on `GET /api/reddit/comments` and `include_details` on the user search and subreddit list routes. test/format-details.test.mjs checks each parameter reaches the query string, and is left out when absent.
|
|
25
|
+
|
|
3
26
|
## 0.16.0 (2026-11-04)
|
|
4
27
|
|
|
5
28
|
### Reddit ads library search
|
package/README.md
CHANGED
|
@@ -117,19 +117,19 @@ A few conventions across the catalog:
|
|
|
117
117
|
|
|
118
118
|
| Tool | Endpoint | What it does |
|
|
119
119
|
|---|---|---|
|
|
120
|
-
| `reddit_search` | `GET /api/reddit/search` | Search posts across all of Reddit or within one subreddit (`subreddit`). |
|
|
120
|
+
| `reddit_search` | `GET /api/reddit/search` | Search posts across all of Reddit or within one subreddit (`subreddit`). `include_bodies=true` fills self-post bodies the search page left null, on up to 25 posts. |
|
|
121
121
|
| `reddit_search_comments` | `GET /api/reddit/search/comments` | Search by comment text; returns the parent posts, since Reddit's comment search does not hand back the matching comment itself. |
|
|
122
122
|
| `reddit_deep_comment_search` | `GET /api/reddit/search/comments/deep` | Genuine comment search: returns the actual matching comment bodies (score, author, comment-deep permalink, parent post). `limit` sets how many parent posts to expand; `group_by="author"` switches to research mode (the distinct people talking about your query). Premium call. |
|
|
123
123
|
| `reddit_search_media` | `GET /api/reddit/search/media` | Search posts filtered to media, narrowed by `kind` (`image`, `video`, `gif`, `all`). |
|
|
124
124
|
| `reddit_search_communities` | `GET /api/reddit/search/communities` | Find subreddits by name or topic (title, subscribers, description, NSFW flag). |
|
|
125
|
-
| `reddit_search_users` | `GET /api/reddit/search/users` | Find redditors by name or keyword (username, karma, account age). |
|
|
125
|
+
| `reddit_search_users` | `GET /api/reddit/search/users` | Find redditors by name or keyword (username, karma, account age). `include_details: true` fills `link_karma`, `comment_karma` and `created` on up to the first 10 users. |
|
|
126
126
|
| `reddit_ads_search` | `GET /api/reddit/ads/search` | Search the Reddit ads library: promoted posts with advertiser, title, landing page, call to action, media, every subreddit each ad appeared in, first and last seen dates and sightings. Filter by `q`, `advertiser`, `domain`, `subreddit`, `campaign_id`, `since` and `until`. Reddit's own house ads are excluded. Newest first; page with `cursor` (the previous response's `after`). Returns `ads`, `count`, `after` and `has_more`. Billed at the read rate, the same as `reddit_search`. |
|
|
127
127
|
|
|
128
128
|
### Subreddits
|
|
129
129
|
|
|
130
130
|
| Tool | Endpoint | What it does |
|
|
131
131
|
|---|---|---|
|
|
132
|
-
| `reddit_subreddit_posts` | `GET /api/reddit/posts` | List a subreddit's posts by `sort` (`new`, `hot`, `top`, `rising`, `controversial`, `best`). |
|
|
132
|
+
| `reddit_subreddit_posts` | `GET /api/reddit/posts` | List a subreddit's posts by `sort` (`new`, `hot`, `top`, `rising`, `controversial`, `best`). A signed-out `rising` read is served as hot and says so in `sort_served`. |
|
|
133
133
|
| `reddit_feedback_list` | `GET /feedback` | List the reports this account has sent, newest first, with their status. The way back to a report whose id was not kept. Free. |
|
|
134
134
|
| `reddit_verify_comments` | `POST /api/reddit/comments/verify` | Check whether up to 100 specific comments still exist and are publicly visible. A read despite the POST; tells 'deleted by author' from 'removed by a mod' from 'still there'. |
|
|
135
135
|
| `reddit_home_feed` | `GET /api/reddit/feed` | Read YOUR OWN Reddit home feed. Needs your `reddit_session` and `loid` from `POST /api/reddit/login` (a REST call, not an MCP tool); they travel as headers, never in the URL. |
|
|
@@ -147,7 +147,7 @@ A few conventions across the catalog:
|
|
|
147
147
|
|---|---|---|
|
|
148
148
|
| `reddit_post_visibility` | `GET /api/reddit/post/{id}/visibility` | Is a post still publicly visible, or did it quietly stop being so? Fetches the post and one page of its author's listing and compares. Returns `live`, `not_visible` or `undecidable` with a reason, and never claims to know WHY. Two upstream calls, $0.004. |
|
|
149
149
|
| `reddit_post` | `GET /api/reddit/post/{id}` | A single post by its base-36 `id` (no `t3_` prefix): title, author, score, text, permalink, subreddit, url. |
|
|
150
|
-
| `reddit_post_comments` | `GET /api/reddit/comments` | A post plus its full threaded comment tree, fetched by `permalink`. |
|
|
150
|
+
| `reddit_post_comments` | `GET /api/reddit/comments` | A post plus its full threaded comment tree, fetched by `permalink`. `format: "normalized"` returns flat comments instead of Reddit's raw tree. |
|
|
151
151
|
| `reddit_post_duplicates` | `GET /api/reddit/post/{id}/duplicates` | Every other post that shares this post's link, across subreddits (Reddit's "other discussions"). |
|
|
152
152
|
| `reddit_by_id` | `GET /api/reddit/by_id/{fullnames}` | Bulk-hydrate up to 100 posts in one call from a comma-separated list of `t3_` fullnames. |
|
|
153
153
|
|
|
@@ -164,9 +164,9 @@ A few conventions across the catalog:
|
|
|
164
164
|
|
|
165
165
|
| Tool | Endpoint | What it does |
|
|
166
166
|
|---|---|---|
|
|
167
|
-
| `reddit_subreddits_popular` | `GET /api/reddit/subreddits/popular` | Browse the most-subscribed, trending subreddits right now. |
|
|
168
|
-
| `reddit_subreddits_new` | `GET /api/reddit/subreddits/new` | Browse the newest subreddits, most recently created first. |
|
|
169
|
-
| `reddit_subreddits_default` | `GET /api/reddit/subreddits/default` | Browse Reddit's default front-page set of subreddits. |
|
|
167
|
+
| `reddit_subreddits_popular` | `GET /api/reddit/subreddits/popular` | Browse the most-subscribed, trending subreddits right now. `include_details: true` fills `created` on up to the first 10. |
|
|
168
|
+
| `reddit_subreddits_new` | `GET /api/reddit/subreddits/new` | Browse the newest subreddits, most recently created first. `include_details: true` fills `created` on up to the first 10. |
|
|
169
|
+
| `reddit_subreddits_default` | `GET /api/reddit/subreddits/default` | Browse Reddit's default front-page set of subreddits. `include_details: true` fills `created` on up to the first 10. |
|
|
170
170
|
|
|
171
171
|
### Monitoring: manage your own monitors and webhooks
|
|
172
172
|
|
|
@@ -182,9 +182,9 @@ Monitors watch **named subreddits or all of Reddit**, for **posts or comments**
|
|
|
182
182
|
| `reddit_monitor_update` | `POST /api/reddit/monitor/update` | Pause/resume (`active`), re-cadence, or replace a monitor's filter. Passing any filter field REPLACES the whole filter -- resupply everything you want kept. |
|
|
183
183
|
| `reddit_monitor_remove` | `POST /api/reddit/monitor/remove` | Permanently delete a monitor. Cannot be undone. |
|
|
184
184
|
| `reddit_monitor_health` | `GET /api/reddit/monitor/health` | Per-monitor delivered/failed/suppressed counts (last 24h), `suppressed_breakdown` splitting those suppressions into `ceiling` and `stale` reasons, and whether the delivery ceiling specifically has been hit. |
|
|
185
|
-
| `reddit_monitor_deliveries` | `GET /api/reddit/monitor/deliveries` | The actual posts delivered (or attempted), newest first, with real content -- not just counts. Omit `id` to aggregate across every monitor you own. |
|
|
185
|
+
| `reddit_monitor_deliveries` | `GET /api/reddit/monitor/deliveries` | The actual posts delivered (or attempted), newest first, with real content -- not just counts. Omit `id` to aggregate across every monitor you own. Each row carries `attempts` and `retries`. |
|
|
186
186
|
| `reddit_monitor_webhook_create` | `POST /api/reddit/monitor/webhook/create` | Register a delivery target (`webhook`/`slack`/`discord`). Returns a signing secret shown ONCE. |
|
|
187
|
-
| `reddit_monitor_webhook_list` | `GET /api/reddit/monitor/webhook/list` | List your webhooks. Never returns the secret. |
|
|
187
|
+
| `reddit_monitor_webhook_list` | `GET /api/reddit/monitor/webhook/list` | List your webhooks. Never returns the secret; a Slack or Discord URL comes back masked (`url_masked: true`). |
|
|
188
188
|
| `reddit_monitor_webhook_test` | `POST /api/reddit/monitor/webhook/test` | Send a one-off test delivery to confirm a webhook is wired up correctly. |
|
|
189
189
|
| `reddit_monitor_webhook_delete` | `POST /api/reddit/monitor/webhook/delete` | Permanently delete a webhook. Does not cascade-pause monitors still pointing at it. |
|
|
190
190
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redditapis-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"mcpName": "io.github.redditapis/redditapis-mcp",
|
|
5
5
|
"description": "Official MCP server for redditapis.com. Search Reddit posts, comments, communities, users and media; read subreddits, comment trees and profiles; search the Reddit ads library; manage monitors and webhooks. Works with Claude, Cursor and any MCP client.",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"start": "node src/index.js",
|
|
33
33
|
"check": "node --check src/index.js && node --check src/tools.js && node --check src/feedback.js && node --check src/server.js && node --check src/watch.js && node --check src/watch-text.js && node --check src/provenance.js && node --check src/playbooks.js && node --check src/annotations.js",
|
|
34
|
-
"test": "node test/tools.test.mjs && node test/watch.test.mjs && node test/watch-invariants.test.mjs && node test/provenance.test.mjs && node test/playbooks.test.mjs && node test/description-compliance.test.mjs && node test/inline-credentials.test.mjs && node test/feedback.test.mjs && node test/index-lasterror.test.mjs && node test/scannable-without-key.test.mjs && node test/per-caller-state.test.mjs && node test/paywall.test.mjs && node test/remote-host.test.mjs && node test/hub-parity.test.mjs && node test/version-parity.test.mjs && node test/readme-opening.test.mjs && node test/annotations.test.mjs && node test/read-price.test.mjs && node test/flairs-schedule.test.mjs && node test/ads-search.test.mjs",
|
|
34
|
+
"test": "node test/tools.test.mjs && node test/watch.test.mjs && node test/watch-invariants.test.mjs && node test/provenance.test.mjs && node test/playbooks.test.mjs && node test/description-compliance.test.mjs && node test/inline-credentials.test.mjs && node test/feedback.test.mjs && node test/index-lasterror.test.mjs && node test/scannable-without-key.test.mjs && node test/per-caller-state.test.mjs && node test/paywall.test.mjs && node test/remote-host.test.mjs && node test/hub-parity.test.mjs && node test/version-parity.test.mjs && node test/readme-opening.test.mjs && node test/annotations.test.mjs && node test/read-price.test.mjs && node test/flairs-schedule.test.mjs && node test/ads-search.test.mjs && node test/format-details.test.mjs",
|
|
35
35
|
"prepublishOnly": "node scripts/prepublish-tenant-check.mjs",
|
|
36
36
|
"postpublish": "node scripts/postpublish.mjs",
|
|
37
37
|
"check:registry-drift": "node scripts/registry-drift.mjs",
|
package/src/tools.js
CHANGED
|
@@ -83,6 +83,14 @@ const TIME_SEARCH = {
|
|
|
83
83
|
"Time window that bounds which posts the search returns, e.g. 'week' = only posts from the past week. Unlike a subreddit listing, search applies this to the 'relevance' and 'top' sorts too. When omitted, Reddit defaults to 'all', so a broad 'relevance' query surfaces old high-upvote posts that only loosely match; 'week' or 'month' keeps results recent and on topic.",
|
|
84
84
|
),
|
|
85
85
|
};
|
|
86
|
+
// Up to the first 10 items get the fields a list page does not carry, from one
|
|
87
|
+
// extra read per item. Default false; the API owns the cap.
|
|
88
|
+
const includeDetails = (fields) => ({
|
|
89
|
+
include_details: z.boolean().optional().describe(
|
|
90
|
+
`true fills ${fields} on up to the first 10 items, from one extra read per item, so the page answers slower. false or omitted (default) returns the list page as served, where those fields may be null and \`meta.unavailable_fields\` names them.`,
|
|
91
|
+
),
|
|
92
|
+
});
|
|
93
|
+
|
|
86
94
|
const NSFW = {
|
|
87
95
|
nsfw: z.enum(["true", "false"]).optional().describe(
|
|
88
96
|
"'true' includes over-18 / NSFW results; 'false' or omitted excludes them (default).",
|
|
@@ -222,7 +230,7 @@ export const TOOLS = [
|
|
|
222
230
|
name: "reddit_subreddit_posts",
|
|
223
231
|
path: "/api/reddit/posts",
|
|
224
232
|
description:
|
|
225
|
-
"Lists posts from a subreddit by sort order: newest, hot, top of a time window, rising, controversial or best. Returns post title, author, score, comment count, and permalink, plus an `after` cursor for paging. When `after` comes back null the response carries `listing_status`: `complete` means no older posts and is only claimed when the whole run came back in under one page, `truncated` means Reddit's cap cut the listing off, and `unknown` means completeness could not be established. A busy feed that Reddit stops serving reports `unknown`, not `complete`. Example: subreddit='programming' sort='top' t='week'.",
|
|
233
|
+
"Lists posts from a subreddit by sort order: newest, hot, top of a time window, rising, controversial or best. Returns post title, author, score, comment count, and permalink, plus an `after` cursor for paging. When `after` comes back null the response carries `listing_status`: `complete` means no older posts and is only claimed when the whole run came back in under one page, `truncated` means Reddit's cap cut the listing off, and `unknown` means completeness could not be established. A busy feed that Reddit stops serving reports `unknown`, not `complete`. A signed-out `rising` read is served as hot: the response then carries `sort_requested: 'rising'` and `sort_served: 'hot'`. Example: subreddit='programming' sort='top' t='week'.",
|
|
226
234
|
shape: {
|
|
227
235
|
subreddit: z.string().min(1).describe(
|
|
228
236
|
"Subreddit name WITHOUT the r/ prefix (e.g. 'programming', 'AskReddit'). Required.",
|
|
@@ -265,7 +273,7 @@ export const TOOLS = [
|
|
|
265
273
|
name: "reddit_search",
|
|
266
274
|
path: "/api/reddit/search",
|
|
267
275
|
description:
|
|
268
|
-
"Searches Reddit posts across all of Reddit or within one subreddit. Returns matching posts with author, score, comments, permalink, and an `after` cursor. `subreddit` scopes the search to one community. Optional advanced filters narrow the results by minimum/maximum score, comment count, media type, and post flags, with an optional re-sort of the page. Filters apply to the returned page, so a filtered response carries a `meta` object with page-completeness counts, and the next page comes from `after`. SORT BEHAVIOUR, measured 2026-09-11: `top`, `new` and `comments` order the MATCHING set by score, date or comment count alone, and Reddit matches loosely (image OCR, comments, and the word 'reddit' is in almost every big post), so a generic multi-word query with sort='top' and no subreddit returns the site-wide viral listing, not the topic. Even a distinctive term is ranked by score alone (q='pgvector' sort='top': 1 of 5 results was about pgvector, the rest were large posts that mention it once). Best match then highest score comes from sort='relevance' with a large `limit`, where sort_type='score' re-orders that returned page (it does not reach past the page); a quoted phrase (q='\"rust vs go\"') or a `subreddit` scope also narrows the matching set. Example: q='rust vs go' sort='relevance' t='year' limit=100 sort_type='score'.",
|
|
276
|
+
"Searches Reddit posts across all of Reddit or within one subreddit. Returns matching posts with author, score, comments, permalink, and an `after` cursor. `subreddit` scopes the search to one community. Optional advanced filters narrow the results by minimum/maximum score, comment count, media type, and post flags, with an optional re-sort of the page. Filters apply to the returned page, so a filtered response carries a `meta` object with page-completeness counts, and the next page comes from `after`. SORT BEHAVIOUR, measured 2026-09-11: `top`, `new` and `comments` order the MATCHING set by score, date or comment count alone, and Reddit matches loosely (image OCR, comments, and the word 'reddit' is in almost every big post), so a generic multi-word query with sort='top' and no subreddit returns the site-wide viral listing, not the topic. Even a distinctive term is ranked by score alone (q='pgvector' sort='top': 1 of 5 results was about pgvector, the rest were large posts that mention it once). Best match then highest score comes from sort='relevance' with a large `limit`, where sort_type='score' re-orders that returned page (it does not reach past the page); a quoted phrase (q='\"rust vs go\"') or a `subreddit` scope also narrows the matching set. Search pages may leave `text` and `is_self` null on older self posts; `include_bodies=true` fills them on up to 25 posts. Example: q='rust vs go' sort='relevance' t='year' limit=100 sort_type='score'.",
|
|
269
277
|
shape: {
|
|
270
278
|
...QUERY,
|
|
271
279
|
subreddit: z.string().optional().describe(
|
|
@@ -288,6 +296,9 @@ export const TOOLS = [
|
|
|
288
296
|
spoiler: z.boolean().optional().describe("Filters by the spoiler flag."),
|
|
289
297
|
contest_mode: z.boolean().optional().describe("Filters by the contest_mode flag."),
|
|
290
298
|
sort_type: z.enum(["score", "num_comments", "created"]).optional().describe("Re-sorts the filtered page (descending) by this field. Page-local: it re-orders only the posts this call returned, not the whole result set, so its reach is bounded by `limit`."),
|
|
299
|
+
include_bodies: z.boolean().optional().describe(
|
|
300
|
+
"true also reads the self-post bodies (`text`, `is_self`) the search page left null, on up to 25 posts, so the page answers slower. false or omitted (default) returns the page as served: bodies the free listing fill reached are present, the rest stay null; reading the post by id returns its body.",
|
|
301
|
+
),
|
|
291
302
|
},
|
|
292
303
|
},
|
|
293
304
|
{
|
|
@@ -303,7 +314,7 @@ export const TOOLS = [
|
|
|
303
314
|
name: "reddit_post_comments",
|
|
304
315
|
path: "/api/reddit/comments",
|
|
305
316
|
description:
|
|
306
|
-
"Fetches a single post and its comment tree by permalink. Returns the post plus threaded comments (author, body, score, replies) and an `after` cursor. The `permalink` is the one carried by any post result. Size a big thread with the three knobs: `limit` caps top-level comments (1-500, default 100), `depth` caps reply depth (1-10; `depth=1` is top-level only; absent is the full tree) and `sort` orders them (confidence = Reddit's best, top, new, controversial, old, qa). `limit=20, depth=1, sort='top'` reads the twenty best top-level comments and nothing below them, which keeps a 2,700-comment thread readable. `meta` echoes limit_used, depth_used and sort_used.",
|
|
317
|
+
"Fetches a single post and its comment tree by permalink. Returns the post plus threaded comments (author, body, score, replies) and an `after` cursor. The `permalink` is the one carried by any post result. Size a big thread with the three knobs: `limit` caps top-level comments (1-500, default 100), `depth` caps reply depth (1-10; `depth=1` is top-level only; absent is the full tree) and `sort` orders them (confidence = Reddit's best, top, new, controversial, old, qa). `limit=20, depth=1, sort='top'` reads the twenty best top-level comments and nothing below them, which keeps a 2,700-comment thread readable. `meta` echoes limit_used, depth_used and sort_used; with no `sort` sent, sort_used names the sort Reddit applied and sort_defaulted is true. `format='normalized'` returns flat comments instead of Reddit's raw tree.",
|
|
307
318
|
shape: {
|
|
308
319
|
permalink: z.string().min(1).describe(
|
|
309
320
|
"The post permalink path from a prior post result, e.g. '/r/programming/comments/abc123/some_title/'. Required.",
|
|
@@ -317,6 +328,9 @@ export const TOOLS = [
|
|
|
317
328
|
sort: z.enum(["confidence", "top", "new", "controversial", "old", "qa"]).optional().describe(
|
|
318
329
|
"Comment ordering: confidence (Reddit's best), top, new, controversial, old or qa. Absent, Reddit's default for the thread.",
|
|
319
330
|
),
|
|
331
|
+
format: z.enum(["raw", "normalized"]).optional().describe(
|
|
332
|
+
"raw (default, unchanged): Reddit's {kind, data} tree. normalized: flat comments with id, author, body, subreddit, upvotes, score_hidden, permalink, url, post_id, parent_id, is_submitter, created, depth and replies (nested in the same shape); load-more stubs are dropped and `meta.format` is 'normalized'.",
|
|
333
|
+
),
|
|
320
334
|
},
|
|
321
335
|
},
|
|
322
336
|
{
|
|
@@ -391,8 +405,8 @@ export const TOOLS = [
|
|
|
391
405
|
name: "reddit_search_users",
|
|
392
406
|
path: "/api/reddit/search/users",
|
|
393
407
|
description:
|
|
394
|
-
"Searches for Reddit users (redditors) by name or keyword. Returns matching accounts with username, karma, and account age. Example: q='spez'.",
|
|
395
|
-
shape: { ...QUERY, ...AFTER, ...NSFW, ...LIMIT },
|
|
408
|
+
"Searches for Reddit users (redditors) by name or keyword. Returns matching accounts with username, karma, and account age. The search page may not carry link_karma, comment_karma or created; `meta.unavailable_fields` then names them, and `include_details=true` fills them on up to the first 10 users. Example: q='spez'.",
|
|
409
|
+
shape: { ...QUERY, ...AFTER, ...NSFW, ...LIMIT, ...includeDetails("link_karma, comment_karma and created") },
|
|
396
410
|
},
|
|
397
411
|
{
|
|
398
412
|
// The ads library: an index of promoted posts, read at the read rate like
|
|
@@ -649,22 +663,22 @@ export const TOOLS = [
|
|
|
649
663
|
name: "reddit_subreddits_popular",
|
|
650
664
|
path: "/api/reddit/subreddits/popular",
|
|
651
665
|
description:
|
|
652
|
-
"Browses the most-subscribed, trending subreddits right now, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging.",
|
|
653
|
-
shape: { ...AFTER, ...LIMIT },
|
|
666
|
+
"Browses the most-subscribed, trending subreddits right now, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
|
|
667
|
+
shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
|
|
654
668
|
},
|
|
655
669
|
{
|
|
656
670
|
name: "reddit_subreddits_new",
|
|
657
671
|
path: "/api/reddit/subreddits/new",
|
|
658
672
|
description:
|
|
659
|
-
"Browses the newest subreddits, the communities most recently created, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging.",
|
|
660
|
-
shape: { ...AFTER, ...LIMIT },
|
|
673
|
+
"Browses the newest subreddits, the communities most recently created, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
|
|
674
|
+
shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
|
|
661
675
|
},
|
|
662
676
|
{
|
|
663
677
|
name: "reddit_subreddits_default",
|
|
664
678
|
path: "/api/reddit/subreddits/default",
|
|
665
679
|
description:
|
|
666
|
-
"Browses Reddit's default front-page set of subreddits, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging.",
|
|
667
|
-
shape: { ...AFTER, ...LIMIT },
|
|
680
|
+
"Browses Reddit's default front-page set of subreddits, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
|
|
681
|
+
shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
|
|
668
682
|
},
|
|
669
683
|
|
|
670
684
|
// ── monitoring: manage the caller's own account, never posts/votes/DMs Reddit itself ──
|
|
@@ -738,7 +752,7 @@ export const TOOLS = [
|
|
|
738
752
|
name: "reddit_monitor_deliveries",
|
|
739
753
|
path: "/api/reddit/monitor/deliveries",
|
|
740
754
|
description:
|
|
741
|
-
"Delivery history: the actual Reddit posts a monitor's webhook has received (or attempted), newest first, including the real post content (title, subreddit, permalink, author). It records what was sent, not only how many (the counts are in monitor health). Every delivered item also carries `payload.items[].enrichment`: a `relevance.score` (0-1, how much of THIS monitor's own keyword criteria the item matched; not a model's confidence), a `sentiment` (`polarity` -1 to 1 plus a positive/negative/mixed/neutral `label`), and an `intent.tag` (question, recommendation_request, complaint, promotion, praise, or discussion). All three are deterministic keyword, lexicon and rule heuristics computed at no extra cost; each carries its own `method` field and none of them is a machine-learning or LLM call. Without `id`, the history aggregates across every monitor on the account.",
|
|
755
|
+
"Delivery history: the actual Reddit posts a monitor's webhook has received (or attempted), newest first, including the real post content (title, subreddit, permalink, author). Each row also carries `attempts` (every send, including the one that succeeded) and `retries` (attempts - 1). It records what was sent, not only how many (the counts are in monitor health). Every delivered item also carries `payload.items[].enrichment`: a `relevance.score` (0-1, how much of THIS monitor's own keyword criteria the item matched; not a model's confidence), a `sentiment` (`polarity` -1 to 1 plus a positive/negative/mixed/neutral `label`), and an `intent.tag` (question, recommendation_request, complaint, promotion, praise, or discussion). All three are deterministic keyword, lexicon and rule heuristics computed at no extra cost; each carries its own `method` field and none of them is a machine-learning or LLM call. Without `id`, the history aggregates across every monitor on the account.",
|
|
742
756
|
shape: {
|
|
743
757
|
id: z.string().optional().describe("Narrows to one monitor's history. Absent, the history aggregates across every monitor on the account."),
|
|
744
758
|
status: z.enum(["pending", "delivered", "failed", "dead", "suppressed"]).optional().describe(
|
|
@@ -765,7 +779,7 @@ export const TOOLS = [
|
|
|
765
779
|
{
|
|
766
780
|
name: "reddit_monitor_webhook_list",
|
|
767
781
|
path: "/api/reddit/monitor/webhook/list",
|
|
768
|
-
description: "Lists every webhook registered on the caller's account. The signing secret is not included; it is shown once, at creation.",
|
|
782
|
+
description: "Lists every webhook registered on the caller's account. The signing secret is not included; it is shown once, at creation. A Slack or Discord URL is itself a secret, so it comes back masked with `url_masked: true`.",
|
|
769
783
|
shape: {},
|
|
770
784
|
},
|
|
771
785
|
{
|