Skip to main content
Glama

Weir: Reddit and X (Twitter) data

Find communities by name or topic

search_subreddits
Read-onlyIdempotent

Find communities by name or topic. Communities whose name or description matches the query, with member counts. Use it to find where a topic is discussed before reading or watching those communities. To search posts inside one community, use POST /v1/reddit/subreddits/{name}/search instead. Costs 1 credit + 1 credit per subreddit returned. When meta.nextCursor is set, call again with cursor set to it for the next page.

Input Schema

NameRequiredDescriptionDefault
sortNo`activity` favours communities that are busy right now.relevance
limitNoMaximum number of results to return.
queryYesWords to match against community names and descriptions.
cursorNo`meta.nextCursor` from the previous page, unchanged. Opaque, signed, and bound to the other parameters: change any of them and start again without a cursor.
includeNsfwNoInclude results marked NSFW. Off by default; what it removes is reported in `meta.omittedNsfw`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely new behavior: a cost model ('1 credit + 1 credit per subreddit returned') and the pagination contract ('When meta.nextCursor is set, call again with cursor set to it'). It stops short of describing result ordering or what an empty result looks like, but the costly/stateful aspects are disclosed.

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?

Front-loads the purpose, then routes to the alternative, then covers cost and pagination. Every sentence carries information, though the cost and cursor sentences are dense and could be split for scanability.

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?

No output schema exists, so the description carries the return-value burden; it names member counts, `meta.nextCursor`, and the pagination model, which covers what an agent needs to loop correctly. Cost and pagination are covered, but the shape of individual result items is only partially implied.

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

Parameters4/5

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

Schema coverage is 100% so the baseline is 3; the description earns above that by spelling out the concrete pagination loop with `cursor`, which the schema only describes abstractly as opaque and bound to other params. It adds nothing on `sort`, `limit`, or `includeNsfw`, but those are fully documented in the schema.

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

Purpose4/5

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

States a specific verb and resource ('Find communities by name or topic') and clarifies the matching surface ('name or description matches') plus what comes back ('member counts'). It separates itself from in-community post search, but never distinguishes itself from the sibling `search_reddit` / `search_subreddit` / `lookup_reddit` tools, so one ambiguity remains.

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

Usage Guidelines4/5

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

Gives an explicit use case ('find where a topic is discussed before reading or watching those communities') and names the condition that should route elsewhere ('To search *posts* inside one community, use ... instead'). There is no guidance on when to prefer it over `search_reddit`, but the primary workflow is clear.

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