get_blogs
Fetch all blog posts from the MCP Blog API to access and review available content in the system.
Instructions
Fetch all blogs from the mock API.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:16-20 (handler)The handler function for the get_blogs tool, decorated with @mcp.tool(), fetches all blogs from the mock API endpoint using httpx and returns the JSON response.@mcp.tool() def get_blogs(): """Fetch all blogs from the mock API.""" response = httpx.get(mock_api_url) return response.json()