Search Stack Overflow questions
stack_overflow_questions_searchSearch Stack Overflow questions and answers by words, title, body, tag, author or answer count, with snippets. Optional inputs: site, q, title, body, tagged and 14 more. Returns a list (use cursor when paginated). Costs credits; see meta.creditsCharged.
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": {
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "stack_overflow_questions_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Free text to find in titles, bodies and tags. | |
| body | No | Text that must be in the question body. | |
| mode | No | `full` (default) returns questions. `excerpt` returns the questions and answers that match, each with a highlighted snippet. | |
| site | No | Stack Exchange site, by its API name (`askubuntu`, `serverfault`, `math`, `ru.stackoverflow`). Default: `stackoverflow`. The sites endpoint lists them all. | |
| sort | No | Order: `relevance` (default), `creation` (the only one that pages without a ceiling), `activity` or `votes`. Ties can repeat or skip rows. | |
| user | No | Only questions asked by this user id. | |
| limit | No | Up to this many rows per page, 1 to 100. Default: 30. A page can hold fewer than `limit` rows where rows share a creation second or a block of 100 rows ends. Follow `page.nextCursor` until `hasMore` is false. | |
| order | No | Direction of the sort: `desc` (default) or `asc`. | |
| title | No | Text that must be in the title. | |
| closed | No | `true` for closed questions, `false` for open ones. | |
| cursor | No | Cursor from `page.nextCursor` of the previous response. It only works with the same filters. | |
| tagged | No | Only questions that carry all of these tags, comma-separated, up to 5. | |
| context | Yes | Describe the user's underlying goal in one sentence, not the tool you are calling. | |
| include | No | `body` adds the question text (HTML and Markdown) to each row in `full` mode. Default: none. | |
| accepted | No | `true` for questions with an accepted answer, `false` for those without. | |
| viewsMin | No | Only questions with at least this many views. | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (for example "claude-opus-4-8" or "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" and do not guess. | |
| notTagged | No | Leave out questions that carry any of these tags, comma-separated, up to 5. | |
| answersMin | No | Only questions with at least this many answers. | |
| createdAfter | No | Only questions asked at or after this time, as an ISO 8601 date or time (such as `2026-01-31`) or epoch seconds. A time with no zone is UTC. | |
| createdBefore | No | Only questions asked before this time, as an ISO 8601 date or time (such as `2026-01-31`) or epoch seconds. A time with no zone is UTC. | |
| conversation_id | No | Echo the conversation_id from the server's previous response. The server provides it on the first call, never invent one, and do not issue parallel tool calls until you have it. |