redditapis-mcp 0.15.0 → 0.17.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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 (2026-11-06)
4
+
5
+ ### Normalized comment trees, and list details on request
6
+
7
+ No new tools; five tools gain an optional parameter, and a minor release because the tool surface grows.
8
+
9
+ - `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`.
10
+ - `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`.
11
+ - `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`.
12
+ - 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`.
13
+
14
+ 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.
15
+
16
+ ## 0.16.0 (2026-11-04)
17
+
18
+ ### Reddit ads library search
19
+
20
+ One new tool.
21
+
22
+ - `reddit_ads_search` (`GET /api/reddit/ads/search`): search the promoted posts advertisers run on Reddit. Each ad carries its advertiser, title, landing page, call to action, media, every subreddit it appeared in, first and last seen dates and sightings. Reddit's own house ads are excluded. Optional filters: `q` (title or advertiser text, up to 200 characters), `advertiser` (a `u/` prefix is stripped), `domain` (landing page hostname), `subreddit` (an `r/` prefix is stripped), `campaign_id`, `since` (ads last seen on or after it) and `until` (ads first seen on or before it), with `limit` 1 to 100 (default 25). Newest first; pass the previous response's `after` as `cursor` for the next page. Returns `{ ads, count, after, has_more }`. Billed at the read rate, the same as `reddit_search`.
23
+
24
+ 60 tools, 33 of them Reddit reads.
25
+
3
26
  ## 0.15.0 (2026-10-25)
4
27
 
5
28
  ### Post flairs, and posts and comments scheduled for later
package/README.md CHANGED
@@ -104,7 +104,7 @@ Authentication is a Bearer token: the server sends `Authorization: Bearer <REDDI
104
104
 
105
105
  ## Tools
106
106
 
107
- 59 tools and 3 playbook resources: 32 Reddit reads, 10 Reddit account tools (connect, status, disconnect, comment, submit, vote, DM, and schedule, list or cancel a post or comment for later), 10 monitor/webhook management tools, `reddit_set_watch` (one call that stands up a whole watch), `reddit_explain` (where the rows you are holding came from), 3 feedback tools, and 2 account tools (`reddit_account_me`, which is also where the credit balance lives, and `reddit_account_payments`, the top-up history). Reddit writes (commenting, posting, voting, DMs) act as YOUR Reddit account and only after you connect it with `reddit_connect`; each is marked as a write so your client asks before it runs. Monitor/webhook tools configure your OWN redditapis.com account (an alerting subscription), never Reddit itself, and the feedback tools send a report to the redditapis.com team, never to Reddit. Every read works with just your API key; the 6 monitor/webhook writes additionally need an active monitoring plan (see Monitoring below). The feedback tools are free and need only your key.
107
+ 60 tools and 3 playbook resources: 33 Reddit reads, 10 Reddit account tools (connect, status, disconnect, comment, submit, vote, DM, and schedule, list or cancel a post or comment for later), 10 monitor/webhook management tools, `reddit_set_watch` (one call that stands up a whole watch), `reddit_explain` (where the rows you are holding came from), 3 feedback tools, and 2 account tools (`reddit_account_me`, which is also where the credit balance lives, and `reddit_account_payments`, the top-up history). Reddit writes (commenting, posting, voting, DMs) act as YOUR Reddit account and only after you connect it with `reddit_connect`; each is marked as a write so your client asks before it runs. Monitor/webhook tools configure your OWN redditapis.com account (an alerting subscription), never Reddit itself, and the feedback tools send a report to the redditapis.com team, never to Reddit. Every read works with just your API key; the 6 monitor/webhook writes additionally need an active monitoring plan (see Monitoring below). The feedback tools are free and need only your key.
108
108
 
109
109
  A few conventions across the catalog:
110
110
 
@@ -122,13 +122,14 @@ A few conventions across the catalog:
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
+ | `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`. |
126
127
 
127
128
  ### Subreddits
128
129
 
129
130
  | Tool | Endpoint | What it does |
