Skip to main content
Glama

content_analyze

Read-only

Analyze files, URLs, or text with custom instructions. Get structured JSON results using Gemini's reliable output schema.

Instructions

Analyze content (file, URL, or text) with any instruction.

Provide exactly one of file_path, url, or text. Uses Gemini's structured output for reliable JSON responses. Pass a custom output_schema to control the response shape, or use the default ContentResult schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instructionNoWhat to analyze — e.g. 'summarize key findings', 'extract methodology', 'list all citations'Provide a comprehensive analysis of this content.
file_pathNoLocal file path (PDF or text)
urlNoURL to analyze
textNoRaw text content
output_schemaNoOptional JSON Schema for the response. If omitted, uses default ContentResult schema.
thinking_levelNoGemini thinking depth.medium

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description adds value beyond annotations by stating that the tool uses Gemini's structured output for reliable JSON responses and allows custom output_schema. It is transparent about behavior without contradicting the readOnlyHint and openWorldHint annotations.

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 concise, consisting of three short sentences that front-load the core purpose and then provide key usage details. Every sentence adds necessary information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of six parameters, no required fields, and the presence of a default output schema, the description adequately covers all essential aspects: content source selection, instruction flexibility, output customization, and thinking level. It is complete for an AI agent to use correctly.

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

Parameters5/5

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

With 100% schema description coverage, the description still adds significant value by clarifying that content sources are mutually exclusive and explaining the purpose of output_schema and thinking_level, enhancing understanding beyond the schema alone.

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's purpose: analyze content from file, URL, or text with any instruction. It distinguishes from sibling tools like content_batch_analyze by focusing on single-item analysis and custom instructions.

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 explicitly instructs to provide exactly one of file_path, url, or text, and explains how to customize output with output_schema. It does not explicitly mention when not to use the tool, but the instructions are clear enough for typical use.

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