Skip to main content
Glama

search

Search Reddit and YouTube via official APIs using your own credentials, returning structured JSON results for research, monitoring, and compliance review.

Instructions

Search Reddit or YouTube through its official, documented API only (no scraping, no cookie import, no logged-in-human impersonation) using your own BYOK credentials, and return matching posts/videos as structured JSON. Call this whenever an agent needs recent or historical public content from one of these two platforms for research, monitoring, or compliance review; do not call it for platforms other than reddit/youtube (it returns a clear unsupported-platform error rather than guessing) or when you only need to check whether credentials work (use auth_status for that, it's cheaper and makes no search API call). Prerequisite: BYOK credentials for the target platform must already be stored locally via auditreach auth --platform <platform> -- this tool never sets up credentials itself and will fail fast with a 'No credentials found' error if they are missing. Side effects: makes a live network call to Reddit's or YouTube's official API (consuming that platform's rate limit/quota), and on success appends one tamper-evident, hash-chained entry to the local audit log recording platform, endpoint, scope, and timestamp -- this tool is not read-only and not idempotent in the sense that every successful call grows the audit log by one entry, though repeating an identical search is otherwise safe and does not mutate any remote state. If output is given, the full result set is also written to that local file path. Parameters: platform (required, 'reddit' or 'youtube'); query (search terms, required for reddit, optional for youtube); subreddit (reddit only, restrict to one subreddit, e.g. 'MachineLearning'); channel (youtube only, restrict to one channel handle, e.g. '@AnthropicAI'); since (youtube only, ISO date like '2026-06-01', only results published after this date); max_results (int, default 25, capped at 100 for reddit and 50 for youtube); before/after (reddit only, fullname pagination cursors like 't3_abc123'); output (optional local file path to also write the full JSON results to). Example calls: {"platform": "reddit", "query": "prompt injection", "subreddit": "MachineLearning", "max_results": 20}; {"platform": "youtube", "channel": "@AnthropicAI", "since": "2026-06-01", "max_results": 10}. Returns a JSON object with success (bool), exitCode (int), and on success a results array of items shaped like {id, title, url, createdAt, author, score, extra}; on failure an error string explains what went wrong (missing credentials, missing query, unsupported platform, or an upstream API error) instead of raising an exception.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNo
queryNo
sinceNo
beforeNo
outputNo
channelNo
platformYes
subredditNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description carries full weight and discloses critical side effects: makes a live network call consuming rate limits, appends a tamper-evident hash-chained entry to the audit log on success, is not read-only, and returns an error string rather than throwing an exception. This is thorough behavioral disclosure.

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?

Though lengthy, the description is well-structured: purpose/constraints, usage guidelines, side effects, parameter details, examples, and return format. Every sentence adds necessary information; there is no redundancy or filler, making the length appropriate for the tool's complexity.

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 the tool has 9 parameters, no annotations, and an output schema is referenced but not detailed, the description covers all necessary context: prerequisite credentials, platform-specific restrictions, failure modes (missing credentials, unsupported platform), side effects, return shape, and pagination. It is fully complete for an agent to select and invoke correctly.

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

Parameters5/5

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

The input schema has 0% description coverage and only parameter titles, but the description fully compensates by explaining each parameter's purpose, platform-specific applicability (e.g., subreddit for reddit only, channel for youtube only), defaults, caps (max_results capped at 100 for reddit and 50 for youtube), and even example calls. This adds substantial meaning beyond the schema.

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 or YouTube through its official, documented API... and return matching posts/videos as structured JSON.' It also distinguishes itself from sibling tools by explicitly directing credential checks to auth_status, making the purpose unmistakable.

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?

It provides explicit when-to-use ('Call this whenever an agent needs recent or historical public content... for research, monitoring, or compliance review') and when-not-to-use (platforms other than reddit/youtube, credential checks). It names auth_status as the cheaper alternative for credential validation, satisfying the need for alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RudrenduPaul/auditreach'

If you have feedback or need assistance with the MCP directory API, please join our Discord server