Skip to main content
Glama

where_to_buy_book

Read-onlyIdempotent

Where to buy a book. Give an isbn (10 or 13 digits, hyphens fine), or a title and author, or item (a books-collection item id). Answers with the edition from Open Library (title, authors, publisher, pages, cover), online: links at Amazon, Bookshop.org, Barnes & Noble, Books-A-Million, Target, Walmart, Powell's, ThriftBooks, Better World Books, AbeBooks, eBay, BookFinder, Google Play Books, Kobo, Libby and WorldCat, each with kind (new, used, ebook, borrow) and sponsored. Give a US zip for inStore: the chains' store finders for that ZIP and the bookshops and libraries within 10 miles from OpenStreetMap, with address, phone, hours and distance. Sellers publish no stock or prices, so call a shop with the ISBN.

Input Schema

NameRequiredDescriptionDefault
zipNoA US ZIP code for shops near you (optional), 5 digits, e.g. 97209
isbnNoISBN-10 or ISBN-13, hyphens fine (optional), e.g. 978-0-14-143951-8
itemNoA books-collection item id (optional), e.g. 81234567
titleNoTitle, when there is no ISBN (optional), e.g. Pride and Prejudice
authorNoAuthor, with a title (optional), e.g. Jane Austen

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only/idempotent/open-world, and the description goes well beyond them: it discloses that sellers publish no stock or prices, flags the `sponsored` field, explains `kind` values, and advises calling a shop with the ISBN. This is exactly the kind of caveat an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then dense with return-shape and caveat detail. The long retailer list is verbose but conveys real informational content; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still fully explains the return structure (edition fields, online links with kind/sponsored, inStore with address/phone/hours/distance). An agent can invoke and interpret the result without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds value by tying title to author, clarifying that item is a books-collection id, and restricting zip to US in-store lookups. It complements rather than repeats the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (book) and outcome (where to buy it), and the description enumerates the exact answer shape (edition + online sellers + in-store). No book-related sibling exists to differentiate from, so the ceiling is a clear but non-differentiating purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly explains the three valid input modes (isbn, title+author, item) and the condition that unlocks in-store results (a US zip). It doesn't name exclusions or fallback alternatives, but the usage context is clear for each parameter.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.