web_search
Search the web for information using natural language queries to find answers and data from online sources.
Instructions
Search the web for information about the given query
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- server.py:19-23 (handler)The implementation of the web_search tool handler. It is registered via the @mcp.tool() decorator and uses TavilyClient to perform the web search based on the query parameter, returning the search results. The function signature provides the input schema (query: str).@mcp.tool() def web_search(query: str) -> str: """Search the web for information about the given query""" search_results = client.get_search_context(query=query) return search_results