Skip to main content
Glama

Honeyfield Marketing MCP

LinkedIn Ads: Upload media

linkedin_upload_media

Bild, Video oder Dokument von einer öffentlichen https-URL zu LinkedIn hochladen (Eigentümer: die Unternehmensseite des Werbekontos). Die media_urn dann an linkedin_create_ad(media_urn=…) übergeben → Einzelbild-, Video- oder Dokument-Anzeige. Für eine einzelne Bild-Anzeige geht auch direkt linkedin_create_ad(image_url=…). media_type: auto (Default, erkennt das Format am Dateiinhalt), image, video, document. Formate und Grenzen über den MCP: Bild JPG/PNG/GIF bis 5 MB (empfohlen 1200×627 oder 1200×1200); Video MP4, 75 KB bis 50 MB, 3 s bis 30 min; Dokument PDF, DOC, DOCX, PPT, PPTX bis 25 MB (LinkedIn: max. 300 Seiten). Größere Dateien im Campaign Manager hochladen. Bilder sind nach dem Aufruf fertig (ready=true). Videos und manchmal Dokumente verarbeitet LinkedIn noch (status PROCESSING, ready=false, bei Videos oft einige Minuten) — dann mit linkedin_media_status prüfen und linkedin_create_ad erst bei ready=true aufrufen. NICHT erneut hochladen. Rückgabe: media_urn, media_type, status (AVAILABLE | PROCESSING | WAITING_UPLOAD | PROCESSING_FAILED), ready, organization_urn, size_bytes; bei Videos duration_s und aspect_ratio, sobald verarbeitet. Voraussetzungen wie linkedin_create_ad: Seiten-Schreibrecht der Verbindung (sonst error=missing_scope → im Portal neu verbinden) und eine Rolle auf der Seite (Administrator, Direct-Sponsored-Content-Poster oder Content-Admin, sonst error=linkedin_permission_denied). Das Medium erscheint nirgends, bis eine Anzeige es verwendet. 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": {
      "media_url": "<media_url>"
    },
    "name": "linkedin_upload_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
media_urlYes
workspaceNo
media_typeNoauto

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, so the description carries most of the burden and does add substantial context: async PROCESSING states for video/document, the fact that media is invisible until an ad uses it, and required page write scope plus role prerequisites with named error codes. It is marked down slightly because it spends sentences enumerating return fields (media_urn, status, ready, size_bytes, duration_s) that the existing output schema already defines, and because 'destructiveHint=false' sits somewhat uneasily with an upload that consumes storage/quota — the description never clarifies limits on repeated or failed uploads beyond 'NICHT erneut hochladen'.

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 action and the hand-off to linkedin_create_ad, then formats/limits, then async caveats, then prerequisites — a sensible order. It is long and repeats the return-value list that the output schema already covers, which is the main waste.

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?

Covers everything an agent needs to call it correctly: source URL type, media types and size/duration limits, auto-detection, async polling contract, permission/role failure modes, and the non-destructive-until-used semantics. Since an output schema exists, the return-field recap is redundant rather than required, so completeness is not impaired.

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%, so the description must compensate and largely does: media_type is explained (auto default detecting format from file content, plus image/video/document), workspace is explained (slug, optional when only one workspace), and media_url is constrained to a public https URL. What is missing is whether the URL must be directly fetchable/authenticated-free and what happens on a fetch failure.

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 ('Bild, Video oder Dokument von einer öffentlichen https-URL zu LinkedIn hochladen') plus the ownership scope (company page of the ad account). It also names the downstream siblings linkedin_create_ad and linkedin_media_status, so an agent can place it in the workflow without opening another 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: pass media_urn to linkedin_create_ad, or use linkedin_create_ad(image_url=…) for a single image ad; check linkedin_media_status when ready=false and do NOT re-upload. It also states the exclusion for oversized files (upload in Campaign Manager instead), which is exactly the when-not guidance the dimension asks for.

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