Skip to main content
Glama

Stack Overflow 搜索

stackoverflow_search
Read-onlyIdempotent

搜索 Stack Overflow 技术问答,返回问题标题、摘要、答案数、得分与链接。用于排查代码报错、查技术方案。Example: {"query":"javascript array deduplicate","answers":1,"limit":5}

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": {
      "limit": 5,
      "query": "javascript array deduplicate",
      "answers": 1
    },
    "name": "stackoverflow_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回条数 1-10,默认 5
queryYes搜索关键词
answersNo最少答案数过滤,默认 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / answers / description
      Previous value: -"最少答案数过滤(1=只要有答案,0=不限),默认 1"New value: +"最少答案数过滤,默认 1"
    • changedInput schema / properties / query / description
      Previous value: -"搜索关键词,如 \"python dict sort\"、\"react hooks error\""New value: +"搜索关键词"
  2. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is fully covered by structured fields. The description adds value by enumerating the returned fields in the absence of an output schema, but it says nothing about result ordering (relevance vs. score), Stack Overflow API rate limits, or how errors/empty results are surfaced.

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?

The definition is two short sentences and front-loads the resource and return payload before the usage hint, which is efficient. The trailing Example JSON duplicates the input schema's examples array and is the one element that does not earn its place.

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?

For a 3-parameter read-only search with no output schema, the description covers purpose, use case and return fields, which is most of what an agent needs. Minor gaps remain around result ordering and rate-limit behaviour, but nothing blocks 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% — each of query, limit (1-10, default 5) and answers (default 1) is already documented in the schema, so the baseline of 3 applies. The inline Example merely restates the schema's own examples object and adds no new semantic meaning about parameter interaction.

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?

The description names a specific verb (搜索) and a specific resource (Stack Overflow 技术问答), and it lists what comes back (标题、摘要、答案数、得分、链接). This makes it distinguishable from siblings such as github_search or hacker_news_search by resource alone, though the description never explicitly contrasts itself with those alternatives.

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?

"用于排查代码报错、查技术方案" gives a clear use context that an agent can match against a user's intent. There is no when-not guidance and no mention of when a sibling (e.g. github_search for library-specific issues, web_fetch for blog posts) would be a better pick.

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.