search_webkr
Search for web documents using keywords with page navigation to find relevant online information through Naver Search.
Instructions
Searches for web documents using the given keyword. The page parameter allows for page navigation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| display | No | ||
| page | No |
Implementation Reference
- server.py:589-592 (registration)MCP tool registration for 'search_webkr' using the @mcp.tool decorator.@mcp.tool( name="search_webkr", description="Searches for web documents using the given keyword. The page parameter allows for page navigation." )
- server.py:593-606 (handler)The handler function that executes the tool logic: calculates pagination, prepares params, and delegates to shared _make_api_call with webkr-specific endpoint and model.async def search_webkr(query: str, display: int = 10, page: int = 1) -> str: """ Searches for web documents using the given keyword. The page parameter allows for page navigation. Args: query (str): The keyword to search for display (int, optional): The number of results to display. Default is 10. page (int, optional): The starting page number. Default is 1. """ start = calculate_start(page, display) display = min(display, 100) params = {"query": query, "display": display, "start": start} return await _make_api_call("webkr.json", params, WebkrResult, "Web Document")
- server.py:127-127 (schema)Pydantic model for the overall webkr search result structure, inheriting SearchResultBase and specifying items as List[WebkrItem].class WebkrResult(SearchResultBase): items: List[WebkrItem]
- server.py:65-65 (schema)Type alias defining WebkrItem as DescriptionItem, which provides title, link, and description fields.WebkrItem = DescriptionItem
- server.py:46-48 (schema)Base Pydantic model for description-containing items like WebkrItem, extending BaseItem with optional description field.class DescriptionItem(BaseItem): description: Optional[str] = None