Skip to main content
Glama
reddit-mcp-server

reddit-mcp-server

Get Top Posts

get_top_posts
Read-only

Fetch Reddit posts ranked by score from a subreddit or home feed within a selected time window, returning paginated results for browsing.

Instructions

Get the top-scoring posts from a subreddit — or from the authenticated home feed if no subreddit is given — within a time window (hour…all). Read-only; works without credentials via RSS (titles and links only, no scores); if RSS fails, it falls back to the Arctic Shift archive's newest posts, which have no ranking. Returns a page of posts plus an after cursor. This is a shortcut for the 'top' sort; use browse_subreddit for hot/new/rising/controversial, or search_reddit to find posts by keyword.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_top_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
afterNoForward pagination cursor: the `after` value from a previous call. Omit for the first page.
limitNoHow many posts to return, 1–100 (default 10).
subredditNoSubreddit to read, without the r/ prefix (e.g. 'science'). Omit to use the authenticated home feed (requires credentials).
time_filterNoTime window the 'top' ranking is computed over (e.g. 'day' = top today). Default 'week'.week

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv2.0.2
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Forward pagination cursor: the `after` value from a previous call. Omit for the first page.",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Number of posts to fetch"New value: +"How many posts to return, 1–100 (default 10)."
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"integer"New value: +"number"
    • changedInput schema / properties / subreddit / description
      Previous value: -"Name of the subreddit"New value: +"Subreddit to read, without the r/ prefix (e.g. 'science'). Omit to use the authenticated home feed (requires credentials)."
    • changedInput schema / properties / time_filter / description
      Previous value: -"Time period to filter posts (e.g. 'day', 'week', 'month', 'year', 'all')"New value: +"Time window the 'top' ranking is computed over (e.g. 'day' = top today). Default 'week'."
    • changedInput schema / properties / time_filter / enum
      Previous value: -[
      -  "day",
      -  "week",
      -  "month",
      -  "year",
      -  "all"
      -]New value: +[
      +  "hour",
      +  "day",
      +  "week",
      +  "month",
      +  "year",
      +  "all"
      +]
    • removedInput schema / required
      Removed value: -[
      -  "subreddit"
      -]
  2. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses real behavioral traits: credential-free operation via RSS with reduced fidelity (titles and links only, no scores), a fallback to the Arctic Shift archive whose results are unranked, and a paginated return with an `after` cursor. These degradation modes materially change how an agent should interpret results and are not available in any structured field.

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?

Content is front-loaded: resource and scope first, then behavioral caveats, then the return shape and sibling routing, so an agent can stop reading at any point. It is a dense single block with no wasted sentences, though the parenthetical RSS details make it long enough that slight trimming was possible.

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?

There is no output schema, and the description compensates by stating that a page of posts plus an `after` cursor is returned, along with the caveat that RSS-mode results lack scores. For a 4-parameter, zero-required read tool with a silent-fallback path, nothing an agent needs to call or interpret it correctly is missing.

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 goes slightly beyond by framing time_filter as the window over which the ranking is computed and by restating that omitting subreddit switches to the authenticated home feed. It does not add format or edge-case detail for limit/after, so it stays just above baseline.

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?

The description leads with a specific verb and resource ('top-scoring posts from a subreddit'), states the scope (time window hour…all), and explicitly positions itself as a shortcut for the 'top' sort. An agent can distinguish it from browse_subreddit and search_reddit without opening any schema.

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

Usage Guidelines5/5

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

It names concrete alternatives with the condition that selects each: browse_subreddit for hot/new/rising/controversial and search_reddit for keyword lookup. It also states the default behavior when no subreddit is supplied (authenticated home feed), so the agent knows both when to use this tool and when not to.

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