Skip to main content
Glama

datasets_boxofficemojo_facets

Read-only

Returns terms-aggregation counts for one facet of the Box Office Mojo dataset, scoped to the same filters as search. Facet enum: gross_band, years_active, lifetime_year, franchise_names, brand_names, genre_names, hydrated, is_billion_dollar, in_lifetime_top_1000_ww. gross_band enum: under_50m, 50_100m, 100_250m, 250_500m, 500m_1b, over_1b. page: Result page number, 1-based, default 1; page times page_size must not exceed 10000. page_size: Page size, default 20, max 100; page times page_size must not exceed 10000. Use datasets_boxofficemojo_search to search the Box Office Mojo dataset.

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

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over title and taxonomy names, max 256 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort. Allowed: relevance, worldwide_desc, domestic_desc, peak_worldwide_desc, lifetime_rank_asc, year_desc, year_asc. Defaults to relevance with q, otherwise worldwide_desc.
yearNoOptional year that must appear in years_active (worldwide year chart presence).
brandNoOptional brand name filter, max 128 characters.
facetYesRequired facet. Allowed: gross_band, years_active, lifetime_year, franchise_names, brand_names, genre_names, hydrated, is_billion_dollar, in_lifetime_top_1000_ww.
genreNoOptional genre name filter, max 128 characters.
hydratedNoOptional filter for whether the title page has been hydrated (release groups and market grosses).
title_idNoOptional exact title id filter (IMDb tt… id used by Box Office Mojo), max 32 characters.
franchiseNoOptional franchise name filter, max 128 characters.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
gross_bandNoOptional worldwide gross band. Allowed: under_50m, 50_100m, 100_250m, 250_500m, 500m_1b, over_1b.
min_domesticNoOptional minimum lifetime domestic gross in whole USD dollars.
lifetime_yearNoOptional primary lifetime chart year filter.
max_worldwideNoOptional maximum lifetime worldwide gross in whole USD dollars.
min_worldwideNoOptional minimum lifetime worldwide gross in whole USD dollars.
is_billion_dollarNoOptional filter for titles with worldwide gross at least $1B.
min_foreign_shareNoOptional minimum foreign share of worldwide gross, 0 through 1.
max_domestic_shareNoOptional maximum domestic share of worldwide gross, 0 through 1.
in_lifetime_top_1000NoOptional filter for titles in the lifetime worldwide top 1000 chart.

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

A4/5.0
Behavior4/5

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

Annotations already establish read-only, open-world, non-idempotent behavior, so the description's added value is in the operational constraints: page is 1-based with a default of 1, page_size defaults to 20 and caps at 100, and page*page_size may not exceed 10000. Those are the kinds of limits an agent would otherwise trip over. It does not explain the shape of the counts returned, but an output schema exists to carry that.

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?

It is front-loaded with the core behavior, then the value lists, then the sibling pointer. The facet and gross_band enumerations duplicate the schema, but since the schema encodes them as prose in string descriptions rather than as formal enum keywords, repeating them is defensible. No filler sentences.

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 20-parameter tool with a required facet, full schema coverage, an output schema, and annotations declaring safety, the description covers what matters: what the tool aggregates, which facet values are legal, the pagination ceiling, and that filters mirror search. An agent has enough to invoke it correctly on the first try.

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 the schema already documents all 20 parameters, and this establishes a baseline of 3. The description restates the facet and gross_band value lists and the page/page_size contract, which is redundant with the schema rather than additive. It adds one genuinely new idea — that the remaining filters behave the same as in search — but explains none of the numeric filters (min_domestic, min_worldwide, share bounds) beyond what the schema says.

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 first sentence gives a specific verb and resource: it returns terms-aggregation counts for one facet of the Box Office Mojo dataset. That is materially different from the record-returning sibling named at the end, so an agent can tell the two apart. The only mild gap is that 'terms-aggregation counts' is jargon an agent must interpret rather than being spelled out as 'number of matching titles per facet value'.

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?

The closing sentence names the concrete alternative (datasets_boxofficemojo_search) and thereby implies the fork: use facets for counts, search for records. It also states the filter scope matches search, which tells the agent the two can be paired. It stops short of an explicit when-not/exclusion statement or an example workflow.

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.