Skip to main content
Glama

Gemini reads a file or URL

gemini_read

Reads a local file (PDF, audio, video, image, text) or web page with Gemini and answers a question about it, saving Claude context on large or media content.

Instructions

Have Gemini read one local file or one web page and answer a question about it, on your Google AI Pro quota. Handles PDFs, audio (transcription), video (what is shown and said), images and web pages, natively and multimodally — use it to save Claude context on large or media files. Give exactly one of path (absolute; copied into a scratch workspace; max 200 MB) or url (http/https). YouTube links do not work. Personal content only — never work code, client or customer data.

Input Schema

NameRequiredDescriptionDefault
urlNoAn http(s) URL to read instead of a file. YouTube is not supported.
pathNoAbsolute path of a local file (PDF, audio, video, image, text). Max 200 MB.
modelNopro only when the user explicitly asks.flash
questionYesWhat to extract or answer from the file or page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and discloses important traits: Google AI Pro quota usage, file copying into a scratch workspace, a 200 MB limit, multimodal media support, YouTube incompatibility, and a personal-content restriction. It does not describe return format, latency, or error behavior, leaving a few operational gaps.

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 front-loaded, with the core action in the first sentence and constraints following immediately. Every sentence appears to earn its place by adding scope, usage, input constraints, or policy limits.

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?

For a multimodal read tool with no output schema and no annotations, the description covers the key operational details: accepted media, input exclusivity, size limit, quota, and content restrictions. It could be slightly more complete by describing the form of the returned answer or error behavior, but it is sufficient for correct invocation.

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 meaningful semantics beyond the schema by stating 'exactly one' of path or url and noting that path files are copied into a scratch workspace; however, it does not add guidance for the model parameter beyond what the schema already says.

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 states a specific verb and resource: 'Have Gemini read one local file or one web page and answer a question about it,' and adds scope such as media handling and context-saving. It is clear what the tool does, but it does not explicitly distinguish itself from gemini_ask or gemini_image, so it falls short of full sibling differentiation.

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?

It gives clear usage context ('save Claude context on large or media files'), a hard input constraint ('Give exactly one of path or url'), and explicit exclusions ('YouTube links do not work' and 'never work code, client or customer data'). Alternatives such as gemini_ask are not named, so routing guidance is strong but not complete.

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