Skip to main content
Glama
hongfanmeng

Bookstore MCP Server

by hongfanmeng

search_books_by_title

Search for books in a bookstore inventory by entering a title query to find specific publications and availability information.

Instructions

Search books by title.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
title_queryYes

Implementation Reference

  • The core handler function for the 'search_books_by_title' tool. It is registered via the @mcp.tool() decorator and implements the search logic by filtering books whose titles contain the given query string (case-insensitive).
    @mcp.tool() def search_books_by_title(title_query: str): """Search books by title.""" books = load_books() return [book for book in books if title_query.lower() in book["title"].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