Skip to main content
Glama

Facebook

facebook
Read-only

Read public Facebook data with Desearch. Set action and that action's arguments. search (query; optional count, sort, cursor) and hashtag (tag; optional count, cursor) return Meta Ad Library ads that match, not organic posts. post (id): one public post. profile (profile_id): a page or profile by ID or public handle. profile_posts (profile_id; optional count, cursor): its posts. comments (post_id; optional count, cursor): a post's comments, about 10 per page. post and profile return the item itself. List actions return { results, next_cursor, next }. For the next page, call again with the same action and target and cursor set to next_cursor, unchanged; next_cursor is null on the last page. A cursor lasts 24 hours.

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": {
      "action": "<action>"
    },
    "name": "facebook"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNopost: the public Facebook post or media ID.
tagNohashtag: the hashtag without #, example: 'ai'. A leading # is removed.
sortNosearch: 'impressions' (API default: most seen first) or 'recent' (Meta's monthly relevance grouping, which puts recently started ads first).
countNoMost items to return (1-100). API default: 10 for search, 20 for the other list actions. One page may hold fewer.
queryNosearch: keyword or phrase, example: 'running shoes'.
actionYesWhat to read: 'search', 'post', 'profile', 'profile_posts', 'comments', or 'hashtag'.
cursorNonext_cursor from the previous page of the same action and target, sent back unchanged. Omit it for the first page.
post_idNocomments: the public Facebook post or media ID.
profile_idNoprofile, profile_posts: page or profile ID, or its public handle, example: 'facebook'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "search: 'impressions' (API default: most seen first) or 'recent' (Meta's monthly relevance grouping, which puts recently started ads first).",
      +  "enum": [
      +    "impressions",
      +    "recent"
      +  ],
      +  "type": "string"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the read-only, open-world, non-destructive profile, yet the description still adds real value: ad-library-vs-organic scope, list return shape {results, next_cursor, next}, singular-item returns for post/profile, cursor reuse rules, 24-hour cursor lifetime, and per-page size (~10 comments). No auth, rate-limit, or error behavior is disclosed, keeping it off a 5.

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?

Front-loads the resource and the surprising scope fact (ads, not organic posts), then walks actions, return shapes, and pagination in a tight ~120 words with no filler. Minor redundancy in 'same action and target ... unchanged' is negligible.

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?

With no output schema present, the description compensates by describing both singular and list return shapes and the cursor contract. For a nine-parameter, six-action multiplexed tool this covers everything an agent needs to call it and paginate correctly.

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 baseline is 3, but the description re-groups parameters by action ('search (query; optional count, sort, cursor)'), which makes conditional applicability scannable. It also adds the 'about 10 per page' comment-page detail that refines the schema's generic page-size wording.

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?

'Read public Facebook data with Desearch' plus an explicit enumeration of the six actions (search, hashtag, post, profile, profile_posts, comments) and what each returns. Crucially it distinguishes ad-library ads from organic posts, so an agent knows exactly what resource it gets.

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 action list plus the note that search/hashtag hit the Meta Ad Library 'not organic posts' gives clear conditions for choosing each mode. What's missing is guidance against sibling tools (instagram, search, people-search) for the same intent, so it stops short of full when/when-not routing.

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.