Skip to main content
Glama

read_file_content

Fetch a file's content as text from Google Drive. Converts Docs to Markdown, Sheets to CSV, Slides to text; returns text-based files as-is.

Instructions

Return a file's content as text. Google Docs export as Markdown, Sheets as CSV (first sheet), Slides as plain text; text, Markdown, CSV, JSON and similar files are returned as-is. Binary files such as PDFs and images cannot be read this way; use download_file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileIdYes
formatNoExport format for Google-native files. Default md for Docs, csv for Sheets, txt for Slides.
maxCharsNoTruncate after this many characters (default 50000).

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?

No annotations provided, so the description carries the full burden. It discloses export transformation behavior and binary file limitation, plus truncation semantics via the maxChars parameter description. Missing details on errors or auth, but solid for a read tool.

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?

Three sentences, front-loaded with the core purpose and followed by format-specific behavior. No wasted words, though could be slightly tighter.

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?

Complete for a read tool with no output schema, covering what is returned, format transformations, binary file limitation, and truncation. Lacks error handling or pagination details, but sufficient for correct invocation.

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 67% (fileId undocumented, format and maxChars described). The description explains format behavior (Docs→md, Sheets→csv, Slides→txt) which overlaps with the schema's enum description, adding little beyond it. Baseline 3 is appropriate.

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?

States a specific verb (Return) and resource (file's content as text), and clearly differentiates from download_file for binary files. The per-format behavior (Docs→Markdown, Sheets→CSV, etc.) makes the scope unambiguous.

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?

Explicitly says when NOT to use: binary files like PDFs/images, and names the alternative (download_file). However, it doesn't cover other alternatives like get_file_metadata or update_file_content, leaving some selection ambiguity.

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