Skip to main content
Glama
LinkedIn Ads Library MCP Server

LinkedIn Ads Library MCP Server

analyze_ad_video

Read-only

Downloads and analyzes LinkedIn ad videos to extract hooks, scene-by-scene storytelling, on-screen text, voiceover, sound-off readability, and B2B offer positioning.

Instructions

REQUIRED for analyzing video ads from LinkedIn. Downloads and analyzes ad videos using Gemini's video understanding to extract the hook, scene-by-scene storytelling, on-screen text, voiceover, sound-off readability and B2B offer positioning. Pass ad_id alongside media_url so results cache per ad rather than per (expiring) CDN URL. Uses intelligent caching for efficiency.

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": "analyze_ad_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_idNo
media_urlYes
brand_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "title": "Result",
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "title": "analyze_ad_videoOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only and open-world characteristics, and the description adds real behavioral detail: it downloads the media, uses Gemini video understanding, and caches results, plus the key warning that CDN URLs expire so caching keys on ad_id. It does not discuss failure modes, size limits, or latency, which keeps it below a 5.

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

Conciseness5/5

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

Four tight sentences, front-loaded with the required-use statement and purpose, followed by the operational caching advice. The enumerated extraction targets are informative rather than padding, and nothing is redundant.

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

Completeness3/5

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

An output schema exists so return values need no explanation, but for a tool that downloads remote media the description omits constraints that matter: URL accessibility, supported formats, size/duration limits, and the purpose of brand_name. The caching guidance is the strongest completeness element.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the parameter burden. It explains ad_id's caching purpose and hinting at media_url being an expiring CDN URL, but brand_name is never mentioned and media_url's accepted form (public URL, format, size limits) is left vague.

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?

Names a specific verb and resource ('analyzes ad videos') with the source platform (LinkedIn) and enumerates the exact outputs extracted (hook, scene-by-scene storytelling, on-screen text, voiceover, sound-off readability, B2B offer positioning). This clearly separates it from the sibling analyze_ad_image, which handles still images.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'REQUIRED for analyzing video ads from LinkedIn' gives a firm usage mandate, and the ad_id instruction tells the agent how to invoke it for correct caching. There is no explicit when-not-to-use or named alternative, but the video-vs-image distinction is implied well enough to route correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.