Skip to main content
Glama
7robots

Micro.blog Books MCP Server

by 7robots

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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"); }
  • 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: {}, }, },
  • 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
  • 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()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/7robots/micro-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server