Skip to main content
Glama

reddit_list_posts

List posts from a subreddit feed by hot, new, top, rising, or best, with cursor pagination and compact summaries. Use it to browse a community, then fetch full thread bodies separately.

Instructions

List posts from a subreddit feed (hot/new/top/rising/best).

Uses the webapp's own infinite-scroll partial endpoint (fast: no full page load). Pagination cursors come back from Reddit itself. Feed partials do not include post bodies: body_preview is null here; call reddit_get_thread for the full body.

Args: subreddit: Bare subreddit name, e.g. "ClaudeCode". sort: One of hot, new, top, rising, best. time_filter: hour, day, week, month, year, all (used by top/rising). limit: Max posts to return (1-25). after: Opaque pagination cursor from a previous call's "after" field. Pass it through exactly as received.

Returns: Compact post summaries plus the next "after" cursor, or null when done. Note: the cursor is a URL path; repeated calls with the same arguments are served from a short-lived cache.

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": "reddit_list_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNohot
afterNo
limitNo
subredditYes
time_filterNoweek

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations exist, so the description carries the whole burden, and it does substantial work: it names the underlying infinite-scroll partial endpoint, notes the speed tradeoff of no full page load, discloses that body_preview is null, and warns that identical repeated calls are served from a short-lived cache. Missing only auth/rate-limit context, which keeps it off a 5.

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 purpose and the key body-text caveat before the Args block, which is the right ordering. Slightly padded by awkward line wrapping and a redundant 'Note:' clause about the cursor appearing in both Returns and the param docs.

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 no output schema and no annotations, the description still supplies a Returns section describing compact summaries, the next 'after' cursor, null termination, and the cursor's URL-path nature. For a five-parameter listing tool, an agent has everything needed to call it and paginate correctly.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate entirely, and it does: it enumerates valid sort values, the time_filter values and which sorts use them, the 1-25 limit range, the bare-name format for subreddit, and the exact pass-through semantics of the opaque 'after' cursor. This is meaningfully richer than the bare schema types and defaults.

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 — 'List posts from a subreddit feed' — and immediately scopes it with the sort modes hot/new/top/rising/best. It also explicitly separates itself from reddit_get_thread, so an agent can tell which sibling returns full bodies without opening either schema.

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 a clear routing rule: this tool for feed listings, reddit_get_thread when the full body is needed, since body_preview is null here. It does not address when to prefer reddit_search or reddit_subreddit_info, so it stops short of full alternatives coverage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.