Skip to main content
Glama
reddit-connector-mcp

reddit-connector-mcp

by ShellyDeng08

Search Reddit Posts

reddit_search_posts
Read-onlyIdempotent

Search Reddit posts by query across all Reddit or within a specific subreddit to find relevant discussions and content.

Instructions

Search for posts across Reddit or within a specific subreddit.

Examples:

  • Search all of Reddit: { "query": "machine learning" }

  • Search within a subreddit: { "query": "best practices", "subreddit": "programming" }

Returns: { posts: [{ title, author, score, url, permalink, selftext, num_comments, created_utc, subreddit }], count, has_more }

Errors:

  • 403: Subreddit is private or quarantined

  • 404: Subreddit does not exist

  • 429: Rate limited by Reddit API

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": {
      "query": "<query>"
    },
    "name": "reddit_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of results (default: 25, max: 100)
queryYesSearch query
subredditNoRestrict search to this subreddit (without r/ prefix)
response_formatNoResponse formatjson

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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, open-world, non-destructive behavior, so safety is covered. The description adds real value beyond that by disclosing the return shape (posts array with fields, count, has_more) and specific error semantics (403 private/quarantined, 404 missing subreddit, 429 rate limiting), which are behaviors no structured field captures. It stops short of describing pagination controls, which is fine for the bar set here.

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?

The description is front-loaded with the one-line purpose, then uses labeled Examples/Returns/Errors blocks, so an agent can scan the parts it needs. It is slightly longer than strictly necessary because the example payloads partly restate the schema, but no sentence is filler.

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 enumerating the returned post fields and pagination flags. Combined with error codes and usage examples, an agent has everything needed to invoke this correctly and interpret the response.

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 coverage is 100%, so all four parameters, including the limit bounds and the response_format enum, are already documented in the schema. The examples show how 'query' and 'subreddit' combine, but add no format or syntax detail beyond the schema's 'without r/ prefix' note. 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?

The description gives a specific verb and resource ('Search for posts') and states its scope: all of Reddit or one subreddit. That scope implicitly differentiates it from listing-style siblings like reddit_get_subreddit_posts or reddit_get_user_posts, but it never names or explicitly contrasts them, so the separation is left to inference.

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?

The two worked examples make the decision clear: pass only 'query' to search globally, or add 'subreddit' to scope it. There is no explicit when-not guidance or statement about when to prefer a sibling retrieval tool, which keeps it from a 5.

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