Skip to main content
Glama

content_batch_analyze

Read-only

Analyze multiple content files simultaneously to extract insights, compare documents, or summarize information using batch processing with configurable modes.

Instructions

Analyze multiple content files from a directory or explicit file list.

Supports two modes: 'compare' sends all files to Gemini in a single call for cross-document analysis, 'individual' analyzes each file separately with bounded concurrency (3 parallel calls).

Args: instruction: What to analyze or extract from the content. directory: Directory to scan for content files. file_paths: Explicit list of file paths to analyze. glob_pattern: Glob to filter files in directory mode. mode: 'compare' or 'individual' analysis mode. output_schema: Optional JSON Schema dict for custom output shape. thinking_level: Gemini thinking depth. max_files: Maximum number of files to process.

Returns: Dict with file counts, per-file items, and optional comparison result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instructionNoWhat to analyze — e.g. 'compare methodologies', 'summarize each document', 'extract key findings'Provide a comprehensive analysis of these documents.
directoryNoDirectory to scan for content files
file_pathsNoExplicit list of file paths to analyze
glob_patternNoGlob pattern to filter files within directory*
modeNo'compare' for cross-document analysis in one call, 'individual' for separate per-file analysiscompare
output_schemaNoOptional JSON Schema for each result
thinking_levelNohigh
max_filesNoMaximum files to process

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations indicate readOnly and openWorld hints. The description adds valuable behavioral context not in the annotations: specifically mentioning the backend ('Gemini'), the exact concurrency limit ('3 parallel calls'), and the return structure ('Dict with file counts...'). It does not contradict the annotations.

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 description is well-structured with clear sections (general purpose, mode details, Args, Returns) and front-loads the core functionality. While the 'Args' and 'Returns' sections are somewhat redundant given the rich schema and existing output schema, they improve readability without excessive verbosity.

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?

Given the 8 parameters, high schema coverage, and existing output schema, the description provides adequate completeness. It explains the critical behavioral difference between modes, mentions the concurrency bound, and acknowledges the return structure, though it could note error handling behavior or max_files enforcement details.

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 coverage is 88% (high), establishing a baseline of 3. The description adds minimal semantic value beyond the schema for most parameters, largely echoing schema descriptions in the 'Args' section. It provides slight compensation for the one undocumented schema parameter (thinking_level) by noting it controls 'Gemini thinking depth', but does not elaborate significantly.

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 clearly states the tool analyzes multiple content files using specific verbs ('analyze', 'compare') and resources ('content files', 'directory'). It distinguishes from the single-file sibling 'content_analyze' by emphasizing 'multiple' and 'batch' capabilities, and specifies the two distinct analysis modes ('compare' vs 'individual').

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?

The description provides explicit guidance on when to use each mode: 'compare' for cross-document analysis in a single call versus 'individual' for separate per-file analysis with bounded concurrency. However, it does not explicitly reference external alternatives like when to use 'content_analyze' for single files versus this batch tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Galbaz1/video-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server