Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
REDDIT_CLIENT_IDYesYour Reddit client ID from the app preferences
REDDIT_USER_AGENTNoCustomize user agent (optional)
REDDIT_CLIENT_SECRETYesYour Reddit client secret from the app preferences

Tools

Functions exposed to the LLM to take actions

NameDescription
discover_reddit_resources

LAYER 1: Discover available Reddit resources and operations.

ALWAYS USE THIS FIRST to understand what's available before proceeding.

Args: topic: Optional topic to find relevant communities for include_communities: Whether to search for relevant subreddits discovery_depth: Discovery thoroughness - "quick": Single search (faster, 3-5 subreddits) - "comprehensive": Multiple searches (8-15 subreddits for broader perspective)

Returns: Available operations, relevant communities, and recommended workflow

get_operation_requirements

LAYER 2: Get detailed requirements for a Reddit operation.

USE THIS BEFORE EXECUTING to understand parameters, validation rules, and get suggestions.

Args: operation_id: The operation ID from discover_reddit_resources context: Optional context about what you're trying to accomplish

Returns: Parameter schemas, validation rules, suggestions, and common mistakes to avoid

execute_reddit_operation

LAYER 3: Execute a Reddit operation with validated parameters.

ONLY USE AFTER getting requirements from get_operation_requirements().

Args: operation_id: The operation to execute (from Layer 1) parameters: Parameters matching the schema from Layer 2
validate: Whether to validate parameters before execution (recommended)

Returns: Operation results or detailed error information

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
get_popular_subredditsGet list of 25 most popular subreddits. Returns a list of popular subreddits with their subscriber counts. This data is relatively static and ideal for caching.
get_server_infoGet information about this Reddit MCP server's capabilities. Returns server version, available tools, and usage examples.

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/king-of-the-grackles/reddit-mcp-poc'

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