Skip to main content
Glama
hongfanmeng

Bookstore MCP Server

by hongfanmeng

search_books_by_author

Find books by author name to locate specific titles or discover an author's complete works in the bookstore inventory.

Instructions

Search books by author.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
author_queryYes

Implementation Reference

  • The main handler function for the 'search_books_by_author' tool. It loads all books and filters those containing the author_query (case-insensitive). Registered via @mcp.tool() decorator.
    @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