Skip to main content
Glama

Reddit Search Posts

reddit_search_posts
Read-onlyIdempotent

Search Reddit posts by keyword, across all subreddits, or scoped to one via the subreddit argument ("search r/ for X"). Sort by relevance (default), hot, top, new, or comments. Returns post id, title, author, subreddit, permalink, and date.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "machine learning"
    },
    "name": "reddit_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNorelevance (default), hot, top, new, comments.
limitNoNumber of results (default 10, max 100).
queryYesSearch query.
subredditNoOptional subreddit to restrict the search to (e.g. "python").

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedOutput schema / description
      Removed value: -"Reddit search results, served from Reddit RSS (the JSON API blocks our egress). Scores, comment counts and flair are NOT available from RSS."
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "description": "Reddit search results, served from Reddit RSS (the JSON API blocks our egress). Scores, comment counts and flair are NOT available from RSS.",
      +    "properties": {
      +      "count": {
      +        "type": "number"
      +      },
      +      "found": {
      +        "description": "Present and true on an answer; a miss is the found:false branch.",
      +        "enum": [
      +          true
      +        ],
      +        "type": "boolean"
      +      },
      +      "hint": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "type": "boolean"
      +      },
      +      "posts": {
      +        "items": {
      +          "properties": {
      +            "author": {
      +              "description": "Username without the u/ prefix",
      +              "type": "string"
      +            },
      +            "body": {
      +              "description": "Self-text as HTML-decoded text; empty for link posts",
      +              "type": "string"
      +            },
      +            "id": {
      +              "description": "Reddit post id (base36, e.g. \"1vef79c\")",
      +              "type": "string"
      +            },
      +            "permalink": {
      +              "description": "Absolute reddit.com URL",
      +              "type": "string"
      +            },
      +            "published": {
      +              "description": "ISO-8601 timestamp",
      +              "type": "string"
      +            },
      +            "subreddit": {
      +              "description": "Null when the feed entry does not carry one (e.g. a subreddit-level result)",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "title",
      +            "author",
      +            "permalink",
      +            "published"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "query": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "sort": {
      +        "description": "relevance | new | top | hot",
      +        "type": "string"
      +      },
      +      "subreddit": {
      +        "description": "Echo of the subreddit filter, null when searching site-wide",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "query",
      +      "posts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      +    "properties": {
      +      "found": {
      +        "enum": [
      +          false
      +        ],
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "found"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "count": {
      -    "type": "number"
      -  },
      -  "hint": {
      -    "type": "string"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "posts": {
      -    "items": {
      -      "properties": {
      -        "author": {
      -          "description": "Username without the u/ prefix",
      -          "type": "string"
      -        },
      -        "body": {
      -          "description": "Self-text as HTML-decoded text; empty for link posts",
      -          "type": "string"
      -        },
      -        "id": {
      -          "description": "Reddit post id (base36, e.g. \"1vef79c\")",
      -          "type": "string"
      -        },
      -        "permalink": {
      -          "description": "Absolute reddit.com URL",
      -          "type": "string"
      -        },
      -        "published": {
      -          "description": "ISO-8601 timestamp",
      -          "type": "string"
      -        },
      -        "subreddit": {
      -          "description": "Null when the feed entry does not carry one (e.g. a subreddit-level result)",
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "title": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "title",
      -        "author",
      -        "permalink",
      -        "published"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "query": {
      -    "type": "string"
      -  },
      -  "reason": {
      -    "type": "string"
      -  },
      -  "sort": {
      -    "description": "relevance | new | top | hot",
      -    "type": "string"
      -  },
      -  "subreddit": {
      -    "description": "Echo of the subreddit filter, null when searching site-wide",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "query",
      -  "posts"
      -]
  2. Changed4 schema fields changed
    • addedOutput schema / properties / hint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / message
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / reason
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "query",
      -  "count",
      -  "posts"
      -]New value: +[
      +  "ok",
      +  "query",
      +  "posts"
      +]
  3. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered elsewhere. The description adds the sortable dimensions and the returned fields, but says nothing about pagination, result caps beyond limit, or rate-limit behavior — and an output schema already documents the return shape.

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 tight sentences: scope first, then options, then return payload. Every clause carries information an agent would otherwise have to infer, with no redundant framing.

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 rich annotations, a full output schema, and 100% parameter coverage, the description only needs to establish scope and filtering behavior, which it does. Minor omissions (pagination behavior, what happens when subreddit doesn't exist) are low-stakes for a read-only search tool.

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 the baseline is 3. The description's only extra semantic value is the concrete interpretation of the subreddit argument as the "search r/<sub> for X" phrasing; the sort list and limit defaults merely restate the schema.

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?

It names a specific verb and resource ("Search Reddit posts by keyword") and states the two scopes available: all subreddits or one via the subreddit argument. That is enough to separate it from siblings like reddit_get_post or get_subreddit, though no sibling is named explicitly.

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?

It gives clear operating context: keyword search by default, scoping via subreddit, and the natural-language mapping ("search r/<sub> for X"). It does not state when to prefer reddit_get_post or get_subreddit instead, so no explicit exclusion guidance.

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.