Skip to main content
Glama

Meta Ads spend and ROAS

get_meta_ads
Read-onlyIdempotent

Meta (Facebook and Instagram) ads only. Spend, impressions and clicks per campaign, ad set or ad, next to the ad visitors, customers, first-touch and assisted revenue each brought, with ROAS and cost per customer (when Meta Ads is connected). fbclid-only visits are in unattributed, never in totals or ROAS.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_meta_ads"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
levelNoRow level (default campaign).
fieldsNoOptional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer.
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
compareNoWhat change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the bar is lower, yet the description adds a genuinely non-obvious data rule: fbclid-only visits land in "unattributed" and are excluded from totals and ROAS. It also flags the connection dependency. It stops short of describing pagination, row limits or response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, each earning its place: scope first, contents second, attribution caveat last. Nothing is repeated and the most important constraint is front-loaded.

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?

For an 8-parameter read-only reporting tool with no output schema, the description covers what is measured, at what granularity, and how attribution edge cases are handled. The main gap is not hinting that the fields parameter implies a structured dot-path response, but the schema covers that.

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 coverage is 100%, so every parameter is already documented in-schema, and the description only echoes the level concept ("per campaign, ad set or ad") and the compare/period behavior implicitly. It adds no syntax, format or default guidance 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?

"Meta (Facebook and Instagram) ads only" plus an explicit enumeration of metrics (spend, impressions, clicks, visitors, customers, first-touch/assisted revenue, ROAS, cost per customer) and the row granularity makes the resource and scope unambiguous. An agent can tell this is the Meta-specific paid-ads report without opening the schema.

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?

The parenthetical "(when Meta Ads is connected)" hints at a prerequisite, and the platform scoping implies this is the right tool for Meta campaigns, but there is no explicit when-to-use/when-not statement and no sibling (e.g. a generic ad-spend tool) is named as the alternative.

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