Skip to main content
Glama
7robots

Micro.blog Books MCP Server

by 7robots

get_bookshelves

Retrieve all bookshelves from Micro.blog to organize book collections, manage reading goals, and track reading progress through natural language commands.

Instructions

Get all bookshelves from Micro.blog.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler for 'get_bookshelves': calls the MicroBooksClient helper method and returns the result as a formatted JSON string.
    async def get_bookshelves() -> str:
        """Get all bookshelves from Micro.blog."""
        try:
            result = await client.get_bookshelves()
            return json.dumps(result, indent=2)
        except Exception:
            logger.exception("Failed to get bookshelves")
            raise
  • Core helper method in MicroBooksClient that performs the HTTP GET request to the Micro.blog Books API to fetch all bookshelves.
    async def get_bookshelves(self) -> dict:
        """Get all bookshelves."""
        async with httpx.AsyncClient() as client:
            response = await client.get(
                urljoin(BASE_URL, "/books/bookshelves"),
                headers=self.headers,
            )
            response.raise_for_status()
            return response.json()
  • MCP tool handler case for 'get_bookshelves' in the switch statement: calls the client helper and returns the result as JSON text content.
    case "get_bookshelves": {
      const result = await client.getBookshelves();
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
  • Core helper method in MicroBooksClient that performs the HTTP GET request to the Micro.blog Books API to fetch all bookshelves.
    async getBookshelves() {
      return await this.makeRequest("/books/bookshelves");
    }
  • Tool schema definition for 'get_bookshelves' in the tools list, specifying empty input schema (no parameters required).
      name: "get_bookshelves",
      description: "Get all bookshelves from Micro.blog",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It states a read operation ('Get') but doesn't disclose behavioral traits such as authentication needs, rate limits, pagination, or what the output contains. This leaves gaps for an agent to understand how to use it effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, clear sentence with no wasted words. It's front-loaded with the core action and resource, making it efficient and easy to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 0 parameters, 100% schema coverage, and an output schema exists, the description is minimally adequate. However, it lacks context on usage versus siblings and behavioral details, which are needed for full completeness in a server with multiple related tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100%, so no parameter information is needed. The description implies no inputs are required, which aligns with the schema, earning a baseline score of 4 for adequately handling the lack of parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('all bookshelves from Micro.blog'), making the purpose evident. However, it doesn't differentiate from sibling tools like 'get_bookshelf_books' or 'get_reading_goals', which also retrieve related data, so it lacks sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. For example, it doesn't specify if this is for listing all bookshelves versus filtered ones or when to prefer 'get_bookshelf_books' for books within a specific bookshelf.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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