Skip to main content
Glama
reddit-search
by mattlau1

search_comments

Search comment bodies in a specified subreddit by keyword, with synonym expansion to find related discussions; each hit includes its parent post ID for context.

Instructions

Search comment bodies in one subreddit (required). Adds synonyms. Each hit shows the parent post id.

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

Input Schema

NameRequiredDescriptionDefault
sortNodesc
afterNo
limitNo
queryYes
beforeNo
subredditYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose two real behaviors beyond structured fields: queries are expanded with synonyms, and hits carry the parent post id. It omits pagination behavior, result ordering, rate limits, or auth expectations, which matters for a 6-parameter search tool.

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?

Three short, front-loaded sentences with no filler; the scope constraint comes first. The telegraphic fragments ('Adds synonyms') are terse to the point of being ambiguous about what gets expanded.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, and mentioning the parent post id is a useful bonus. But with six parameters, zero schema coverage, and no annotations, ignoring four parameters (sorting, limit, and both pagination cursors) leaves the definition under-specified for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and largely fails. It explains only subreddit (single value) and query (searched against comment bodies, synonym-expanded), leaving sort, limit, after, and before entirely undocumented in both places.

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 ('Search comment bodies') plus a hard scope ('in one subreddit'), which distinguishes it from sibling search_posts (post bodies) without naming it. The parenthetical '(required)' reinforces scope but the description never explicitly contrasts with the other search tool.

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

Usage Guidelines2/5

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

The only guidance is the scoping constraint that a subreddit is required, which is a schema fact restated rather than a when-to-use rule. It never says when to choose this over search_posts or get_thread, nor when comment search is inappropriate.

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