Skip to main content
Glama
hongfanmeng

Bookstore MCP Server

by hongfanmeng

get_books_in_stock

Retrieve all books currently available in the bookstore inventory that are in stock and ready for purchase.

Instructions

Get books with count > 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get_books_in_stock' tool. It uses a list comprehension to filter and return only books where the 'count' field is greater than 0, by loading the books data via the load_books helper.
    @mcp.tool() def get_books_in_stock(): """Get books with count > 0.""" return [book for book in load_books() if book["count"] > 0]

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