Skip to main content
Glama

Honeyfield Marketing MCP

LinkedIn Ads: Create ad

linkedin_create_ad

Neue LinkedIn-Anzeige mit eigenem Text anlegen (Direct Sponsored Content / Dark Post: erscheint nur als Anzeige, nicht im Feed der Unternehmensseite). Immer als Entwurf (DRAFT); aktivieren mit linkedin_update_creative_status.

Ablauf für eine komplette Kampagne: linkedin_create_campaign_group → linkedin_create_campaign (Ziel z. B. WEBSITE_VISIT oder LEAD_GENERATION) → bei Lead-Gen linkedin_create_lead_form → linkedin_create_ad (je Anzeigenvariante ein Aufruf) → Gruppe, Kampagne und Anzeigen aktivieren.

WICHTIG: Den Inhalt (Text, Überschrift, Bild, Ziel-URL) kann man per API nach dem Anlegen nicht mehr ändern — Texte vorher mit dem Nutzer abstimmen; für Korrekturen eine neue Anzeige anlegen und die alte archivieren. Die erste Anzeige legt das Format der Kampagne fest (z. B. Einzelbild): weitere Anzeigen derselben Kampagne im selben Format anlegen (alle mit Bild oder alle ohne).

intro_text: Einleitungstext über der Anzeige (max. 600 Zeichen, Hashtags mit #wort). destination_url: Ziel-URL (http/https) — Pflicht außer bei Lead-Gen-Anzeigen. headline: Überschrift (max. 200 Zeichen). Ohne Bild wird mit destination_url und headline eine Artikel-Anzeige (Link-Vorschau mit Überschrift); ohne headline eine reine Text-Anzeige. description: Beschreibung unter der Überschrift (max. 300), nur ohne Bild/Video/ Dokument. cta: Knopf: LEARN_MORE (Default), APPLY, DOWNLOAD, VIEW_QUOTE, SIGN_UP, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, SEE_MORE, BUY_NOW, SHOP_NOW; bei Lead-Gen zusätzlich UNLOCK_FULL_DOCUMENT. image_url: öffentliche https-URL eines Bildes (JPG/PNG/GIF, max. 5 MB, empfohlen 1200×627 oder 1200×1200) — wird zu LinkedIn hochgeladen (dauert einige Sekunden), Format Einzelbild. Bild später ergänzen (im Live-Test bestätigt): ohne image_url, aber mit destination_url und headline anlegen → Artikel-Anzeige als Entwurf; danach setzt der Nutzer im Campaign Manager am Entwurf das Bild ein. Es bleibt dieselbe Anzeige (creative_id) im Artikel-Format mit Vorschaubild; Text, Überschrift, Ziel-URL und Knopf bleiben. Per API lässt sich das Bild nicht nachträglich setzen. media_urn: statt image_url ein vorher mit linkedin_upload_media hochgeladenes Medium ('urn:li:image:…', 'urn:li:video:…' oder 'urn:li:document:…') → Einzelbild-, Video- oder Dokument-Anzeige. Das Medium muss fertig verarbeitet sein (linkedin_media_status ready=true, sonst error=media_not_ready) und zur Unternehmensseite dieses Workspace gehören (sonst error=media_not_in_account). Video: headline wird zum Videotitel. Dokument: headline ist Pflicht (Titel des Dokuments). Nicht zusammen mit image_url. lead_form_id: Pflicht in Lead-Gen-Kampagnen (sonst error=lead_form_required), verboten in anderen (error=lead_form_not_allowed); Formular muss zum Werbekonto gehören. name: interner Anzeigenname im Campaign Manager (optional). validate_only: True prüft Kampagne, Formular, Unternehmensseite und lädt das Bild probeweise, legt aber nichts an (would_create).

Voraussetzungen: LinkedIn-Verbindung mit Seiten-Schreibrecht (sonst error=missing_scope → im Portal LinkedIn einmal neu verbinden); das verbundene Profil braucht auf der Unternehmensseite die Rolle Administrator, Direct-Sponsored-Content-Poster oder Content-Admin und im Werbekonto mindestens Creative Manager (sonst error=linkedin_permission_denied). Werbekonten, die für die Honeyfield-App noch nicht zum Schreiben freigeschaltet sind, liefern error=linkedin_write_not_enabled.

Rückgabe: creative_id, post_urn, status (DRAFT), format (image | video | document | article | text), ad (so wie LinkedIn es gespeichert hat: intro_text, headline, description, destination_url, cta, image, media), verified (Anzeige und Post zurückgelesen; Abweichungen in not_applied; verified=null mit readback_failed/post_readback_failed, wenn nur das Zurücklesen scheiterte — dann NICHT erneut anlegen), notes, bei Lead-Gen lead_form_id und lead_form_state. workspace: Slug des Kunden-Workspace (optional bei nur einem Workspace).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "campaign_id": "<campaign_id>",
      "intro_text": "<intro_text>"
    },
    "name": "linkedin_create_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctaNoLEARN_MORE
nameNo
headlineNo
image_urlNo
media_urnNo
workspaceNo
intro_textYes
campaign_idYes
descriptionNo
lead_form_idNo
validate_onlyNo
destination_urlNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / media_urn
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnly=false and openWorld=true; the description adds the parts that matter: creation is always draft, content is immutable via API after creation, image upload takes seconds, and the first ad fixes the campaign format. It also enumerates concrete failure modes (media_not_ready, media_not_in_account, lead_form_required/not_allowed, missing_scope, linkedin_permission_denied, linkedin_write_not_enabled) with the required page role and ad-account permissions.

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

Conciseness4/5

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

Well front-loaded: purpose, then workflow, then the immutability warning, then per-parameter notes and prerequisites. It is long, and the paragraph on adding an image later in Campaign Manager plus the return-value recap overlap somewhat with the existing output schema, but nearly every sentence is decision-relevant for a 12-parameter creation call.

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 mutation tool with 12 mostly optional parameters, zero schema descriptions and real permission/state prerequisites, the definition covers workflow position, parameter rules, error taxonomy and readback behavior. The readback guidance (verified=null with readback_failed means do NOT recreate the ad) is exactly the kind of instruction an agent cannot derive from the output schema alone.

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 coverage is 0% with 12 parameters, so the description carries the full burden and does: character limits for intro_text/headline/description, the conditional requirement of destination_url (mandatory except lead-gen), the image constraints (https, JPG/PNG/GIF, 5 MB, recommended dimensions), the full cta value list with default, and the mutual exclusivity of media_urn vs image_url plus media-readiness preconditions. It even explains the conditional rule that description only applies without image/video/document.

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?

States a specific verb and resource ('Neue LinkedIn-Anzeige mit eigenem Text anlegen') and immediately narrows the variant (Direct Sponsored Content / Dark Post, not on the company page feed), which implicitly separates it from linkedin_create_ad_from_post. Activation is routed to linkedin_update_creative_status, so an agent can tell which sibling finishes the job.

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?

Gives an explicit end-to-end campaign sequence (create_campaign_group → create_campaign → lead form → create_ad, one call per ad variant) and states the tool always creates a DRAFT. It also flags validate_only as a dry-run path and warns that content cannot be changed after creation, so corrections mean creating a new ad and archiving the old one.

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