Skip to main content
Glama

Fetch an advertiser from the Meta Ad Library by Page ID

meta_ads_get_company
Read-onlyIdempotent

Get an advertiser from the Meta Ad Library by its Facebook Page ID: the page and its linked Instagram account, its About text, how many ads it has, the organization Meta confirmed owns it, when it was created or renamed, where the people managing it are, and for advertisers of ads about social issues, elections or politics, their spend and targeting over the last 30 days. Read-only: returns public data and changes nothing. Costs 1 credit per request.

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": {
      "pageId": "<pageId>"
    },
    "name": "meta_ads_get_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesFacebook Page ID of the advertiser, e.g. "15087023444", as returned in `page.id` or by the advertiser search. The Ad Library link of the advertiser’s ads (`?view_all_page_id=<id>`) works too.
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already carry readOnlyHint, idempotentHint and destructiveHint=false, yet the description adds genuinely new behavioral facts: 'Costs 1 credit per request' and that the spend/targeting data only covers the last 30 days and only for social-issue/election/political advertisers. The 'public data and changes nothing' clause partly restates the annotations, and it says nothing about failure behavior or freshness beyond the schema's cache parameters.

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?

Front-loaded with the action and the key, then a single dense enumeration of returned fields, closed by two short sentences on read-only behavior and cost. The field list is long but every item is informative; only the 'returns public data and changes nothing' clause is mildly redundant against the annotations.

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 and no nested objects, the description carries the return-value burden and does so by listing the concrete fields an agent will get. Credit cost and the 30-day/political-advertiser limitation are stated, which matters for interpretation. Minor gaps remain around not-found behavior and whether ad listings are paginated, but nothing an agent needs to invoke it correctly is missing.

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 the parameter meaning is already fully documented in-pageId and the two cache fields, and the baseline of 3 applies. The description only reinforces that the key is a Facebook Page ID; it adds no format, fallback, or caching nuance beyond what the schema already states.

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 ('Get an advertiser from the Meta Ad Library by its Facebook Page ID') and enumerates exactly what is returned: page + linked Instagram account, About text, ad count, confirmed owner, creation/rename date, manager locations, and spend/targeting for political advertisers. This clearly separates it from the search-style siblings such as meta_ads_search_companies, since the lookup is keyed to a known Page ID.

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?

Usage is implied rather than stated: the reader infers it is for retrieving a known advertiser when the Page ID is already in hand. There is no explicit when-to-use/when-not framing and no named alternative for discovering an ID — only the schema's pageId text hints that an advertiser search or an Ad Library link can supply the ID. Adequate but leaves routing to inference and to the schema.

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