Skip to main content
Glama
TikTok Ads Library MCP Server

TikTok Ads Library MCP Server

analyze_ad_video

Read-only

Downloads and analyzes TikTok ad videos to extract the hook, scene-by-scene storytelling, on-screen text, audio, pacing, and brand messaging for creative research.

Instructions

REQUIRED for analyzing video ads from TikTok. Downloads and analyzes ad videos using Gemini's video understanding to extract the hook, scene-by-scene storytelling, on-screen text, audio/voiceover, pacing and brand messaging. ALWAYS pass ad_id — TikTok CDN URLs are signed and expire within minutes, and ad_id lets the server fetch a fresh URL and cache results stably across sessions. Uses intelligent caching for efficiency.

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

Input Schema

NameRequiredDescriptionDefault
ad_idNo
media_urlNo
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.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds genuinely non-obvious behavior: the tool downloads remote media, TikTok CDN URLs are signed and expire within minutes, and the server re-fetches a fresh URL and caches results across sessions. Those constraints are exactly what an agent needs and cannot get from the structured fields.

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 'REQUIRED' trigger and the critical ad_id rule, then the capability list. The closing 'Uses intelligent caching for efficiency' is largely redundant with the earlier 'cache results stably across sessions' and the emphasis capitalization is mildly noisy, but nothing is seriously bloated.

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

Completeness4/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 shape needn't be described. What remains thin is the meaning of the optional media_url and brand_name inputs and any expectation about turnaround cost for a download-plus-model-inference call. Adequate overall for the tool's complexity, short of exhaustive.

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 parameter meaning. It explains ad_id thoroughly (expiry, cache stability) but leaves media_url and brand_name entirely undefined, so only a fraction of the parameter surface is compensated for. A mid score reflects that partial coverage.

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 ('Downloads and analyzes ad videos') and enumerates the extracted dimensions: hook, scene-by-scene storytelling, on-screen text, audio/voiceover, pacing, brand messaging. The explicit 'video ads' framing separates it from the sibling image analyzer without ambiguity.

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 TikTok' gives a clear positive trigger, and 'ALWAYS pass ad_id' is an explicit operating instruction. It stops short of 5 because it never says when media_url is the right choice instead, nor states any exclusion or prerequisite beyond the ad_id directive.

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