Skip to main content
Glama

datasets_apple_books_facets

Read-only

Return counts for a selected Apple Books dataset facet, honoring the same filters as datasets_apple_books_search. Facets are kind, genres, artist_name, publisher, series_name, narrator, provider, currency, discovery_country, discovery_source, and free.

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_apple_books_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over title/name, artist, series, narrator and description, max 256 characters.
freeNoOptional free-title filter.
kindNoOptional resource kind. Allowed values: book, audiobook, author, series, audiobook_series.
pageNo1-based page number, default 1; page times page_size must not exceed 10000.
sortNoSort order: rating_count_desc, rating_desc, release_date_desc, name_asc, crawled_at_desc. Defaults to rating_count_desc without q and relevance with q.
facetYesRequired facet. Allowed values: kind, genres, artist_name, publisher, series_name, narrator, provider, currency, discovery_country, discovery_source, free.
genreNoOptional exact genre label as stored on Apple Books records, max 128 characters. Use the genres facet to discover labels.
artistNoOptional exact artist/author name, max 128 characters.
seriesNoOptional exact series name, max 128 characters.
countryNoOptional discovery storefront country code, max 128 characters.
currencyNoOptional exact currency code, max 128 characters.
narratorNoOptional exact audiobook narrator, max 128 characters.
providerNoOptional exact audiobook provider, max 128 characters.
artist_idNoOptional exact numeric Apple Books artist ID, max 128 characters.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
publisherNoOptional exact publisher, max 128 characters.
min_ratingNoOptional minimum average rating from 0 through 5.
discovery_sourceNoOptional exact crawl discovery source, max 128 characters.
min_rating_countNoOptional minimum number of ratings, 0 or greater.

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. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description usefully adds that the output is counts rather than records. However, it is silent on how the `page`/`page_size` parameters interact with facet counting (whether counts are computed over the full filtered set or a paginated slice) — a genuinely non-obvious behavior for a facet endpoint that the description leaves unaddressed.

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 sentences, both front-loaded and free of filler: the first states purpose and filter inheritance, the second enumerates facets. The long facet list is slightly bulky but is the most decision-relevant content for the required parameter, so it earns its space.

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

Completeness4/5

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

For a 19-parameter read-only aggregation tool with a full output schema and 100% schema coverage, the description supplies the key framing (counts over the search filters, valid facets). The main omission is the pagination-vs-count interaction, which no structured field clarifies either.

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 every one of the 19 parameters is already documented, and the description correctly adds no redundant syntax detail. Its only added semantic value is restating which values are legal for `facet`, which the schema also lists — baseline 3 is appropriate when the schema carries the weight.

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 opens with a specific verb and resource ('Return counts for a selected Apple Books dataset facet') and then enumerates every valid facet value, so an agent knows exactly what this produces and what the `facet` parameter accepts. It also names the sibling `datasets_apple_books_search`, making the counts-vs-records distinction explicit.

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?

Saying it honors 'the same filters as datasets_apple_books_search' gives clear context: this is the aggregation companion to the search tool, intended for facet counts over the same filtered population. It stops short of an explicit 'use this instead of search when you need counts / to discover filter values', so the routing is implied rather than stated.

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.