get_reading_goals
Retrieve and view reading goals to track progress and manage reading targets within your Micro.blog book collection.
Instructions
Get reading goals.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- dxt-extension/server/index.js:570-580 (handler)Handler for 'get_reading_goals' tool: calls client.getReadingGoals() and returns JSON-formatted result in MCP response format.case "get_reading_goals": { const result = await client.getReadingGoals(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
- MicroBooksClient helper method: makes HTTP GET request to Micro.blog /books/goals endpoint to fetch reading goals.async getReadingGoals() { return await this.makeRequest("/books/goals"); }
- dxt-extension/server/index.js:405-411 (registration)Tool registration including name, description, and empty input schema for list tools response.name: "get_reading_goals", description: "Get all reading goals", inputSchema: { type: "object", properties: {}, }, },
- micro_mcp_server/server.py:294-301 (handler)FastMCP tool handler for 'get_reading_goals': calls client method and returns JSON string.async def get_reading_goals() -> str: """Get reading goals.""" try: result = await client.get_reading_goals() return json.dumps(result, indent=2) except Exception: logger.exception("Failed to get reading goals") raise
- micro_mcp_server/server.py:129-138 (helper)MicroBooksClient helper method: HTTP GET to /books/goals using httpx.async def get_reading_goals(self) -> dict: """Get reading goals.""" async with httpx.AsyncClient() as client: response = await client.get( urljoin(BASE_URL, "/books/goals"), headers=self.headers, ) response.raise_for_status() return response.json()