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. Sellers publish no stock or prices, so call a shop with the ISBN.

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
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: upstream data sources (Open Library, OpenStreetMap), the 10-mile radius, the seller list with kind and sponsored fields, and the caveat that no stock or prices are published. A 4 would need slightly more on result limits or failure behavior when an ISBN matches no edition.

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

Conciseness5/5

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

Front-loaded with the action, then input modes, then return shape. The long retailer enumeration is dense but each item conveys a real capability boundary (new/used/ebook/borrow vs. sponsored), and the closing caveat about no prices earns its place as an operational warning.

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?

No output schema exists, so the description must describe return values — and it does, covering edition fields, online links with kind/sponsored, and in-store entries with address, phone, hours, and distance. For a 5-parameter, all-optional lookup tool this is complete enough to invoke correctly on the first try.

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 description coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the disjunctive relationship between isbn, title+author, and item, and the fact that zip specifically toggles the inStore result block. It clarifies how parameters interact rather than just restating formats the schema already lists.

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?

States a specific verb and resource ("Where to buy a book") and immediately specifies both the accepted identifiers and the answer shape (edition metadata, online sellers, in-store results). An agent can tell this is a book-purchasing lookup distinct from the profile, TLD, and transit siblings without opening any schema.

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?

Explains the three alternative input modes ("Give an isbn... or a title and author, or item") and the condition that activates in-store results ("Give a US zip for inStore"). It also warns that sellers publish no stock or prices, so the agent should call a shop — clear usage context, though it names no sibling alternative or explicit exclusion.

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