advanced_search
Search Stack Overflow questions using multiple filters like tags, score, dates, and accepted answers to get precise results.
Instructions
Advanced search for Stack Overflow questions with many filter options.
Args:
query (Optional[str]): Free-form search query
tags (Optional[List[str]]): List of tags to filter by
excluded_tags (Optional[List[str]]): List of tags to exclude
min_score (Optional[int]): Minimum score threshold
title (Optional[str]): Text that must appear in the title
body (Optional[str]): Text that must appear in the body
answers (Optional[int]): Minimum number of answers
has_accepted_answer (Optional[bool]): Whether questions must have an accepted answer
views (Optional[int]): Minimum number of views
url (Optional[str]): URL that must be contained in the post
user_id (Optional[int]): ID of the user who must own the questions
is_closed (Optional[bool]): Whether to return only closed or open questions
is_wiki (Optional[bool]): Whether to return only community wiki questions
is_migrated (Optional[bool]): Whether to return only migrated questions
has_notice (Optional[bool]): Whether to return only questions with post notices
from_date (Optional[datetime]): Earliest creation date
to_date (Optional[datetime]): Latest creation date
sort_by (Optional[str]): Field to sort by (activity, creation, votes, relevance)
include_comments (Optional[bool]): Whether to include comments in results
response_format (Optional[str]): Format of response ("json" or "markdown")
limit (Optional[int]): Maximum number of results to return
ctx (Context): The context is passed automatically by the MCP
Returns:
str: Formatted search results
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| tags | No | ||
| excluded_tags | No | ||
| min_score | No | ||
| title | No | ||
| body | No | ||
| answers | No | ||
| has_accepted_answer | No | ||
| views | No | ||
| url | No | ||
| user_id | No | ||
| is_closed | No | ||
| is_wiki | No | ||
| is_migrated | No | ||
| has_notice | No | ||
| from_date | No | ||
| to_date | No | ||
| sort_by | No | votes | |
| include_comments | No | ||
| response_format | No | markdown | |
| limit | No |