Skip to main content
Glama

Analyze a reference ad

analyze_reference_ad
Read-only

Analyze a public YouTube video or a completed video in the selected workspace. Returns a timestamped hook and ordered shots without creating an edit. Provide exactly one source. Call when the user asks to analyze a video reference.

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": {
      "workspaceId": "<workspaceId>"
    },
    "name": "analyze_reference_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
mediaIdNo
youtubeUrlNo
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / mediaId / $ref
      Removed value: -"#/properties/workspaceId"
    • addedInput schema / properties / mediaId / maxLength
      Added value: +128
    • addedInput schema / properties / mediaId / minLength
      Added value: +1
    • addedInput schema / properties / mediaId / pattern
      Added value: +"^[a-zA-Z0-9_-]+$"
    • addedInput schema / properties / mediaId / type
      Added value: +"string"
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with 'without creating an edit'. More importantly it discloses the return content (timestamped hook and ordered shots), which annotations cannot express. It adds nothing about rate limits, failures on private/non-YouTube sources, or latency, keeping 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.

Conciseness4/5

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

Three short sentences, front-loaded with the capability and benefit, then the constraint, then the trigger. The final sentence partially restates the tool title ('analyze a video reference'), which is the only mildly redundant element.

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?

No output schema exists, and the description compensates by summarizing the returned artifacts (hook plus ordered shots). Non-mutation, source exclusivity, and the public-visibility requirement are all covered. Edge cases such as invalid or private YouTube URLs are not addressed.

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?

With 0% schema description coverage, the description carries the full burden and does well: it maps the two source parameters to their semantics (public YouTube URL vs. completed workspace video) and states the mutual-exclusion rule 'exactly one source', which the schema does not encode. It does not spell out the string patterns, length limits, or URI format present in the schema.

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 uses a specific verb ('Analyze') plus two concrete resource types ('a public YouTube video or a completed video in the selected workspace') and states the deliverable ('timestamped hook and ordered shots'). The clause 'without creating an edit' explicitly separates it from edit-creation siblings such as create_edit.

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?

'Call when the user asks to analyze a video reference' gives a clear trigger condition, and 'Provide exactly one source' gives a hard constraint on invocation. It stops short of naming an alternative tool or stating when not to call it, so a 4 rather than a 5.

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.