Skip to main content
Glama

Meta Ads MCP

by pipeboard-co

get_ads

Retrieve and filter Meta Ads for a specific account using an access token, account ID, and optional campaign or ad set filters. Defaults to returning 10 ads.

Instructions

Get ads for a Meta Ads account with optional filtering.

Args:
    access_token: Meta API access token (optional - will use cached token if not provided)
    account_id: Meta Ads account ID (format: act_XXXXXXXXX)
    limit: Maximum number of ads to return (default: 10)
    campaign_id: Optional campaign ID to filter by
    adset_id: Optional ad set ID to filter by

Input Schema

NameRequiredDescriptionDefault
access_tokenNo
account_idNo
adset_idNo
campaign_idNo
limitNo

Input Schema (JSON Schema)

{ "properties": { "access_token": { "default": null, "title": "Access Token", "type": "string" }, "account_id": { "default": null, "title": "Account Id", "type": "string" }, "adset_id": { "default": "", "title": "Adset Id", "type": "string" }, "campaign_id": { "default": "", "title": "Campaign Id", "type": "string" }, "limit": { "default": 10, "title": "Limit", "type": "integer" } }, "title": "get_adsArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeboard-co/meta-ads-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server