Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FREELLMAPI_KEYNoAPI key for LLM API (optional, for --analyze).
OPENAI_API_KEYNoAlternative OpenAI API key (optional, for --analyze).
OPENAI_BASE_URLNoAlternative OpenAI base URL (optional, for --analyze).
REDDIT_CLIENT_IDNoOptional Reddit client ID for OAuth to increase rate limit.
FREELLMAPI_BASE_URLNoBase URL for LLM API (optional, for --analyze).
REDDIT_CLIENT_SECRETNoOptional Reddit client secret for OAuth.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
reddit_profilesA

List the available topic profiles by name (e.g. hospital-tech).

A profile defines which subreddits to mine, the search terms, and the pain lexicon. Use this first to discover what can be swept or queried.

reddit_profile_getA

Return one profile's full configuration as a dict.

Includes its subreddits, search_terms, pain_lexicon (weighted regex rules), pain_threshold and the evidence thresholds that gate reported gaps.

reddit_sweepA

Run a full two-stage sweep for a profile and persist the results.

Stage 1 pulls + scores posts across the profile's subreddits and search terms; stage 2 deep-fetches comments on the highest-pain threads. This makes live Reddit calls and may take a while. time (hour|day|week|month|year|all), limit (posts per sub) and max_threads override the profile defaults when non-empty/non-zero. Returns a SweepResult summary (counts, per-subreddit tallies, top matched patterns).

reddit_searchA

Search Reddit live for a query and store the matching posts.

If subreddits is given the search is restricted to each of them (results merged + de-duplicated); otherwise it is a site-wide search. Posts are stored so you can drill into them later with reddit_query / reddit_get_evidence / reddit_fetch_thread. Returns the stored posts as dicts (id, subreddit, author, score, permalink, title, body, ...).

reddit_fetch_threadB

Fetch a post's comment tree live and store the comments.

post_id may be a bare id (abc123) or a fullname (t3_abc123). Returns {"post": <post dict or None>, "comments": [<comment dicts>], "comments_collected": N}. The post object is included when it is already in the store (e.g. from a prior sweep/search). Comments are stored so you can cite them as evidence afterwards.

reddit_queryA

Query already-stored items (no network).

Filters: profile (which sweep collected it), subreddit, min_pain (lower bound on the deterministic pain score), contains (case-insensitive substring over title+body). sort is one of pain|score|new|comments. Returns hydrated item dicts including their matched lexicon patterns.

reddit_get_evidenceA

Resolve stored items into citable evidence for the given ids.

Returns one EvidenceItem dict per known id (in the order requested) with the permalink and a trimmed verbatim quote — use this to ground any claim in a real Reddit link instead of paraphrasing. Unknown ids are skipped.

reddit_statsA

Summary stats for the store (optionally scoped to one profile).

Returns totals, the post/comment split, a per-subreddit breakdown, the most frequent matched patterns, and the (min, max) created-utc date range.

reddit_exportB

Export stored items as a serialized string in json, csv or md.

Applies the same profile / min_pain filters as reddit_query and returns the rendered payload as text (highest pain first). Useful for handing a dataset back to the user.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/011-sam-110/Prospector'

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