Skip to main content
Glama

aistudio_analyze_media

Analyze local videos, audio, PDFs, images, or YouTube URLs with a question to extract insights, summaries, or answers using Google AI Studio.

Instructions

Analyze local videos, audio recordings, PDFs, images, or a YouTube URL using Google AI Studio.

Args: question: What to analyze, extract, or summarize. files: Optional list of local file paths (video, audio, PDF, images). youtube_url: Optional YouTube video URL to analyze. model: Optional model name. system_instruction: Optional system instruction. use_browser: True (default) uses your AI Studio Chrome session; False uses Gemini API.

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": {
      "question": "<question>"
    },
    "name": "aistudio_analyze_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
modelNo
questionYes
use_browserNo
youtube_urlNo
system_instructionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does usefully disclose the two execution modes and the implicit dependency that use_browser=True relies on an authenticated AI Studio Chrome session, which hints at the role of aistudio_browser_login. It says nothing about whether files and youtube_url are mutually exclusive, cost/latency differences between modes, or whether the call is synchronous or job-based despite aistudio_check_job existing as a sibling.

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 one-sentence purpose followed by a scannable Args block, with no filler prose. Minor waste from repeating "Optional" on four entries and the mild redundancy of restating parameter names verbatim.

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?

For a six-parameter tool with an output schema, the description covers every parameter at least nominally and does explain the browser/API mode split. It is still incomplete on the decisions an agent must make before calling: whether exactly one of files/youtube_url is required, what model names are valid, and whether the operation returns inline or as a pollable job.

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

Parameters2/5

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

Schema description coverage is 0%, so the description is the only source of parameter meaning, and it only partially delivers. It clarifies question, files (list of local paths), and especially use_browser (session vs API), but model is described only as "Optional model name" with no pointer to aistudio_list_models, system_instruction adds no meaning beyond its name, and the interaction/validity rules between files and youtube_url are left unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("Analyze") and enumerates the concrete resource types it accepts: local videos, audio, PDFs, images, or a YouTube URL, plus the backing service (Google AI Studio). An agent can tell what the tool does, but nothing distinguishes it from siblings like aistudio_transcribe or aistudio_prompt, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the accepted input types; there is no explicit statement of when to choose this over aistudio_transcribe, aistudio_prompt, or aistudio_inspect_ui, and no prerequisites are given. The one piece of real routing guidance is inside the use_browser parameter (Chrome session vs Gemini API), which is parameter-level, not tool-level.

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