Skip to main content
Glama

Search Posts

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.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault
okYes
sortNorelevance | new | top | hot
countYes
postsYes
queryYes
subredditNoEcho of the subreddit filter, null when searching site-wide

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changed
    • addedOutput schema / description
      Added value: +"Reddit search results, served from Reddit RSS (the JSON API blocks our egress). Scores, comment counts and flair are NOT available from RSS."
    • removedOutput schema / oneOf
      Removed value: -[
      -  {
      -    "properties": {
      -      "count": {
      -        "description": "Number of results returned",
      -        "type": "number"
      -      },
      -      "ok": {
      -        "description": "Success flag",
      -        "enum": [
      -          true
      -        ],
      -        "type": "boolean"
      -      },
      -      "posts": {
      -        "items": {
      -          "properties": {
      -            "author": {
      -              "description": "Post author",
      -              "type": "string"
      -            },
      -            "created_utc": {
      -              "description": "Creation timestamp (UTC)",
      -              "type": "number"
      -            },
      -            "flair": {
      -              "description": "Link flair text",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "id": {
      -              "description": "Post ID",
      -              "type": "string"
      -            },
      -            "is_self": {
      -              "description": "Is self-post",
      -              "type": "boolean"
      -            },
      -            "num_comments": {
      -              "description": "Number of comments",
      -              "type": "number"
      -            },
      -            "permalink": {
      -              "description": "Full Reddit permalink",
      -              "type": "string"
      -            },
      -            "score": {
      -              "description": "Upvote score",
      -              "type": "number"
      -            },
      -            "selftext": {
      -              "description": "Self-post text content",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "subreddit": {
      -              "description": "Subreddit name",
      -              "type": "string"
      -            },
      -            "title": {
      -              "description": "Post title",
      -              "type": "string"
      -            },
      -            "url": {
      -              "description": "Post URL",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "title",
      -            "subreddit",
      -            "author",
      -            "score",
      -            "url",
      -            "permalink",
      -            "num_comments",
      -            "created_utc",
      -            "is_self",
      -            "selftext",
      -            "flair"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "query": {
      -        "description": "Search query executed",
      -        "type": "string"
      -      },
      -      "sort": {
      -        "description": "Sort order used",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "query",
      -      "sort",
      -      "count",
      -      "posts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "hint": {
      -        "description": "Optional hint for recovery",
      -        "type": "string"
      -      },
      -      "message": {
      -        "description": "Failure message",
      -        "type": "string"
      -      },
      -      "ok": {
      -        "description": "Failure flag",
      -        "enum": [
      -          false
      -        ],
      -        "type": "boolean"
      -      },
      -      "posts": {
      -        "description": "Empty posts array on failure",
      -        "type": "array"
      -      },
      -      "query": {
      -        "description": "Search query requested",
      -        "type": "string"
      -      },
      -      "reason": {
      -        "description": "Failure reason",
      -        "enum": [
      -          "reddit_blocked",
      -          "reddit_rate_limited",
      -          "not_found"
      -        ],
      -        "type": "string"
      -      },
      -      "sort": {
      -        "description": "Sort order requested",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "query",
      -      "sort",
      -      "posts",
      -      "reason",
      -      "message"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedOutput schema / properties
      Added value: +{
      +  "count": {
      +    "type": "number"
      +  },
      +  "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"
      +  },
      +  "sort": {
      +    "description": "relevance | new | top | hot",
      +    "type": "string"
      +  },
      +  "subreddit": {
      +    "description": "Echo of the subreddit filter, null when searching site-wide",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "ok",
      +  "query",
      +  "count",
      +  "posts"
      +]
  2. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of results to return (default: 10, max: 100)"New value: +"Number of results (default 10, max 100)."
    • changedInput schema / properties / query / description
      Previous value: -"Search query"New value: +"Search query."
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order: relevance, hot, top, new, comments (default: relevance)"New value: +"relevance (default), hot, top, new, comments."
    • addedInput schema / properties / subreddit
      Added value: +{
      +  "description": "Optional subreddit to restrict the search to (e.g. \"python\").",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "machine learning"
      +  },
      +  {
      +    "limit": 50,
      +    "query": "climate change",
      +    "sort": "top"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "count": {
      +          "description": "Number of results returned",
      +          "type": "number"
      +        },
      +        "ok": {
      +          "description": "Success flag",
      +          "enum": [
      +            true
      +          ],
      +          "type": "boolean"
      +        },
      +        "posts": {
      +          "items": {
      +            "properties": {
      +              "author": {
      +                "description": "Post author",
      +                "type": "string"
      +              },
      +              "created_utc": {
      +                "description": "Creation timestamp (UTC)",
      +                "type": "number"
      +              },
      +              "flair": {
      +                "description": "Link flair text",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "description": "Post ID",
      +                "type": "string"
      +              },
      +              "is_self": {
      +                "description": "Is self-post",
      +                "type": "boolean"
      +              },
      +              "num_comments": {
      +                "description": "Number of comments",
      +                "type": "number"
      +              },
      +              "permalink": {
      +                "description": "Full Reddit permalink",
      +                "type": "string"
      +              },
      +              "score": {
      +                "description": "Upvote score",
      +                "type": "number"
      +              },
      +              "selftext": {
      +                "description": "Self-post text content",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "subreddit": {
      +                "description": "Subreddit name",
      +                "type": "string"
      +              },
      +              "title": {
      +                "description": "Post title",
      +                "type": "string"
      +              },
      +              "url": {
      +                "description": "Post URL",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "title",
      +              "subreddit",
      +              "author",
      +              "score",
      +              "url",
      +              "permalink",
      +              "num_comments",
      +              "created_utc",
      +              "is_self",
      +              "selftext",
      +              "flair"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "query": {
      +          "description": "Search query executed",
      +          "type": "string"
      +        },
      +        "sort": {
      +          "description": "Sort order used",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "query",
      +        "sort",
      +        "count",
      +        "posts"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "hint": {
      +          "description": "Optional hint for recovery",
      +          "type": "string"
      +        },
      +        "message": {
      +          "description": "Failure message",
      +          "type": "string"
      +        },
      +        "ok": {
      +          "description": "Failure flag",
      +          "enum": [
      +            false
      +          ],
      +          "type": "boolean"
      +        },
      +        "posts": {
      +          "description": "Empty posts array on failure",
      +          "type": "array"
      +        },
      +        "query": {
      +          "description": "Search query requested",
      +          "type": "string"
      +        },
      +        "reason": {
      +          "description": "Failure reason",
      +          "enum": [
      +            "reddit_blocked",
      +            "reddit_rate_limited",
      +            "not_found"
      +          ],
      +          "type": "string"
      +        },
      +        "sort": {
      +          "description": "Sort order requested",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "query",
      +        "sort",
      +        "posts",
      +        "reason",
      +        "message"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • removedInput schema / examples
      Removed value: -[
      -  {
      -    "query": "machine learning"
      -  },
      -  {
      -    "limit": 50,
      -    "query": "climate change",
      -    "sort": "top"
      -  }
      -]
  5. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "machine learning"
      +  },
      +  {
      +    "limit": 50,
      +    "query": "climate change",
      +    "sort": "top"
      +  }
      +]
  6. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, so the description only needs to add behavioral detail. It does so by listing sort options, the default sort, and the exact returned fields, giving the agent useful expectations beyond the annotation flags. No contradiction with annotations.

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?

The description consists of three short, front-loaded sentences covering the core action, scope, sort behavior, and return fields. There is no filler or redundant wording.

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?

Given read-only annotations, complete schema coverage, and the presence of an output schema, the description provides enough context for an agent to invoke the tool correctly. It explains scope and sort behavior, while details like default limit and max are already captured in the schema.

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 the description does not need to define each parameter. It adds a small amount of semantic value by clarifying 'across all subreddits' as the default and showing the 'search r/<sub> for X' usage pattern, but it largely restates what the schema already provides.

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 opens with a specific verb and resource: 'Search Reddit posts by keyword' and immediately differentiates scope (all subreddits or one via the subreddit argument). It clearly distinguishes from sibling tools like get_post and get_subreddit by focusing on keyword-based search across posts.

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 description provides clear context for when to use the tool: keyword-based search, optionally scoped to a single subreddit. It does not explicitly name alternatives or exclusions, but the search-vs-fetch distinction is strongly implied by the stated purpose and sibling tool names.

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.

TDQS

A3.5/5.0
Disambiguation2/5

The set has several near-duplicate tools: ask_pipeworx and ask_pipeworx_beta are explicitly designed to be identical right now, and ask_pipeworx_grounded, deep_research, and bet_research all overlap on routed data lookup. The three Reddit tools are distinct, but they are dwarfed by a large cluster of unrelated Pipeworx/Polymarket tools, making the actual purpose of the set hard to pin down.

Naming Consistency2/5

Naming conventions are wildly mixed: some tools use verb_noun (get_post, subscribe, suggest_questions), some use noun phrases (entity_profile, recent_alerts, pipeworx_trending), and some use ad-hoc names (ask_pipeworx, bet_research, scan_dependency). Within sub-families (polymarket_*, ask_pipeworx_*) names are consistent, but overall there is no single predictable pattern.

Tool Count1/5

34 tools is excessive for a server named 'Reddit' when only 3 of them (get_post, get_subreddit, search_posts) actually relate to Reddit. The remaining 31 tools cover unrelated domains like Pipeworx data routing, Polymarket betting, memory management, and npm dependency scanning—an extreme scope mismatch for the advertised server name.

Completeness1/5

The Reddit surface is severely incomplete: it offers read-only post/subreddit/search functionality with no create, edit, delete, vote, comment, or user-profile operations. Conversely, the Pipeworx tooling is over-complete relative to the 'Reddit' name, covering data lookups, prediction markets, subscriptions, and memory—none of which belong in a Reddit server.