Skip to main content
Glama

Groundsocial

An advertiser’s ads in the Meta Ad Library

facebook_ads_company
Read-onlyIdempotent

Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.

Every ad one advertiser (a Facebook Page) runs or ran, 30 a page, with the same filters as facebook_ads_search. Pass page (a Page id, Page URL or vanity name; the id is exact) or company_name (resolved through the Ad Library’s advertiser search: check page_id on the ads, or resolve first with facebook_ads_search_advertisers). The first page’s count is the advertiser’s total ads matching the filters.

Cost: 2 credits per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": "facebook_ads_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage id, Page URL or vanity name.
afterNoThe previous page’s `page_info.end_cursor`; keep the other filters the same.
statusNoactive (default), inactive, or all.
ad_typeNoall (default), or one of Meta’s special ad categories: political_and_issue_ads, housing, employment, credit, financial.
countryNoISO 3166-1 alpha-2 country the ads reached (US, GB, DE…), or ALL (default).
sort_byNototal_impressions (default, high to low), relevancy_monthly_grouped (most recent), or total_active_time (longest-running first, within each page of 30).
end_dateNoYYYY-MM-DD: only ads delivered on or before this day.
languageNoComma-separated ISO 639-1 languages of the ad text (en,es).
media_typeNoall (default), image, video, meme (image with text), image_and_meme, none (text only).
start_dateNoYYYY-MM-DD: only ads delivered on or after this day.
company_nameNoAdvertiser name, when you don’t have the Page.
publisher_platformsNoComma-separated placements: facebook, instagram, audience_network, messenger, whatsapp, threads, oculus.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: 2 credits per call with automatic refund on failure, cost_credits and credits_remaining in the results, 30 results per page, and the fact that the first page's count equals the advertiser's total matching ads. Pagination semantics and billing behavior are exactly the kinds of traits annotations cannot express.

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

Conciseness3/5

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

Dense and front-loaded, but the opening sentence is nearly duplicated by the second ('Every ad of one advertiser ... 30 a page, filterable' vs 'Every ad one advertiser ... runs or ran, 30 a page'). The repetition costs space without adding 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?

For a 12-parameter, filter-heavy read tool with no output schema, the description covers the essential non-schema behavior: pagination, total-count semantics, credit cost, and advertiser resolution. It does not describe what fields each ad result contains, but that is largely acceptable given the filter surface is fully documented 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 still adds meaning: the Page id is exact while URL/vanity name are looser, company_name is resolved through Ad Library advertiser search and worth verifying via page_id, and the cursor must keep the other filters unchanged.

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 ('Every ad one advertiser (a Facebook Page) runs or ran') with scope and page size, and distinguishes itself from facebook_ads_search by noting it uses the same filters but is scoped to a single advertiser. An agent can tell it apart from facebook_ads_search and facebook_ads_search_advertisers 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 Guidelines4/5

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

Gives a clear invocation path: pass page (id, URL, or vanity name) or company_name, and resolve the advertiser first with facebook_ads_search_advertisers when the Page is unknown. It does not explicitly state when to prefer facebook_ads_search over this tool, but the scoping constraint implies it.

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.