Skip to main content
Glama

Honeyfield Marketing MCP

Meta Ads: Campaign performance

meta_campaign_performance
Read-only

Meta-Ads-Kampagnen-Performance der letzten N Tage (je Zeile campaign_id + campaign — die ID ist der Schlüssel für meta_update_campaign & Co.). 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 als 'YYYY-MM-DD', beide zusammen und einschließlich (sonst error=date_range_incomplete; until vor since error=date_range_invalid); hat 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); hat Vorrang vor days. Jede Zeile trägt date_start/date_stop — die tatsächlich summierte Spanne, wie Meta sie meldet (bei daily stattdessen date je Tag). totals_only: True liefert Gesamtzahlen des Kontos als EINE Zeile (ohne campaign/campaign_id) — für Kontosummen diesen Weg nehmen und nicht Zeilen selbst addieren: bei breakdown überschneiden sich reach-Werte. Mit breakdown/daily kombinierbar; nicht mit campaign_id (error=totals_only_with_campaign — eine Kampagne liefert mit campaign_id ohnehin genau eine Zeile). Zahlen folgen der Attributionseinstellung der Adsets (unified attribution, wie im Ads Manager) — nicht Metas API-Default. Liefert neben Impressionen/Spend/Conversions auch link_clicks (echte Link-Klicks — clicks zählt Likes und Profilaufrufe mit), landing_page_views und landing_page_rate_pct (wie viele Klicks die Seite erreichen), reach, frequency, cpm, cpc und cost_per_link_click. 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. campaign_id: nur diese Kampagne. Ohne Angabe ALLE Kampagnen des Kontos. 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). 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_campaign_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
dailyNo
sinceNo
untilNo
breakdownNo
workspaceNo
hour_basisNoadvertiser
campaign_idNo
date_presetNo
totals_onlyNo

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.4/5.0
Behavior4/5

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

Annotations only cover readOnlyHint and openWorldHint, and the description adds substantial behavior beyond them: numbers follow the adset attribution setting rather than Meta's API default, an empty-insights case returns a dict with result=[] plus an info explanation, foreign account IDs yield error='foreign_object', and a ~2,000-row cap returns an object with result plus warning that invalidates sorting. It also warns that conversions counts only purchases/leads and must be cross-checked in actions. Deduction because the pagination/truncation behavior is described only as a rough limit without saying how to page past it.

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 is front-loaded and the parameter blocks are organized under clear labels, but the piece is very long and a large block is a metric glossary (video_p25/p50/p75/p95/p100, thruplay_rate_pct, hold_rate_pct) explaining return values even though an output schema exists. That material is useful semantics but partly redundant, and the density of nested caveats makes it easy to lose the actionable rules.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter analytics tool with zero schema documentation, the description covers every parameter, the precedence rules, the timezone/basis semantics of hourly breakdowns, failure modes, and row limits. An agent has everything needed to call it correctly without opening the schema, and the output schema handles the return shape.

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

Parameters5/5

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

Schema description coverage is 0% and there are no enums, so the description carries the entire burden — and it does: it enumerates the accepted date_preset values with the invalid_date_preset error, lists breakdown values including the hour variant and its combinations, defines hour_basis='audience', explains campaign_id's default (all campaigns) and workspace's optionality. It also spells out precedence and mutual-exclusion rules that the bare schema cannot express.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line names a specific verb and resource ('Meta-Ads-Kampagnen-Performance der letzten N Tage') and states the grain (one row per campaign_id + campaign), which separates it from ad- or adset-level siblings. It even names a downstream sibling (meta_update_campaign) that consumes the returned ID. It stops short of explicitly routing agents to meta_ad_performance/meta_adset_performance when a different level is wanted.

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 when-to-use rules throughout: use totals_only for account totals instead of summing rows (because reach overlaps under breakdown), use daily=True plus removing today when comparing with Google Ads, and since/until takes precedence over date_preset which takes precedence over days. It also states hard incompatibilities (totals_only + campaign_id → error) and per-breakdown caveats, leaving little to inference.

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