130
131
  |---|---|---|
131
- | `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`. |
132
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. |
133
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'. |
134
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. |
@@ -146,7 +147,7 @@ A few conventions across the catalog:
146
147
  |---|---|---|
147
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. |
148
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. |
149
- | `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. |
150
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"). |
151
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. |
152
153
 
@@ -163,9 +164,9 @@ A few conventions across the catalog:
163
164
 
164
165
  | Tool | Endpoint | What it does |
165
166
  |---|---|---|
166
- | `reddit_subreddits_popular` | `GET /api/reddit/subreddits/popular` | Browse the most-subscribed, trending subreddits right now. |
167
- | `reddit_subreddits_new` | `GET /api/reddit/subreddits/new` | Browse the newest subreddits, most recently created first. |
168
- | `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. |
169
170
 
170
171
  ### Monitoring: manage your own monitors and webhooks
171
172
 
@@ -181,9 +182,9 @@ Monitors watch **named subreddits or all of Reddit**, for **posts or comments**
181
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. |
182
183
  | `reddit_monitor_remove` | `POST /api/reddit/monitor/remove` | Permanently delete a monitor. Cannot be undone. |
183
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. |
184
- | `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`. |
185
186
  | `reddit_monitor_webhook_create` | `POST /api/reddit/monitor/webhook/create` | Register a delivery target (`webhook`/`slack`/`discord`). Returns a signing secret shown ONCE. |
186
- | `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`). |
187
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. |
188
189
  | `reddit_monitor_webhook_delete` | `POST /api/reddit/monitor/webhook/delete` | Permanently delete a webhook. Does not cascade-pause monitors still pointing at it. |
