Skip to main content
Glama

analyze_ad_video

Read-only

Turn Google video ads into marketing insights by extracting visual storytelling, audio, pacing, transitions, and brand messaging from a YouTube or direct video URL.

Instructions

REQUIRED for analyzing video ads from Google. Pass the youtubeUrl from get_google_ad_details (Gemini reads YouTube directly) or a direct video file URL. Extracts visual storytelling, audio elements, pacing, scene transitions, brand messaging, and marketing strategy insights. Uses intelligent caching for efficiency and includes comprehensive video analysis.

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?

Beyond the readOnlyHint/openWorldHint annotations, the description discloses that Gemini reads YouTube URLs directly (so a YouTube link works without prior download) and that intelligent caching is used, which is relevant behavioral context for a model-invoking tool. It stops short of disclosing latency, cost, or cache expiry.

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?

The critical instruction and URL provenance are front-loaded in the first two sentences, and the trailing 'includes comprehensive video analysis' is mild filler that could be cut. Slightly long but well ordered.

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?

For a tool with an output schema, the description needn't describe return values, and it correctly focuses on input sourcing and what is analyzed. The only real gap is the unexplained optional ad_id and brand_name parameters.

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 does this well for media_url by explaining both accepted forms and where the URL comes from. It says nothing about ad_id or brand_name, leaving two of three parameters undocumented in either schema or description.

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?

The description supplies a specific verb and resource ('analyzing video ads from Google'), enumerates what the analysis yields (visual storytelling, audio elements, pacing, scene transitions, brand messaging, marketing strategy), and differentiates the input mode from the image sibling by naming video/YouTube explicitly.

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?

It clearly states when this tool is the right call ('REQUIRED for analyzing video ads from Google') and prescribes the exact input source: 'Pass the youtubeUrl from get_google_ad_details ... or a direct video file URL.' It does not, however, state when NOT to use it or mention analyze_ad_image for still creatives.

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