get_blogs
Fetch all blogs from the MCP Blog API service to access available blog posts for reading or analysis.
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 implementation of the get_blogs tool. It is registered via the @mcp.tool() decorator and fetches all blogs from the mock API endpoint defined in the MOCK_API_URL environment variable, returning the JSON response.@mcp.tool() def get_blogs(): """Fetch all blogs from the mock API.""" response = httpx.get(mock_api_url) return response.json()