Connecting an AI agent to Meta Ads for read-only reporting is straightforward. You wire up OAuth, expose a handful of Insights endpoints over Model Context Protocol (MCP), and let Claude or Cursor summarize spend, CPA, and creative fatigue.

The hard engineering problem starts the moment someone asks the agent to make a change: pause an underperforming ad set, upload new creative variants, or adjust a daily budget.

Live ad accounts have real money attached to every POST call. If an LLM hallucinates a zero (500 instead of 50), targets the wrong client account, or activates an unreviewed creative, standard API retries cannot undo the spend.

Here is the three-layer governance architecture we landed on to make ad-account MCP writes safe enough for real teams.

1. Never let an agent mutate live spend directly by default

The most useful constraint is separating preparing a change from activating spend:

  1. Paused by default: Any newly created campaign, ad set, or creative variant starts PAUSED. Preparing ten creative variants never spends a cent until a human (or an explicit policy rule) activates them.
  2. Scoped ad-account boundary: An OAuth token or MCP session is pinned to an explicitly approved workspace and ad account, not every account inside a Business Manager portfolio. For agencies running multiple clients, cross-client blast radius has to be structurally impossible at the server layer, not left to prompt instructions.
  3. Structured proposals instead of raw Graph API passthrough: Rather than giving the LLM a generic meta_post(path, body) tool, every write passes through a typed proposal contract with explicit fields (target_id, before_value, after_value, reason, idempotency_key).

2. Three execution modes: Ask, Custom, and Full

Binary "read-only vs. full write" forces teams into a bad trade-off: either the agent can't help with execution at all, or you hand it unrestricted write access.

A three-tier execution model solves most real workflows cleanly:

Mode What happens when the agent calls a write tool Typical use case
Ask Every write creates a pending proposal in an approval queue; nothing executes on Meta until a human approves it. New accounts, agencies, sensitive budgets, creative launches.
Custom Policy rules auto-approve narrow, bounded actions (e.g., pausing an ad that exceeded a CPA cap, or staging paused drafts) while routing budget increases and activations to human approval. Day-to-day growth teams wanting safe guardrails.
Full Policy-compliant changes execute automatically within workspace bounds, while every action is still recorded in an immutable audit log. Mature, tightly scoped automations.

The key design detail is that the agent calls the exact same MCP tool in all three modes. Policy evaluation happens server-side, never inside the LLM prompt. If a tool call violates a cap or requires approval, the server returns a deterministic pending_approval state with a review URL so the agent doesn't panic or enter a retry loop.

3. Why ad-account ROAS alone misleads an AI agent

Even with tight write guardrails, there is a subtler failure mode: garbage-in measurement.

If an agent reads Meta's self-reported ROAS from the Marketing API and sees purchases drop 40% overnight, a naive agent will propose pausing campaigns or rotating creatives. Half the time, the ads didn't break; the Conversions API pipeline did (a Shopify update dropped event_id deduplication, a CMP change stopped passing _fbc, or someone started hashing fbp).

Giving the agent access to first-party signal health (landing arrivals, server delivery receipts, deduplication ratio, and backend-confirmed revenue) alongside Meta's ad metrics lets it distinguish a tracking regression from actual ad fatigue before proposing a spend change.

4. Practical implementation notes

If you are building or auditing an MCP server with write capabilities against any financial or advertising API:

  • Enforce idempotency keys on proposals. LLMs retry tool calls when responses are slow. Without an idempotency key, a timeout can duplicate a budget increase or create duplicate ad sets.
  • Keep tool definitions lean. Loading 60+ raw API wrappers into tools/list bloats the client's context window and degrades tool selection accuracy. Group read diagnostics and typed write proposals into a small, well-documented surface.
  • Record who proposed, who approved, and what changed. Store the actor (agent / user), policy evaluation result, pre-state, and post-state for every mutation.

(Disclosure: This is the governance model we built in Plainrouter for Meta Ads MCP and Conversions API diagnostics; our typed SDKs and CLI live on GitHub.)