search_blogs
Find blog posts by title using the MCP Blog API's search functionality to locate specific content.
Instructions
Search for blogs by title using the mock API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Implementation Reference
- main.py:23-26 (handler)The handler function for the 'search_blogs' tool. It performs an HTTP GET request to the mock API with the query as the 'title' parameter and returns the JSON response.
def search_blogs(query: str): """Search for blogs by title using the mock API.""" response = httpx.get(mock_api_url, params={'title': query}) return response.json()