Skip to main content
Glama

datasets_goodreads_books_facets

Read-only

Returns terms-aggregation counts for one field over the Goodreads books dataset, honoring the same filters as search. Use alongside the related search tool to inspect filter counts under the same query filters.

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": {
      "facet": "<facet>"
    },
    "name": "datasets_goodreads_books_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over title, author and description, max 256 characters.
isbnNoOptional exact ISBN-10 filter, max 128 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, rating_desc, reviews_desc, publication_desc, publication_asc, pages_desc, pages_asc, title_asc. Defaults to relevance with q, otherwise reviews_desc (popularity by ratings count).
facetYesRequired facet to aggregate. Allowed values: genres, format, language, publisher, primary_author, primary_author_id, series_name, publication_year, run_id.
genreNoOptional exact genre filter (e.g. Fantasy, Romance, Nonfiction), max 128 characters.
authorNoOptional exact author name filter (matches any credited contributor), max 128 characters.
formatNoOptional exact format filter (e.g. Hardcover, Paperback, Kindle Edition), max 128 characters.
isbn13NoOptional exact ISBN-13 filter, max 128 characters.
run_idNoOptional exact crawl run-id filter, max 128 characters.
seriesNoOptional exact series name filter, max 128 characters.
languageNoOptional exact language filter (e.g. English, Spanish), max 128 characters.
author_idNoOptional exact Goodreads author id filter, max 128 characters.
max_pagesNoOptional maximum page count, 0 or greater.
min_pagesNoOptional minimum page count, 0 or greater.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
publisherNoOptional exact publisher filter, max 128 characters.
min_ratingNoOptional minimum average rating, from 0 through 5.
min_ratings_countNoOptional minimum number of ratings, 0 or greater.
max_publication_yearNoOptional maximum publication year, e.g. 2024.
min_publication_yearNoOptional minimum publication year, e.g. 1990.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the useful constraint that the aggregation honors exactly the same filters as search, which explains how counts relate to results. However, it says nothing about the surprising idempotentHint=false on an aggregation call, nor about how page/page_size apply to facet output.

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?

Two compact sentences with the core behavior front-loaded and the usage hint second. No filler or repetition of the title. Slight vagueness in 'the related search tool' keeps it from a 5.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the annotations carry the read-only profile. Still, for a 21-parameter tool the description omits that only one facet is aggregated per call and how pagination interacts with aggregation results, leaving real gaps for correct invocation.

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

Parameters3/5

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

Schema description coverage is 100%, so all 21 parameters are already documented, including the allowed facet values and filter formats. The description only reinforces that the facet field is singular and that filters mirror search; it adds no syntax or interaction detail beyond the schema. Baseline 3 applies.

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 verb and resource: 'Returns terms-aggregation counts for one field over the Goodreads books dataset.' That distinguishes it from the item and search siblings, which return records rather than counts. It only refers to 'the related search tool' generically rather than naming datasets_goodreads_books_search, so differentiation is good but not airtight.

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 a clear use case: pair it with search to inspect filter counts under the same query filters. That tells an agent when to reach for facets instead of records. It stops short of stating exclusions (e.g., don't use it to retrieve book records) or noting that only one facet can be requested per call.

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.