Skip to main content
Glama

Agent Data Hub

Stack Overflow / Stack Exchange question search

search_stackoverflow
Read-onlyIdempotent

Search Stack Overflow (or any Stack Exchange site: serverfault, superuser, ethereum, math…) for questions matching an error message or problem. Filter by tags and answered-only; sort by relevance, votes, newest or activity. Returns title, link, tags, score, answer count, accepted-answer link, views, author and dates. Use when a coding agent hits an error and needs proven fixes. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_stackoverflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoStack Exchange site (default stackoverflow)
sortNorelevance (default), votes, newest or activity
tagsNoOptional tags, comma-separated, e.g. python,pandas
limitNoResults 1–30 (default 10)
queryYesError message or problem, e.g. viem contract reverted
answeredNotrue = only questions with an accepted answer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile needs no restating. The description adds genuinely non-structured behavior: the per-call price, the 10-free-calls-per-day allowance, the payment rail, and the exact result fields returned — all of which affect an agent's decision to call. It omits only minor traits such as empty-result behavior.

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?

Four dense sentences ordered purpose → filters/sort → return shape → usage trigger → cost, with no filler. The return-field enumeration earns its length because no output schema exists.

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?

For a six-parameter search tool with no output schema, the description covers what is searched, how to narrow and sort, what comes back, when to reach for it, and the cost model. An agent can decide and invoke correctly without consulting anything else.

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 coverage is 100% with per-parameter descriptions and an enum on sort, so the schema already carries the parameter burden. The description reinforces which filters exist and broadens the site parameter with concrete examples beyond "default stackoverflow", but adds no syntax or format detail the schema lacks.

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?

Specific verb + resource ("Search Stack Overflow ... for questions") plus explicit scope: error messages, tag filtering, answered-only, and sort modes. The mention of alternative Stack Exchange sites (serverfault, superuser, math) makes the searchable corpus unambiguous and clearly separates it from the sibling search_github/search_pubmed style tools.

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

Usage Guidelines4/5

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

"Use when a coding agent hits an error and needs proven fixes" gives a concrete trigger and implicitly narrows scope to problem-solving rather than general browsing. It stops short of stating when not to use it or naming another tool to prefer, so it is clear context without explicit routing.

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.

Resources