Skip to main content
Glama

StackExchange (Unofficial)

Stackexchange Search Questions

stackexchange_search_questions
Read-onlyIdempotent

Search for questions on StackOverflow or any StackExchange site. Returns title, body, score, answer count, tags, and link.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "python async await"
    },
    "name": "stackexchange_search_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics
limitNoNumber of results to return (1-20, default 5)
queryYesSearch query string
_apiKeyNoOptional, a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override.

Output Schema

NameRequiredDescriptionDefault
siteYesThe StackExchange site slug used for the search
countYesNumber of questions returned
has_moreYesWhether there are more results available
questionsYesArray of search result questions
quota_remainingYesRemaining API quota for this user

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override."New value: +"Optional, a StackExchange API key (free, 10k/day) for a dedicated quota. The gateway supplies a platform key; pass your own only to override."
  2. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the safety and side-effect profile is fully covered. The description adds only a list of returned fields, which is largely redundant given the tool has an output schema, and says nothing about ranking, quota behavior beyond the schema, or whether search covers titles only versus bodies.

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?

Two short sentences, purpose front-loaded and the return-value summary second; nothing is padded or vague. It loses a point only because the field enumeration partially duplicates the existing output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 100% schema coverage, an output schema, and full annotations, the description supplies enough for correct invocation: the resource searched, the site scope, and the returned fields. The remaining gap is search semantics (what is matched and how results are ordered), which matters for a search tool but is minor here.

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 site slugs, the 1–20 limit range with default 5, the query string, and the _apiKey override are all documented in the schema already. The description adds no extra parameter meaning such as search syntax, quoting, or tag operators, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Search for questions on StackOverflow or any StackExchange site" gives a specific verb plus resource plus scope, and the second sentence enumerates the returned fields. It is clear on its own but never contrasts itself with sibling search tools (search_within, suggest_questions, list_questions_by_tag), so sibling differentiation is left to the agent.

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

Usage Guidelines2/5

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

The description says what the tool does but never states when to use it versus the many nearby search/question tools; there are no inclusion or exclusion conditions. An agent must infer routing from the names of siblings alone.

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.