Skip to main content
Glama
hongfanmeng

Bookstore MCP Server

by hongfanmeng

search_books_by_author

Find books in a bookstore by entering an author's name to retrieve their available works.

Instructions

Search books by author.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
author_queryYes

Implementation Reference

  • The handler function for the 'search_books_by_author' tool. It loads all books and returns those where the author name contains the given query string (case-insensitive search). The schema is inferred from the type hint (author_query: str) and docstring.
    @mcp.tool() def search_books_by_author(author_query: str): """Search books by author.""" books = load_books() return [book for book in books if author_query.lower() in book["author"].lower()]

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/hongfanmeng/bookstore-mcp'

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