Skip to main content
Glama

Reddit: List posts in a subreddit feed

reddit_list_subreddit_posts
Read-onlyIdempotent

List the posts in a subreddit sorted by hot, new, top or rising, optionally limited to a time window. Each post includes the title, body, author, score, comment count and link. Page through results with cursor. 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": {
      "subreddit": "<subreddit>",
      "count": "<count>"
    },
    "name": "reddit_list_subreddit_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoFeed ordering. Defaults to "hot".
timeNoRestrict results to a recent window. Defaults to "all".
countYesNumber of results to return (1–10). Defaults to 10.
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.
subredditYesSubreddit name, with or without the "r/" prefix, or the subreddit link, e.g. "programming" or "https://www.reddit.com/r/programming/".
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 / 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"
      +}
  2. 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 and destructiveHint=false, so "Read-only: returns public data and changes nothing" largely restates them. It earns credit for two pieces of context the annotations lack: pagination via `cursor`/nextCursor and a stated cost of 1 credit per request. It misses the cache-proxy behavior (free cached reads, no-cost 404) that the schema spells out.

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-loaded with the core action, then return fields, then paging and cost — a sensible order with no filler. The single sentence "Read-only: returns public data and changes nothing" is redundant against the annotations and could be dropped.

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

Completeness5/5

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

With full annotation coverage and a 100%-documented schema, the description only needs to orient the caller, and it does: action, sort/time options, returned fields, paging and cost. The one omission, cacheOnly/cacheMaxAgeHours free-cache semantics, is fully specified in the schema itself.

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 all seven parameters are already documented in detail. The description echoes the sort enumerations and time-window concept that the schema already carries, adding no format or edge-case clarification beyond it; baseline 3 applies.

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 ("List the posts in a subreddit") plus the sort domain, so an agent can immediately tell it apart from reddit_list_user_posts or reddit_search_posts. No sibling is named explicitly, which keeps it short of a 5.

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 usage through scope (a subreddit feed, sorted, optional time window) but never states when to prefer this over reddit_search_posts or reddit_get_post, nor any prerequisites. Paging guidance via `cursor` is the only explicit procedural instruction.

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