Skip to main content
Glama

Weir: Reddit and X (Twitter) data

Get Reddit comments

get_reddit_comments
Read-onlyIdempotent

Unavailable right now: Reddit is refusing requests from Weir's servers, so this tool fails (without charging). Use the X tools meanwhile, and tell the user Reddit data is down; https://weirapp.io/status shows when it is back. Fetch the comment tree of a Reddit post as a flat list, each with depth and parentId. Use sort=top for the most upvoted replies. Costs 1 credit + 3 credits per comment returned. When meta.nextCursor is set, call again with cursor set to it for the next page.

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": {
      "id": "<id>"
    },
    "name": "get_reddit_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesReddit post id, e.g. 1abc2de. A reddit.com permalink, a redd.it link, or a t3_ id also works.
sortNo`confidence` is Reddit's "best"; `new` puts the latest first.confidence
depthNoHow many reply levels to follow, 1-10. Default 3.
limitNoComments to return, 1-100. Default 20.
cursorNo`meta.nextCursor` from the previous page, unchanged. Opaque, signed, and bound to the other parameters: change any of them and start again without a cursor.
commentNoFocus on one comment (its id, without `t1_`): returns it, up to `context` of its ancestors, and its replies — the view a comment's permalink opens.
contextNoAncestors to include above `comment`. Default 3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Adds substantial context beyond the readOnly/idempotent/non-destructive annotations: a current outage that fails without charging, a variable cost model ('1 credit + 3 credits per comment returned'), the flattened return shape with depth and parentId, and cursor-based pagination. It does not mention cursor expiry or rate limits, which are the remaining behavioral unknowns for a paged, metered call.

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?

Front-loads the outage warning, which is the right priority given a currently-broken tool, then moves to purpose, cost, and pagination in that order. The outage sentence is long and slightly crowds the one-line purpose statement, but every sentence carries information an agent needs.

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 7 parameters, 100% schema coverage, and no output schema, the description covers the pieces the schema cannot: cost, failure behavior, the flat-list return shape with depth/parentId, and how to page. Minor gaps remain around empty-thread behavior and the focused `comment`/`context` view, which only the schema explains.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds value by explaining that sort=top yields the most upvoted replies and by spelling out the meta.nextCursor round-trip workflow. The cursor's binding to other parameters is documented in the schema rather than the description, so it does not add much beyond structured fields.

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: 'Fetch the comment tree of a Reddit post as a flat list, each with depth and parentId.' This is unambiguous and naturally distinct from post-level or user-level siblings, but it never names an alternative (e.g. get_subreddit_comments, get_reddit_user_comments) to confirm the boundary.

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?

Gives an explicit when-not ('Reddit is refusing requests... this tool fails (without charging)') plus a fallback directive to use the X tools and inform the user, and on the happy path it says which sort to use for top replies and how to continue pagination. The fallback is vague about which X tool to pick, and there is no guidance on choosing this tool over get_subreddit_comments or get_reddit_user_comments.

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