Skip to main content
Glama
Facebook Ads Library MCP Server

Facebook Ads Library MCP Server

get_meta_ads

Read-only

Fetch currently running Meta ads for a brand by platform ID to inspect creative content, media, dates, targeting, and recent ad changes for competitor research.

Instructions

Retrieve currently running ads for a brand using their Meta Platform ID. Use this tool after getting a platform ID from get_meta_platform_id. This tool fetches active advertisements from the Meta Ad Library, including ad content, media URLs, dates, and targeting information. The result's changes block lists ads launched in the last 7 days and, when the same page was fetched with the same filters 24h+ ago, which ads are new since then and how many dropped out. For complete analysis of visual elements, colors, design, or image content, you MUST also use analyze_ad_image on the media_url from each ad.

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": {
      "platform_ids": "<platform_ids>"
    },
    "name": "get_meta_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
trimNo
limitNo
countryNo
platform_idsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "get_meta_adsOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description discloses the returned payload (ad content, media URLs, dates, targeting) and the non-obvious semantics of the 'changes' block: a 7-day launch window plus 24h+ diffing against a prior identical fetch, including dropped-out counts. That diff behavior is not derivable from annotations or schema and materially affects how an agent interprets results.

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-loads purpose, then prerequisite, then return contents, then the changes-block caveat, then the chaining requirement — a sensible order with no filler sentences. It is on the long side, but each sentence adds distinct operational information rather than restating the name.

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 an output schema present, the description needn't document return shape, and it still usefully flags the changes block and the required image-analysis follow-up, which covers the main complexity of this open-world read tool. The one real gap is the undocumented optional parameters, which leaves an agent guessing at filtering and volume control.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, and it only explains the required 'platform_ids' (a Meta Platform ID obtained from get_meta_platform_id). The 'trim', 'limit', and 'country' parameters are never mentioned, leaving their defaults and filtering semantics (especially the opaque 'trim') undocumented anywhere.

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 ('Retrieve currently running ads for a brand') and narrows scope with 'active advertisements from the Meta Ad Library', which separates it from keyword-search siblings. The required input (Meta Platform ID) is named in the first sentence, so the agent knows exactly what the tool operates on.

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?

Gives an explicit prerequisite chain ('Use this tool after getting a platform ID from get_meta_platform_id') and an explicit follow-up ('you MUST also use analyze_ad_image on the media_url'), naming the sibling and the condition that triggers it. This is when-to-use and when-to-chain guidance rather than inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.