Skip to main content
Glama

Honeyfield Marketing MCP

Meta Ads: Adset performance

meta_adset_performance
Read-only

Meta-Adset-Performance (Impressionen, Klicks, Spend, Conversions) der letzten N Tage, sortiert nach Spend. Je Zeile campaign_id/campaign und adset_id/adset — die IDs sind der Schlüssel für meta_update_adset. 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. campaign_id: nur die Adsets DIESER Kampagne. Ohne Angabe kommen ALLE Adsets 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. 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_adset_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
dailyNo
sinceNo
untilNo
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.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so almost all behavioral context comes from the description: error codes (foreign_object, unsupported_breakdown_combination, date_range_incomplete), the ~2,000-row cap with a warning object instead of a list, and the empty-result dict shape. It also discloses attribution semantics and that conversions=0 does not mean 'no conversions' but must be cross-checked in actions — exactly the kind of trap an agent would otherwise fall into.

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?

Nearly every sentence carries unique operational information, but the layout is a flat wall of prose with no grouping: metric definitions, error behavior, breakdown semantics and parameter rules are interleaved, and an orphan fragment ('Enthält link_clicks, landing_page_views, ...') sits mid-text. The important 2,000-row cap and the conversions caveat are buried at the very end rather than front-loaded.

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 9-parameter, open-world reporting tool this covers everything an agent needs: precedence of time filters, breakdown restrictions, undefined metrics per breakdown, row limits, empty-result and error shapes. An output schema exists, so the extra return-field prose is redundant rather than missing, and nothing material is left unstated.

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%, so the description carries the full burden and does: it defines days as today minus N through today inclusive (N+1 days, today incomplete), enumerates every valid date_preset value, defines the full breakdown vocabulary including the hour/platform_position special cases, and explains campaign_id's scoping effect, workspace's optionality and hour_basis.

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 first sentence names the resource (Adset performance) and the exact metric set (impressions, clicks, spend, conversions), the time window, and the sort order. It also states the row key (campaign_id/adset_id) and explicitly routes account-level totals to meta_campaign_performance, so it is distinguishable from its sibling without opening either 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?

Guidance is unusually explicit: use daily=True plus subtracting today when comparing with Google Ads, use meta_campaign_performance with totals_only=True instead of summing rows, and campaign_id must be given or account-wide numbers must not be read as campaign numbers. Precedence between since/until, date_preset and days is spelled out, including which combinations raise which errors.

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