Skip to main content
Glama

Honeyfield Marketing MCP

Meta Ads: Ad performance

meta_ad_performance
Read-only

Meta-Ad-Performance einzelner Anzeigen der letzten N Tage, nach Spend. Je Zeile campaign_id/campaign, adset_id/adset und ad_id/ad — die IDs sind der Schlüssel für meta_update_ad_status und ad_id-Vergleiche. Zeitraum: heute minus N Tage bis heute EINSCHLIESSLICH (N+1 Kalendertage; heute unvollständig). Für Vergleiche mit Google-Ads-Zahlen (schließen heute aus) daily=True nutzen und den heutigen Tag herausrechnen. since / until: fester Zeitraum 'YYYY-MM-DD', beide zusammen und einschließlich (error=date_range_incomplete/date_range_invalid); Vorrang vor date_preset und days. date_preset: relativer Zeitraum nach Metas Kalender (today, yesterday, this_month, last_month, this_quarter, last_quarter, this_year, last_year, last_3d/7d/14d/28d/30d/90d, last_week_mon_sun, last_week_sun_sat, this_week_mon_today, this_week_sun_today, maximum, data_maximum; error=invalid_date_preset sonst); Vorrang vor days. Jede Zeile trägt date_start/date_stop (tatsächlich summierte Spanne; bei daily date). Zahlen folgen der Attributionseinstellung der Adsets (unified attribution, wie im Ads Manager). Kontosummen: meta_campaign_performance totals_only=True statt Zeilen zu addieren. Bei leeren Insights trotz vorhandener Kampagnen kommt stattdessen ein Dict mit result=[], time_range bzw. date_preset und info-Erklärung zurück. breakdown: Aufschlüsselung statt Summenzeile — 'publisher_platform' (Facebook vs. Instagram vs. Audience Network), 'platform_position' (je Zeile publisher_platform UND platform_position, z.B. instagram/ instagram_reels), 'device_platform', 'age', 'gender', 'country', 'region', 'hour' (Tageszeit, siehe unten). Kombinationen, die Meta ablehnt → error=unsupported_breakdown_combination mit hint. breakdown='hour': eine Zeile je Stunde, Feld hour ('18:00-18:59'), sortiert 00 bis 23. Stunden in der Zeitzone des Werbekontos; hour_basis='audience' nimmt die Zeitzone der Zielgruppe. Meta summiert jede Stunde über den GANZEN Zeitraum (sieben Tage = 24 Zeilen, nicht 168); für Tag × Stunde daily=True dazunehmen (Felder date + hour). Je Stunde fehlen reach/frequency und die Video-Retention, weil Meta sie stündlich nicht liefert; video_views_3s steht in actions.video_view. Video-Kennzahlen (nur wenn Meta sie liefert: nicht bei Bild-Anzeigen und nicht bei breakdown='region' oder 'hour'): video_plays (gestartet), video_views_3s (ab 3 Sekunden, wie actions.video_view), thruplays (15 Sekunden oder bis zum Ende, je nachdem was kürzer ist: bei Videos unter 15 Sekunden ist ein ThruPlay also eine VOLLSTÄNDIGE Wiedergabe), video_p25/p50/p75/p95/p100 (bis zu 25/50/75/95/100 % der Länge gesehen), video_avg_watch_time_sec, thruplay_rate_pct (thruplays ÷ impressions), hold_rate_pct (thruplays ÷ video_views_3s) und cost_per_thruplay. daily: True liefert eine Zeitreihe je Tag. Ein kürzeres Zeitfenster ersetzt das NICHT — es summiert nur weniger Tage zu einer Zeile. ad_id / adset_id / campaign_id: schränkt ein; die feinere Angabe gewinnt (ad_id vor adset_id vor campaign_id). ad_id ist der direkte Weg, um zwei einzelne Anzeigen zu vergleichen. Ohne Angabe kommen ALLE Anzeigen des Kontos — kontoweite Zahlen dürfen nicht als Kampagnenzahlen gelesen werden. Eine uebergebene Kampagnen-/Adset-/Ad-ID muss zum Werbekonto des Workspace gehoeren — IDs eines anderen Kontos (auch wenn die Meta-Verbindung es sieht) → {'error': 'foreign_object'}. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace). Enthält link_clicks, landing_page_views, landing_page_rate_pct, reach, frequency, cpm, cpc, cost_per_link_click. Dazu je Anzeige quality_ranking, engagement_rate_ranking und conversion_rate_ranking. UNKNOWN heißt: zu wenig Volumen für eine Einstufung, nicht 'schlecht'. conversions zählt AUSSCHLIESSLICH Käufe und Leads. Eigene Custom Conversions stehen getrennt in custom_conversions, und actions führt alle Ereignistypen mit Zahlen auf — conversions=0 heißt deshalb nicht "konvertiert nicht", sondern ist an actions gegenzuprüfen. Obergrenze rund 2.000 Zeilen. Wird sie erreicht, kommt statt der Liste ein Objekt mit result und warning zurück; die Sortierung gilt dann nur für den Ausschnitt.

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": "meta_ad_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
ad_idNo
dailyNo
sinceNo
untilNo
adset_idNo
breakdownNo
workspaceNo
hour_basisNoadvertiser
campaign_idNo
date_presetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / hour_basis
      Added value: +{
      +  "default": "advertiser",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description nonetheless adds substantial behavior: error codes (date_range_incomplete, date_range_invalid, invalid_date_preset, foreign_object, unsupported_breakdown_combination), a ~2,000-row cap that returns an object with result plus warning, and an alternate dict shape (result=[], time_range/date_preset, info) when insights are empty. It also discloses quota/attribution semantics (unified attribution from the adset) and data gaps (reach/frequency and video retention absent for hourly breakdown; no video metrics for image ads or for region/hour breakdowns).

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

Conciseness3/5

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

The purpose and key constraints are front-loaded, and sentences are dense rather than padded, but the block is very long and mixes concerns out of order — output-field enumerations (link_clicks, cpm, quality_ranking, conversions vs. custom_conversions vs. actions) appear near the end after breakdown mechanics, and the daily note is split across two non-adjacent passages. Some content (e.g. listing returned metrics) duplicates what the existing output schema already supplies.

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 11-parameter reporting tool with an output schema, the definition covers time semantics, filter precedence, breakdown variants, failure modes, and truncation behavior — everything needed to call it correctly. It goes further than required by explaining return fields, which the output schema already covers, so completeness is not in doubt; the only shortfall is organizational rather than missing content.

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

Parameters4/5

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

Schema coverage is 0% and the schema declares no enums, so the description carries the full burden and delivers: it enumerates every accepted date_preset value, every breakdown value with the shape change each causes (e.g. platform_position adds a column pair, hour yields 24 rows per whole period), explains hour_basis='audience', and specifies the inclusive N+1-day window and today's incompleteness. Nearly every one of the 11 parameters gains meaning beyond the bare schema types.

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?

The opening sentence states a specific verb, resource and scope: per-ad Meta performance for the last N days, sorted by spend. It also names the sibling it is not (account totals go to meta_campaign_performance totals_only=True) and states that the IDs returned are the key for meta_update_ad_status, so an agent can distinguish it from siblings without opening a schema.

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?

Explicit routing is given in several places: account sums via meta_campaign_performance totals_only=True instead of summing rows, daily=True plus subtracting today when comparing against Google Ads numbers (which exclude today), and ad_id as the direct route for comparing two individual ads. Precedence rules (since/until over date_preset over days; ad_id over adset_id over campaign_id) tell the agent which parameter wins when several are supplied.

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