Skip to main content
Glama

Search Facebook Posts

search_facebook_posts
Read-only

Search public Facebook posts by keyword. Returns post text, author details, engagement metrics and media. Limit to a date range, sort by newest or relevance, or scope to a place with a location_id from search_facebook_locations. Billed $0.008 per page.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pagesNoNumber of pages to fetch (1-15, default 1). Billed per page.
queryYesSearch keyword (max 500 characters)
sort_byNoSort order: most_recent or relevance (default: relevance)relevance
end_dateNoOnly posts up to this date (YYYY-MM-DD)
start_dateNoOnly posts from this date onward (YYYY-MM-DD)
location_idNoFacebook location ID (from search_facebook_locations) to scope results to a place
get_sentimentNoAdd AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / end_date / description
      Previous value: -"Filter posts until this date"New value: +"Only posts up to this date (YYYY-MM-DD)"
    • changedInput schema / properties / start_date / description
      Previous value: -"Filter posts from this date"New value: +"Only posts from this date onward (YYYY-MM-DD)"
  2. Changed1 schema field changed
    • changedInput schema / properties / get_sentiment / description
      Previous value: -"Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small per-page surcharge."New value: +"Add AI sentiment analysis (Plutchik emotions, dominant_emotion, intensity, and positive/negative/neutral polarity) to each result. Adds a small surcharge per page, or per request on single-request endpoints."
  3. Changed1 schema field changed
    • changedInput schema / properties / pages / description
      Previous value: -"Number of pages to fetch (1-10, default 1). Billed per page."New value: +"Number of pages to fetch (1-15, default 1). Billed per page."
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered. The description adds genuinely new operational context: billing at $0.008 per page, that the 'pages' parameter drives cost, and that get_sentiment carries a surcharge. It stops short of noting rate limits or result-cap behavior.

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?

Four tight sentences: purpose, return payload, filtering options, cost. The most decision-relevant facts (what it does, what comes back, what it costs) are front-loaded and every clause carries information.

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 no output schema, the description correctly compensates by naming the return fields, and all parameters are covered by the schema. For a paid, open-world search tool it is close to complete, though pagination limits and how sentiment interacts with multi-page billing are left implicit.

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 seven parameters are already documented with types, defaults, enums and formats. The description reinforces the location_id provenance and the per-page billing tie-in, but adds little syntax or format meaning beyond the schema. Baseline 3 applies.

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 public Facebook posts by keyword') plus scope ('public') and enumerates what is returned (post text, author details, engagement metrics, media). This distinguishes it from page/group-scoped siblings like facebook_page_posts and facebook_group_posts, which cannot search by keyword.

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 concrete narrowing strategies (date range, sort order, place scoping) and explicitly routes the agent to search_facebook_locations to obtain a location_id, which is a real dependency an agent would otherwise have to guess. It does not state when this tool is the wrong choice versus sibling searches (e.g., search_facebook_pages), so no exclusions 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.

Resources