Skip to main content
Glama

datasets_facebook_pages_facets

Read-only

Returns terms aggregation counts for the Facebook Pages dataset under search filters. 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_facebook_pages_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over title and address, max 256 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, likes_desc, likes_asc, hydrated_at_desc, hydrated_at_asc. Defaults to relevance with q, otherwise likes_desc.
afterNoContinue after next_after from the preceding value_asc response. Keep filters unchanged.
facetYesRequired facet to aggregate. Allowed values: category, discovery_source.
limitNoFacet values per response, default 50, max 200.
orderNoFacet order: count_desc (default) or value_asc for complete pagination.
page_idNoOptional exact Facebook Page id filter, max 128 characters.
categoryNoOptional exact Page category filter (case-insensitive), max 128 characters.
has_emailNoOptional filter for Pages with a public contact email.
has_phoneNoOptional filter for Pages with at least one public phone number.
max_likesNoOptional maximum Page like count, 0 or greater.
min_likesNoOptional minimum Page like count, 0 or greater.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
identifierNoOptional exact Page username/identifier filter (case-insensitive), max 128 characters.
has_websiteNoOptional filter for Pages with a linked website.
has_whatsappNoOptional filter for Pages with a public WhatsApp contact.
hydrated_afterNoOptional filter for records last refreshed on or after this date (RFC3339 or YYYY-MM-DD).
hydrated_beforeNoOptional filter for records last refreshed on or before this date (RFC3339 or YYYY-MM-DD).
discovery_sourceNoOptional exact filter for how the Page was discovered (e.g. wikidata), max 128 characters.

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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and idempotentHint=false, so the safety profile is covered. The description adds that it returns aggregation counts rather than records and that filters should stay unchanged, which is useful. However it doesn't warn that idempotentHint=false affects caching, nor does it explain the 10000-deep pagination ceiling or the count_desc vs value_asc trade-off for complete pagination.

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, front-loaded with the return type ('terms aggregation counts'), with no filler. It could be tightened further by naming the companion tool directly rather than 'the related search tool.'

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?

This is a 20-parameter tool with an output schema, so return values need no explanation. Yet the description omits the practical requirement for complete result sets: iterate with order=value_asc and after, keeping filters fixed. For a facet tool with a deep pagination contract, that is a meaningful gap.

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 parameter including facet, order, and after is fully documented in the schema. The description adds the 'same query filters' consistency requirement that the schema only hints at for 'after'. That is some added meaning, but the baseline of 3 applies when the schema carries most of the load.

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 description names a specific output (terms aggregation counts) for a specific dataset (Facebook Pages) under search filters, distinguishing it from datasets_facebook_pages_search and _item. It loses a point because it never states that this is a facet-counting companion tool for the Pages search endpoint explicitly, relying on 'related search tool' to convey it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It says to use it 'alongside the related search tool' and to 'inspect filter counts under the same query filters,' implying usage when you need per-category/discovery_source counts. It does not name the sibling, does not state when not to use it (e.g., when you need actual records, use the search tool), and gives no guidance on the required facet parameter's alternatives.

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.