Skip to main content
Glama

Weir: Reddit and X (Twitter) data

Search one subreddit

search_subreddit
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. Search public posts inside one subreddit. Same fields as search_reddit; use it when the community is already known. Costs 1 credit + 3 credits per post 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": {
      "name": "<name>",
      "query": "<query>"
    },
    "name": "search_subreddit"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSubreddit name without r/, e.g. webdev. r/name or a subreddit URL also works.
sortNo`new` is arrival order; `comments` ranks by comment count.relevance
timeNoOnly posts created within this window.all
limitNoResults to return, 1-50. Default 10; widen only after the first page proved useful.
queryYesKeywords to match.
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.
includeNsfwNoInclude results marked NSFW. Off by default; what it removes is reported in `meta.omittedNsfw`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the read-only/idempotent safety profile; the description adds far more: a concrete cost model (1 credit + 3 credits per post returned), the current failure mode with the guarantee it fails without charging, a status URL to check recovery, and the pagination loop via meta.nextCursor. These are exactly the behavioral facts an agent needs to plan a call and set user expectations.

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-loaded with the most decision-relevant information (the tool is currently failing, use X instead) followed by purpose, cost, and pagination. Dense and mostly waste-free, though the outage banner plus status URL and the cost sentence together consume over half the text and will age poorly once the outage ends.

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?

For a 7-parameter, no-output-schema search tool, the description covers the otherwise-invisible pieces: pricing, failure behavior, alternate routing, and the cursor pagination contract, plus a hint at return metadata (meta.nextCursor, meta.omittedNsfw). Nothing an agent needs to call it correctly or interpret the page loop is missing.

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 every parameter is already documented in the schema; the description's cursor sentence largely restates schema content about the cursor being opaque and parameter-bound. "Same fields as search_reddit" is a useful cross-reference but not new per-parameter meaning, so the baseline 3 applies.

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?

States a specific verb and resource ("Search public posts inside one subreddit") and immediately distinguishes itself from the sibling broad search: "Same fields as search_reddit; use it when the community is already known." An agent can pick this over search_reddit without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit selection condition versus the alternative (use when the community is already known) and names concrete fallbacks during the outage ("Use the X tools meanwhile"), including what to tell the user. Both the normal-path and failure-path routing decisions are spelled out.

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