Skip to main content
Glama
hongfanmeng

Bookstore MCP Server

by hongfanmeng

search_books_by_title

Find books in the Bookstore MCP Server by entering a title query to locate specific publications from the inventory.

Instructions

Search books by title.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
title_queryYes

Implementation Reference

  • The main handler function for the 'search_books_by_title' MCP tool. It uses a @mcp.tool() decorator for registration and schema inference from type hints and docstring. Filters books by title substring match (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