Skip to main content
Glama

Search books

search_books
Read-onlyIdempotent

Search for a book across every bookseller Near Fine covers for the buyer's country, ebook and audiobook stores included; list_sources names them. Shops' ebooks and audiobook downloads are offered only in their own country. Pass an ISBN-10 or ISBN-13 for an exact edition, or title and author keywords. The query can also carry a price cap, as in "under $40" or "max 30 €" (in the buyer's currency when it names none), and ask for a first edition, a signed copy, a dust jacket, a hardcover or a paperback, as in "wolf hall signed first edition under £200", or for an ebook or audiobook alone. Offers over the cap, counting known shipping, and offers in other formats than the one asked for are left out; criteria reports what was read. Pass seller to see only some booksellers' offers, by name or part of one, or by a shop's own name in another script. Returns offers sorted cheapest first, those with unpublished shipping from abroad after every known total, each with title, seller, condition (new, used or a grade such as very good, ebook or audiobook), the seller's own grade where given, the edition's publisher and year where the bookseller gives them, price and shipping in the seller's currency, the same in the buyer's currency when it differs, and the URL to buy. Shipping is left out where the shop doesn't publish it. Each offer may carry a match from 0 to 1: how sure a decision model is that the listing is the book searched for rather than a study guide, summary, adaptation or another book that shares a word. A copy of the ISBN searched for has 1, and on a keyword search one the model doubts takes its best match for the same book elsewhere. Offers below 0.5 are left out and counted in doubtful. When the query asks for attributes, each offer carries verdicts: true where the decision model, reading the listing and any filter the bookseller applied, confirms the listing claims it, false where it doesn't, and left out where unjudged. Also reports which sources answered, failed or timed out, a cover image of the best match, an amazon_url that opens the same search on the buyer's Amazon site, and a search_url that opens it on Near Fine, where the buyer can set an alert and get an email when a new listing turns up with everything the query asks for. When the buyer has signed in and favours some booksellers, offers from those carry favourite: true; say when one of them has a copy and how far it is from the cheapest, rather than preferring it. A search takes a few seconds.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_books"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesISBN-10, ISBN-13 (hyphens and spaces allowed) or title and author keywords, optionally with a price cap and attributes such as "first edition under $40"
sellerNoOnly these booksellers' offers, each named as the offers' seller names it or by part of the name, such as "World of Books", or "abe" for every AbeBooks site. A whole name means that seller alone.
countryNoCountry the buyer is in, as an ISO 3166-1 alpha-2 code such as US, GB or DE. Defaults to US.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / seller
      Added value: +{
      +  "description": "Only these booksellers' offers, each named as the offers' seller names it or by part of the name, such as \"World of Books\", or \"abe\" for every AbeBooks site. A whole name means that seller alone.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observed

TDQS

A4.5/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 non-destructive, so the bar is low, yet the description adds rich behaviour: price-cap and attribute filtering, exclusion of offers over the cap counting shipping, exclusion below a 0.5 match with a 'doubtful' count, cheapest-first ordering with unknown-shipping offers last, per-offer verdicts, favourite sellers surfaced without preference, and a 'few seconds' latency note. None of this is recoverable from the annotations.

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

Conciseness3/5

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

The core purpose and query grammar are front-loaded, but the body is one undivided block of several hundred words with repeated ideas (shipping is mentioned as excluded twice, match thresholds are restated). Much of it earns its place, yet it would read far better split into query, filtering, and return-value sections.

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 carries the full burden and does so: it describes every return field (title, seller, condition, publisher, year, dual-currency prices, URL), the match score, verdicts, source-status reporting, cover, amazon_url and search_url, plus the favourite flag. An agent knows what comes back and how to interpret it.

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 still adds meaning: the query grammar ('wolf hall signed first edition under £200'), the currency defaulting rule for caps, and seller matching by partial name or by a shop's own name in another script. It does not add much about country beyond the US default the schema already states.

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 ('search for a book across every bookseller Near Fine covers'), bounds the scope to the buyer's country, and explicitly separates itself from the sibling that only names sources ('list_sources names them'). An agent can tell what this does and what it does not do without opening the 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?

Gives concrete entry points: an ISBN-10/13 for an exact edition versus title-plus-author keywords, and 'pass seller to see only some booksellers' offers'. It routes to list_sources for source names, but offers no explicit exclusions (for example, it mentions setting an alert via search_url without pointing at set_alert), so the when-not side is only implied.

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