Skip to main content
Glama

datasets_facebook_pages_search

Read-only

Search stored public Facebook Page contact records by name or identifiers, returning website, email, phone, WhatsApp, category, and like count when available. Costs 1 credit per record returned (minimum 2), so keep page_size to what you need. Use filters for contact fields and discovery source; use datasets_facebook_pages_item for one record or datasets_facebook_pages_facets for counts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "datasets_facebook_pages_search"
  }
}

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

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses a real behavioral trait: billing at 1 credit per record with a minimum of 2, which materially affects how an agent sizes page_size. It does not restate the pagination ceiling or sort defaults, but those are already in the schema, so the gap is minor.

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

Conciseness5/5

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

Two sentences, front-loaded with the resource and its returned fields, then cost and routing guidance. No sentence is redundant and nothing is buried behind preamble.

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?

With 16 optional parameters, full schema coverage, annotations, and an output schema, the description covers the pieces an agent would not get elsewhere: cost model, returned fields, and sibling routing. Only the pagination ceiling (10000) and sort defaults are missing, and those are fully specified in the schema.

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; the description adds value by tying page_size to credit cost and by pointing at the filter families (contact fields, discovery source) rather than enumerating them. Individual parameter formats are left to the schema, which is appropriate here.

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 stored public Facebook Page contact records') plus the exact fields returned (website, email, phone, WhatsApp, category, like count), and names the sibling tools it is not. An agent can distinguish it from datasets_facebook_pages_item and datasets_facebook_pages_facets without opening a schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use filters for contact fields and discovery source, use datasets_facebook_pages_item for a single record, and datasets_facebook_pages_facets for counts. It also sets a usage constraint tied to cost ('keep page_size to what you need'), so both when-to-use and when-not-to-use are covered.

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.