search_questions
Search Stack Overflow or another Stack Exchange site for existing discussions on a topic. Returns question summaries with title, score, tags, and link so you can find solutions without reading full text.
Instructions
Search Stack Overflow (or another Stack Exchange site) for questions about a topic.
Use this to find existing discussions and solutions. It returns short summaries (title, score, tags, link), not full text. To read a question and its answers, pass a question_id from the results to get_question.
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_questions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Stack Exchange site slug, e.g. 'stackoverflow' or 'serverfault'. | stackoverflow |
| sort | No | Result order. 'votes' favors well-regarded questions. | relevance |
| tags | No | Optional tags to restrict results, e.g. ['python', 'asyncio'] (max 5). | |
| limit | No | Number of results to return. | |
| query | Yes | Keywords to search for, e.g. 'asyncio sleep vs time.sleep'. | |
| accepted_only | No | Only return questions that have an accepted answer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| results | Yes | ||
| has_more | Yes |