Skip to main content
Glama

stackexchange-mcp-server

Search Stack Exchange Questions

stackexchange_search_questions
Read-onlyIdempotent

Search questions across a Stack Exchange site. Returns ranked questions with title, score, answer count, accepted status, tags, and excerpt — no bodies at this stage. Results supply question_id values for stackexchange_get_thread, which fetches the full question body and all answers. Use the site parameter to target a specific community (e.g. "stackoverflow", "superuser", "unix"); call stackexchange_list_sites to discover valid site values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteNoStack Exchange site to search — use the api_site_parameter value (e.g. "stackoverflow", "superuser", "serverfault"). Defaults to "stackoverflow". Call stackexchange_list_sites to discover valid values.stackoverflow
sortNoResult ordering: "relevance" (default, best match), "votes" (highest score first), "activity" (most recently active), "newest" (most recently created).relevance
tagsNoFilter results to questions with all specified tags.
queryYesFull-text search query (e.g. "python async generator send value").
minScoreNoMinimum question score — excludes questions with lower scores. Setting minScore orders results by score (votes), which may differ from the requested sort.
pageSizeNoNumber of results to return (1–30, default 10).
acceptedOnlyNoWhen true, return only questions that have an accepted answer.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
capNoThe pageSize cap applied to this request.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of results returned.
noticeNoActionable guidance when results are empty or filtered.
quotaMaxNoMaximum API quota calls per day (300 keyless, ~10,000 with API key).
questionsNoQuestions matching the search query, ordered by the specified sort.
truncatedNoTrue when results were capped at pageSize.
attributionNoContent license notice. Stack Exchange content is licensed under CC BY-SA 4.0 and requires attribution.
quotaRemainingNoRemaining API quota calls for the current day.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world behavior, and the description does not contradict them. It adds useful non-obvious context: results are ranked, bodies are omitted, and returned question_ids feed stackexchange_get_thread. It does not discuss pagination or rate limits, but those are not required for a read-only search with an output schema.

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?

Three front-loaded sentences: core action first, then return-value scope and a key limitation, then downstream workflow. Every sentence contributes distinct information, and the prose is compact without restating the schema at length.

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?

The tool is well-covered by the combination of a 100%-described schema, read-only/idempotent/open-world annotations, an output schema, and a description that explains the search-to-get_thread workflow and how to discover valid sites. An agent has everything needed to decide when to call it and how to invoke it correctly; the only implicit contrast with stackexchange_get_tag_faq is not material to correct invocation.

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 the input schema already documents every parameter's meaning, defaults, and constraints. The description mentions the `site` parameter and list_sites, but that guidance duplicates the schema rather than adding new semantics. Baseline 3 is appropriate because the schema carries the load and the description adds only marginal integration context.

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+resource pair ('Search questions across a Stack Exchange site') and names the exact returned fields (title, score, answer count, accepted status, tags, excerpt), explicitly noting bodies are not included. It differentiates from stackexchange_get_thread by framing search results as providers of question_id values for that sibling, so an agent can distinguish searching from fetching full threads.

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 embeds the tool in a workflow: search to find ranked questions, then call stackexchange_get_thread for full bodies/answers, and call stackexchange_list_sites when site values are needed. 'No bodies at this stage' acts as a when-not signal for body retrieval, and the alternatives are named explicitly. This gives an agent clear decision guidance without needing to open sibling schemas.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: site discovery, tag-based FAQ retrieval, free-text search, full thread retrieval, and user profile lookup. The descriptions explicitly cross-reference when to use which, eliminating ambiguity.

Naming Consistency5/5

All tools share the stackexchange_ prefix and follow a consistent verb_noun pattern (get_, list_, search_). The naming style is uniform and predictable.

Tool Count5/5

Five tools is well-scoped for a read-only Stack Exchange client. Each tool covers a distinct, necessary operation without redundancy or bloat.

Completeness5/5

The tool surface covers the full read-only workflow: discover sites, search questions, retrieve tag FAQs, fetch full threads with answers, and inspect user profiles. No significant gaps remain for the intended domain.