Skip to main content
Glama

Search Reddit communities

reddit_search_communities
Read-onlyIdempotent

Search Reddit for communities matching a phrase. Each result includes the subreddit name, description, weekly visitors and contributions, icon and link. Read-only: returns public data and changes nothing. Costs 1 credit per request.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>",
      "count": "<count>"
    },
    "name": "reddit_search_communities"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoResult ordering. Defaults to "relevance".
timeNoRestrict results to a recent window. Defaults to "all".
countYesNumber of results to return (1–10). Defaults to 10.
queryYesThe text to search Reddit for, e.g. "openai", "best keyboard".
cursorNoThe previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
subredditNoRestrict the search to a single subreddit (name with or without the "r/" prefix). Only applies to post search.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / count
      Added value: +{
      +  "default": 10,
      +  "description": "Number of results to return (1–10). Defaults to 10.",
      +  "maximum": 10,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "query"
      -]New value: +[
      +  "query",
      +  "count"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / cacheMaxAgeHours
      Added value: +{
      +  "description": "Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cacheOnly
      Added value: +{
      +  "description": "Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is largely covered. The description still adds real value beyond that: the explicit price of 1 credit per request and the shape of each result (name, description, weekly visitors/contributions, icon, link), which matters because there is no output schema. It omits error/pagination behavior, but the schema documents cursor and the 404-on-cacheOnly case.

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

Conciseness5/5

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

Three short sentences, front-loaded with purpose, then return shape, then cost and safety. Nothing is redundant given the absence of an output schema.

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 an 8-parameter search tool with no output schema, the description covers purpose, result contents, safety, and cost — enough to call it correctly, since caching and pagination semantics live in a fully documented schema. It stops short of routing guidance among the many sibling search tools.

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%, with sort, time, count, cursor, cacheOnly, and cacheMaxAgeHours all documented in-schema including defaults and enum meanings. The description adds no parameter-level meaning, so the baseline of 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?

States a specific verb and resource ("Search Reddit for communities") and the scope of matching ("matching a phrase"). The word "communities" alone distinguishes it from reddit_search_posts, reddit_search_comments, and reddit_search_users without needing to open a schema.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as reddit_search_all or reddit_get_subreddit. The only decision-relevant signals are the credit cost and the read-only note, which help with budgeting but not with tool selection.

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