get_community_posts
Retrieve posts from any public subreddit with sorting by hot, new, top, rising, or controversial, plus scores, comment counts, and metadata for community analysis.
Instructions
Get posts from any public subreddit. Supports sorting by hot, new, top, rising, or controversial. Returns post list with scores, comment counts, and metadata.
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": {
"subreddit": "<subreddit>"
},
"name": "get_community_posts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Sort: hot | new | top | rising | controversial | |
| time | No | Time filter (applies when sort=top): all | year | month | week | day | hour | |
| after | No | Pagination cursor from previous nextPageUrl (e.g. "t3_...") | |
| limit | No | Number of results to return (1–100) | |
| subreddit | Yes | Subreddit name (without r/ prefix, e.g. "webdev") |