Skip to main content
Glama

Honeyfield Marketing MCP

LinkedIn Ads: Create ad from post

linkedin_create_ad_from_post

Bestehenden LinkedIn-Page-Post als Anzeige (Creative) in einer Kampagne anlegen. post_urn: 'urn:li:share:…' oder 'urn:li:ugcPost:…' — am einfachsten aus linkedin_list_page_posts (nur Posts mit sponsorable=true). Neue Anzeige mit eigenem Text, Bild und Ziel-URL ohne Seiten-Post: linkedin_create_ad. campaign_id muss zum Werbekonto des Workspace gehören (sonst error=campaign_not_in_account). Lead-Gen-Kampagnen (Ziel LEAD_GENERATION): lead_form_id ist Pflicht (sonst error=lead_form_required, nichts angelegt) — ID aus linkedin_list_lead_forms oder linkedin_create_lead_form; in anderen Kampagnen → error=lead_form_not_allowed. cta: Knopf-Beschriftung des Formulars (nur mit lead_form_id): LEARN_MORE (Default), APPLY, DOWNLOAD, VIEW_QUOTE, SIGN_UP, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, SEE_MORE, BUY_NOW, SHOP_NOW, UNLOCK_FULL_DOCUMENT. status: DRAFT (Default) oder ACTIVE — als DRAFT läuft die Anzeige erst nach Aktivierung via linkedin_update_creative_status. validate_only: True prüft Kampagne und Formular (nur lesend) und liefert would_create, legt nichts an. Rückgabe: creative_id, post, status, verified (Creative zurückgelesen: Kampagne, Post, Status, Formular; Abweichungen in not_applied; verified=null mit readback_failed, wenn nur das Zurücklesen scheiterte — dann nicht erneut anlegen, sondern mit linkedin_list_creatives nachsehen), 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>",
      "post_urn": "<post_urn>"
    },
    "name": "linkedin_create_ad_from_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctaNoLEARN_MORE
statusNoDRAFT
post_urnYes
workspaceNo
campaign_idYes
lead_form_idNo
validate_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cta
      Added value: +{
      +  "default": "LEARN_MORE",
      +  "type": "string"
      +}
    • addedInput schema / properties / lead_form_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  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=false, destructiveHint=false and openWorldHint=true; the description adds far more, spelling out that validate_only=true is a read-only check returning would_create, that campaign_id must belong to the workspace account or error=campaign_not_in_account, and how readback verification works (verified, not_applied, verified=null with readback_failed, plus the instruction not to re-create but to inspect via linkedin_list_creatives). It does not discuss rate limits or idempotency guarantees beyond the readback advice, so a 5 is not warranted.

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?

Front-loaded with the core action, then organized one concern per line (post_urn, campaign_id, lead_form_id, cta, status, validate_only, Rückgabe, workspace), which makes scanning easy. The Rückgabe block restates return values that the output schema already provides, which is the main non-earning content; the rest is dense and purposeful.

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 7-parameter, 2-required mutation tool with 0% schema coverage, the description covers every parameter plus the error paths and the readback/verification semantics. Since an output schema exists, the return-value recap is optional but the added 'don't re-create on readback_failed' guidance supplies real decision value, so nothing an agent needs to call this correctly is missing.

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 description coverage is 0% across 7 parameters, so the description carries the full burden. It documents the post_urn URN formats, campaign_id account constraint, lead_form_id conditional requirement, the full cta enumeration (absent from the schema, which declares no enums), status DRAFT/ACTIVE with default and activation consequence, validate_only, and workspace optionality. Only the cta default and constraints are partly redundant with schema defaults; coverage is otherwise complete.

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 ('Bestehenden LinkedIn-Page-Post als Anzeige (Creative) in einer Kampagne anlegen') and immediately contrasts it with the sibling linkedin_create_ad, which makes an ad from its own text/image/URL without a page post. The agent can distinguish the two 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?

Gives explicit routing: use linkedin_list_page_posts (only sponsorable=true) to obtain post_urn, linkedin_create_ad when there is no page post, linkedin_list_lead_forms or linkedin_create_lead_form for lead_form_id, and linkedin_update_creative_status to activate a DRAFT. It also states when-not conditions: lead_form_id is required for LEAD_GENERATION campaigns and forbidden (error=lead_form_not_allowed) otherwise.

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