Skip to main content
Glama

Where to Buy a Book

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. Most sellers publish no stock or prices, so call a shop with the ISBN; statedOffers lists the ones whose own page data does state a price and stock for this ISBN (from the product graph, with seenAt).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "where_to_buy_book"
  }
}

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. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, so the bar is lower, yet the description adds substantive context: results come from Open Library, inStore coverage is a 10-mile radius from OpenStreetMap, and most sellers publish no stock or prices. The `statedOffers`/`seenAt` caveat and the advice to call the shop with the ISBN are genuinely useful behavioral disclosures; only error handling for an unresolved ISBN is unstated.

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?

It is front-loaded with the purpose, then inputs, then outputs, and every clause carries information. The long comma-separated retailer list and the dense semicolon-joined sentences make it heavier than necessary, but 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?

There is no output schema, so the description must carry the return contract and it does: edition fields, the link list with `kind` and `sponsored`, inStore store finders plus nearby shops with address/phone/hours/distance, and `statedOffers`. For a zero-required-parameter, read-only lookup tool this is complete enough to call correctly.

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, but the description adds the OR-relationship between the three lookup modes and the title+author pairing that the flat all-optional schema does not express. It also restates format tolerances (10 or 13 digits, hyphens fine) and that zip must be US, which reinforces rather than duplicates schema intent.

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

Purpose5/5

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

The description states a specific verb+resource ('Where to buy a book') and immediately enumerates both the input modes (isbn, title+author, item, zip) and the exact answer payload (edition metadata, online links, inStore results). No sibling tool covers book purchasing, and an agent can tell from the text alone what question this answers.

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?

It clearly routes between the three lookup modes ('give an isbn ... or a title and author, or item') and explains that zip is only needed for the inStore portion, which is real when-to-use guidance. It stops short of stating exclusions or naming an alternative sibling for cases this tool can't handle (e.g. non-book products).

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.

Resources