> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wappigate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Meta Ads Tools

> Check your ad account, read results, draft and pause ads.

## What is this?

These tools cover Meta Ads for the channel: whether an ad account is connected, how your campaigns are doing, which ad a customer came from, and creating or pausing ads. An ad created here is always a **paused draft** that never spends money. Switching an ad on, resuming a paused campaign, and connecting or reconnecting the ad account are done by a person in the dashboard under **Meta Ads**, never over MCP.

These tools belong to the [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md). Each tool below shows its **Mode** (**Read** runs immediately; **Write** asks your MCP client to confirm first) and the **Permission needed** for it to appear for your key — "None" means every connected key sees it.

## What can I do here?

* Check whether the ad account, ad Page and payment method are in place
* Read campaigns, spend, chats started, leads and cost per result for the last 1 to 90 days
* Find which Meta ad a contact or conversation came from
* Look up lead forms before creating a lead ad
* Create a paused ad draft, or pause a campaign

## Tools

### `get_meta_ads_connection`

Whether the user's current channel has a Meta ad account connected for ads and the Conversions API: which ad account, ad Page, granted permissions, and what is still missing (ad account, ad Page, payment method, reconnect). Use it for 'why can't I run ads?' or before offering anything that needs Meta Ads. It never returns tokens. Connecting or reconnecting is done by the user in the dashboard under Meta Ads, never by the assistant.

**Mode:** Read · **Permission needed:** `meta_ads:view`

### `list_meta_campaigns`

This channel's Meta ad campaigns with status, daily budget, spend, results (chats started or leads) and cost per result for the last N days. Only campaigns whose ads use this channel's WhatsApp number, Instagram account or ad Page are included; other campaigns of the ad account are only counted in hiddenCampaigns. Spend is in the ad account currency.

**Mode:** Read · **Permission needed:** `meta_ads:view`

### `get_meta_ads_overview`

Meta Ads totals for this channel over the last N days: spend, chats started, leads, clicks, impressions, cost per chat, cost per lead and the daily spend. Use it for 'how are my ads doing?' or 'why did my cost per chat go up?' (call it for two ranges and compare).

**Mode:** Read · **Permission needed:** `meta_ads:view`

### `list_meta_lead_forms`

The lead forms of this channel's ad Page with their status and how many leads each has. Needed to create a lead ad.

**Mode:** Read · **Permission needed:** `meta_ads:view`

### `get_meta_ad_attribution`

Which Meta ad a contact or conversation of this channel came from (ad, campaign, source), when the first message arrived through a Click-to-WhatsApp or other Meta ad. Give a contactId or a conversationId.

**Mode:** Read · **Permission needed:** `meta_ads:view`

### `create_meta_ad_draft`

Create a Meta ad for this channel as a PAUSED draft (campaign, ad set, creative and ad). It never spends money: it is switched on later with activate\_meta\_ad after a person confirms. The daily budget is in minor units (500 = 5.00). Check get\_meta\_ads\_connection first. Goals: whatsapp, instagram, messenger (chats), leads (needs a leadFormId from list\_meta\_lead\_forms), website (needs a link). Give countries (2-letter codes) or an area with a radius.

**Mode:** Write · **Permission needed:** `meta_ads:manage`

### `pause_meta_campaign`

Pause one of this channel's Meta campaigns. The campaign must belong to this channel; stopping an ad never costs money.

**Mode:** Write · **Permission needed:** `meta_ads:manage`

## Troubleshooting / Technical Notes

* **A tool I expect isn't offered.** The MCP server only offers tools whose required permission your API key's owner holds, re-checked on every call. Grant the permission shown on the tool — see [Team](https://docs.wappigate.com/workspace/team.md).
* **A Write tool never seems to run.** Your MCP client asks you to approve every Write tool call. Check for a pending approval prompt.
* **The tools say Meta Ads is not enabled.** The feature isn't turned on for your platform. Ask your platform admin.
* **I only see some of my ad account's campaigns.** Only campaigns whose ads use this channel's WhatsApp number, Instagram account or ad Page are listed; the rest are counted but hidden.
* **A call returns an error.** See [MCP errors](https://docs.wappigate.com/mcp/errors.md).

## Related docs

* [Workspace MCP tool catalog](https://docs.wappigate.com/mcp/workspace/tools/overview.md)
* [Workspace MCP](https://docs.wappigate.com/mcp/workspace/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.