Skip to main content
Glama
LKbaba
by LKbaba

gemini_analyze_content

Analyze code, documents, or data by summarizing, reviewing, explaining, optimizing, or debugging. Accepts file paths or direct input, auto-detecting content type and language.

Instructions

Analyze code, documents, or data. Supports file path or direct content input. Provides summarization, code review, explanation, optimization, and debugging. Auto-detects content type and programming language.

TIP: This tool supports PARALLEL calls - analyze multiple files simultaneously for faster results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNoAnalysis task (default: summarize)summarize
typeNoContent type (default: auto)auto
focusNoOptional: Specific areas to focus on (e.g., ["security", "performance"])
modelNoGemini model to use (optional, default: gemini-3.1-pro-preview)
contentNoContent to analyze (direct input). Use this or filePath.
filePathNoFile path to read and analyze (e.g., "./src/utils/parser.ts"). The tool will automatically read the file and detect the language. Use this or content.
languageNoOptional: Programming language (if code). Auto-detected when using filePath.
outputFormatNoOutput format (default: markdown)markdown
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It adds value by mentioning auto-detection and parallel call support, but it does not describe return structures, limitations, or any side effects. This is acceptable for a read-like analysis tool but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

The description is compact and front-loaded, with the first sentence immediately stating the core function. The additional tip about parallel calls is useful and does not add fluff. Every sentence serves a purpose.

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?

The tool has 8 parameters, no annotations, and no output schema, so the description needs to cover a lot. It handles the main functionality and input methods, but omits output format behavior or return value expectations. Given the complexity, this is a clear gap, making the description adequate but not complete.

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?

Schema coverage is 100%, so the baseline is 3. The description adds meaning by consolidating the task list, explaining the file path vs. direct content input, and highlighting auto-detection of type and language, which complements the schema. This goes slightly beyond the schema's individual descriptions.

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?

The description clearly states the tool analyzes code, documents, or data and lists specific tasks (summarization, code review, etc.), making the primary purpose evident. However, it does not explicitly distinguish this from the sibling tool gemini_analyze_codebase, so the differentiation is not fully articulated.

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 clear usage context by mentioning support for file path or direct content input and auto-detection of content type and language. It also includes a practical tip about parallel calls. However, it lacks explicit 'when not to use' guidance or alternative tool mentions, so it stops short of full usage guidelines.

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/LKbaba/Gemini-mcp'

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