189
190
 
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "redditapis-mcp",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "mcpName": "io.github.redditapis/redditapis-mcp",
5
- "description": "Official MCP server for redditapis.com. Search Reddit posts, comments, communities, users and media; read subreddits, comment trees, top posts and profiles; create and manage monitors and webhooks. Native tools for Claude, Cursor and any MCP client.",
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": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/redditapis/redditapis-mcp.git"
@@ -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",
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",
@@ -42,6 +42,7 @@ export const TOOL_ANNOTATIONS = {
42
42
  reddit_deep_comment_search: { title: "Deep Comment Search", ...READ_REDDIT },
43
43
  reddit_search_media: { title: "Search Media Posts", ...READ_REDDIT },
44
44
  reddit_search_users: { title: "Search Users", ...READ_REDDIT },
45
+ reddit_ads_search: { title: "Search Reddit Ads", ...READ_REDDIT },
45
46
  reddit_subreddit_top: { title: "Top Subreddit Posts", ...READ_REDDIT },
46
47
  reddit_post: { title: "Get Post", ...READ_REDDIT },
47
48
  reddit_user_profile: { title: "Get User Profile", ...READ_REDDIT },
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.",
@@ -303,7 +311,7 @@ export const TOOLS = [
303
311
  name: "reddit_post_comments",
304
312
  path: "/api/reddit/comments",
305
313
  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.",
314
+ "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
315
  shape: {
308
316
  permalink: z.string().min(1).describe(
309
317
  "The post permalink path from a prior post result, e.g. '/r/programming/comments/abc123/some_title/'. Required.",
@@ -317,6 +325,9 @@ export const TOOLS = [
317
325
  sort: z.enum(["confidence", "top", "new", "controversial", "old", "qa"]).optional().describe(
318
326
  "Comment ordering: confidence (Reddit's best), top, new, controversial, old or qa. Absent, Reddit's default for the thread.",
319
327
  ),
328
+ format: z.enum(["raw", "normalized"]).optional().describe(
329
+ "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'.",
330
+ ),
320
331
  },
321
332
  },
322
333
  {
@@ -391,8 +402,30 @@ export const TOOLS = [
391
402
  name: "reddit_search_users",
392
403
  path: "/api/reddit/search/users",
393
404
  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 },
405
+ "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'.",
406
+ shape: { ...QUERY, ...AFTER, ...NSFW, ...LIMIT, ...includeDetails("link_karma, comment_karma and created") },
407
+ },
408
+ {
409
+ // The ads library: an index of promoted posts, read at the read rate like
410
+ // reddit_search. Paged with `cursor` (the previous page's `after`), not
411
+ // `after`, because that is the query param the endpoint takes.
412
+ name: "reddit_ads_search",
413
+ path: "/api/reddit/ads/search",
414
+ description:
415
+ "Search the Reddit ads library: promoted posts advertisers run on Reddit, with advertiser, title, landing page, call to action, media, every subreddit each ad appeared in, first and last seen dates and sightings. Reddit's own house ads are excluded. Newest first; page with cursor. Billed at the read rate, the same as a post search.",
416
+ shape: {
417
+ q: z.string().max(200).optional().describe("Text to find in the ad title or the advertiser name, up to 200 characters."),
418
+ advertiser: z.string().optional().describe("Advertiser username. A u/ prefix is stripped."),
419
+ domain: z.string().optional().describe("Landing page hostname, e.g. shop.example.com."),
420
+ subreddit: z.string().optional().describe("Subreddit the ad was seen in. An r/ prefix is stripped."),
421
+ campaign_id: z.string().optional().describe("Reddit campaign id, as returned in an ad's `campaign_id`."),
422
+ since: z.string().optional().describe("ISO 8601 date: only ads last seen on or after it."),
423
+ until: z.string().optional().describe("ISO 8601 date: only ads first seen on or before it."),
424
+ limit: z.number().int().min(1).max(100).optional().describe("Number of ads to return, 1 to 100 (default 25)."),
425
+ cursor: z.string().optional().describe(
426
+ "Pagination cursor: the previous response's `after` value, passed back exactly. A null `after` (has_more false) means there is no next page. Absent on the opening page.",
427
+ ),
428
+ },
396
429
  },
397
430
  {
398
431
  name: "reddit_subreddit_top",
@@ -627,22 +660,22 @@ export const TOOLS = [
627
660
  name: "reddit_subreddits_popular",
628
661
  path: "/api/reddit/subreddits/popular",
629
662
  description:
630
- "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.",
631
- shape: { ...AFTER, ...LIMIT },
663
+ "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.",
664
+ shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
632
665
  },
633
666
  {
634
667
  name: "reddit_subreddits_new",
635
668
  path: "/api/reddit/subreddits/new",
636
669
  description:
637
- "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.",
638
- shape: { ...AFTER, ...LIMIT },
670
+ "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.",
671
+ shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
639
672
  },
640
673
  {
641
674
  name: "reddit_subreddits_default",
642
675
  path: "/api/reddit/subreddits/default",
643
676
  description:
644
- "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.",
645
- shape: { ...AFTER, ...LIMIT },
677
+ "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.",
678
+ shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
646
679
  },
647
680
 
648
681
  // ── monitoring: manage the caller's own account, never posts/votes/DMs Reddit itself ──
@@ -716,7 +749,7 @@ export const TOOLS = [
716
749
  name: "reddit_monitor_deliveries",
717
750
  path: "/api/reddit/monitor/deliveries",
718
751
  description:
719
- "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.",
752
+ "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.",
720
753
  shape: {
721
754
  id: z.string().optional().describe("Narrows to one monitor's history. Absent, the history aggregates across every monitor on the account."),
722
755
  status: z.enum(["pending", "delivered", "failed", "dead", "suppressed"]).optional().describe(
@@ -743,7 +776,7 @@ export const TOOLS = [
743
776
  {
744
777
  name: "reddit_monitor_webhook_list",
745
778
  path: "/api/reddit/monitor/webhook/list",
746
- description: "Lists every webhook registered on the caller's account. The signing secret is not included; it is shown once, at creation.",
779
+ 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`.",
747
780
  shape: {},
748
781
  },
749
782
  {