Skip to main content
Glama

NicheDB: Where to Buy a Book

nichedb_where_to_buy_book
Read-onlyIdempotent

[NicheDB] 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).

Served by NicheDB (https://nichedb.dev/docs/mcp).

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": "nichedb_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.3/5.0
Behavior5/5

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

Beyond the read-only and open-world annotations, it identifies Open Library and OpenStreetMap as sources, explains the 10-mile local search, labels link kinds and sponsorship, and describes `statedOffers` with `seenAt`. Most importantly, it discloses that most seller links do not establish current stock or pricing and advises calling the shop with the ISBN.

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?

The lookup modes are front-loaded, and the remaining sentences follow a logical online, local, then offer-availability structure. The exhaustive retailer catalog makes the definition bulky, and the final 'Served by NicheDB' documentation line adds little invocation guidance.

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?

For a read-only lookup with five optional parameters and no output schema, the description supplies unusually complete input, output, provenance, distance, and availability context. The absence of no-match behavior or multi-identifier precedence is a minor gap rather than a barrier to correct invocation.

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?

Although the schema already describes all five parameters, the description usefully combines them into valid identifier alternatives and explains how `zip` changes the response by adding local store, bookshop, and library results. It adds little new syntax beyond the schema and does not define precedence if several identifiers are supplied.

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?

The description clearly identifies book purchasing and availability discovery as the task, then specifies edition metadata, online seller or borrowing links, and optional local in-store results. It does not explicitly contrast any sibling tool, so differentiation rests on its distinctly book-specific scope rather than explicit routing.

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 explicitly gives three lookup modes—ISBN, title plus author, or a books-collection item id—and explains that adding a US ZIP enables `inStore` results. The stock and price caveat helps set expectations, but there is no explicit when-not-to-use guidance or routing to another tool for different lookup needs.

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