discover_communities
Search for posts on a topic and cluster authors who interact with each other to reveal topic-based communities.
Instructions
Discover communities and groups of users around specific topics or interests by searching recent posts and clustering authors who interact with each other. Works without authentication; richer with auth. Use this instead of find_similar_users when you want topic-based community clusters rather than accounts structurally similar to a specific user. Subject to per-tool rate limiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Keyword or phrase to search for (e.g. "climate", "web dev"). Used to retrieve relevant posts and identify active community clusters. | |
| maxResults | No | Maximum number of communities to return (1–50, default 20). | |
| minCommunitySize | No | Minimum number of distinct members required for a cluster to be reported as a community (minimum 2, default 5). | |
| includeMetrics | No | When true, includes a metrics object on each community with avgFollowerCount, totalPosts, and interconnectedness values (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether the operation completed successfully. | |
| communities | Yes | List of discovered communities sorted by size and engagement (descending). | |
| insights | Yes | Summary observations about the discovered communities (e.g. total members, largest community). |