Skip to main content
Glama

Fetch a Reddit post with its comments

reddit_get_post
Read-onlyIdempotent

Get a Reddit post from its URL together with its comments. Returns the title, body, author, subreddit, score, upvote ratio, comment count and links, plus the comment thread. 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": {
      "url": "<url>"
    },
    "name": "reddit_get_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesLink to the Reddit post to fetch (with or without query), e.g. "https://www.reddit.com/r/programming/comments/1u3a0cd/title/". A redd.it short link works too.
sortNoComment ordering. Defaults to the subreddit's suggested sort, usually "best".
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.
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, openWorldHint and destructiveHint=false, so the safety profile is covered; the description adds the credit cost per request, which is not in any structured field and directly affects invocation decisions. It restates the read-only/public-data point (redundant with annotations) and stays silent on failure modes such as deleted posts, private or quarantined subreddits, or NSFW handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and the payload, then cost and safety notes. No filler wording and nothing buried.

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

Completeness4/5

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

With no output schema, enumerating title, body, author, subreddit, score, upvote ratio, comment count and links plus the comment thread usefully describes the return shape, and the caching behavior is fully covered by the schema. What is missing is edge-case behavior for inaccessible or deleted posts and any indication of response size for very large comment threads.

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%, and the schema already explains url formats, the sort enum, cacheOnly, and cacheMaxAgeHours in detail. The description adds no parameter meaning beyond that, so the baseline 3 applies — the schema is doing all the work here.

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 ('Get a Reddit post from its URL together with its comments') and enumerates the returned fields, so it is clearly a single-post-fetch tool rather than a search or listing tool. It could have explicitly named siblings like reddit_get_comment or reddit_search_posts to seal the distinction, but the URL-driven single-post scope makes the boundary inferable.

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?

Usage is only implied: the agent must already hold a post URL, and the description never says when to prefer this over reddit_get_comment, reddit_search_posts, or reddit_list_user_posts. It does flag the cost ('1 credit per request'), which is useful decision context, but no exclusions or alternative routing are stated.

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