Skip to main content
Glama

OpenData Best Web Intelligence (x402 USDC)

Reddit Posts Comments and Subreddits Data: Search Reddit posts, subreddits and comments

reddit_com__search
Read-only

[Reddit Posts Comments and Subreddits Data] Search Reddit posts, subreddits and comments. Fetch public Reddit posts by subreddit, search query, preset catalog or post ID with optional comments and community metadata. x402 price: $0.0030/row USDC (max 10 rows; 0 rows / errors are never charged).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "reddit_com__search"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoHow to sort results. 'new' for latest, 'hot' for trending, 'top' for highest scored, 'relevance' for search relevance (only with searchQueries — listing mode falls back to 'new').new
postIdsNoCollect specific posts by id or link instead of a feed: t3_ fullnames, bare ids, or reddit.com/r/<sub>/comments/<id> permalinks. Detail mode returns one row per post with the full post record and is not combined with Subreddits or Search Queries.
maxResultsNoMost rows for each subreddit (or for each search query when no subreddit is given). Default 70; larger numbers are collected in parts of 70. Posts and optional comment, community and user rows share this limit and are billed at the same price per row. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor (limits set by the Actor developer).
subredditsNoSubreddit names to scrape (with or without r/). Example: ["forhire", "freelance"]. Fill this, Search Queries, or Subreddit catalog topic — any one is enough. Explicitly pass an empty array (subreddits=[]) with searchQueries for a site-wide Reddit search. Omitting subreddits and all other targets defaults to r/forhire; a searchQueries-only input also runs a site-wide search.
timeFilterNoTime range filter. Applies to 'top' sort and search results.week
maxCommentsNoMaximum comment rows per post, including available nested replies, when includeComments is enabled. The remaining maxResults limit can reduce this number.
searchQueriesNoKeywords to search. With subreddits set, searches inside each subreddit. With subreddits empty, runs a site-wide Reddit search. If empty while subreddits are set, scrapes the subreddit feed (new/hot/top) without keyword filtering.
includeCommentsNoAdd available comments and nested replies as separate billed rows. Comments share the maxResults limit with posts and other enabled rows; complete threads are not guaranteed.
includeUserMetaNoAdd available public details for post authors as separate user rows, such as karma and account creation time. Each row is billed at the same price and counts toward maxResults.
subredditCatalogNoPick a built-in topic instead of naming subreddits. Its subreddit list is merged with Subreddits (deduplicated). Enough on its own to start a run.
allowListingFallbackNoAllow an empty top/week subreddit feed to retry as new, without a time restriction. Leave off to keep the requested sort and time range.
includeSubredditMetaNoAdd public details for communities found in collected posts as separate subreddit rows. Each row is billed at the same price and counts toward maxResults.
expandCommentSubtreesNoWhen includeComments is on, spend up to this many extra requests filling replies that the comment page left out. Each expansion is one request and still counts against maxComments. Set 0 to turn it off.
expandRelatedSubredditsNoWhen a subreddits entry names a catalog topic (hiring, programming, housing, tickets, local, classifieds, remote_jobs, startups), expand it into the full subreddit list for that topic. Without this flag a topic token is passed through verbatim.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and openWorldHint, yet the description adds genuinely non-obvious behavior: a per-row x402 price of $0.0030 USDC, a 10-row ceiling, and the guarantee that zero-row runs and errors are never charged. It still does not disclose latency, failure modes (e.g., blocked or private subreddits), or what a partial/truncated collection looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences, front-loaded with the resource and targeting modes before the pricing note. The bracketed '[Reddit Posts Comments and Subreddits Data]' prefix merely restates the title and is the one line that does not earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 14-parameter tool with zero required inputs and no output schema, the description covers the operating modes and cost model, which is what an agent most needs before calling. Minor gap: with no output schema, nothing indicates the shape of a returned row beyond the phrase 'full post record' in the parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 14 parameters including defaults, enums, and interaction rules. The description only gestures at 'optional comments and community metadata' and adds no syntax, precedence, or constraint detail beyond what the schema already states; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource set: 'Search Reddit posts, subreddits and comments' plus fetching by subreddit, search query, preset catalog, or post ID. An agent can distinguish it from the sibling site-search tools purely by the Reddit scope and the supported targeting modes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use it (public post retrieval by several targeting modes) but never states exclusions or contrasts with an alternative tool. The heavy lifting on which inputs to combine is left to the schema's own parameter descriptions rather than the tool description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources