Skip to main content
Glama

Read file content

read_file_content
Read-only

Read Google Classroom attachments from Drive file IDs or links by converting Docs/Slides to text, Sheets to CSV, Office files to text, and returning images and PDFs in usable formats.

Instructions

Read the contents of a Classroom attachment: Google Docs/Slides as text, Sheets as CSV, .docx/.pptx/.xlsx as extracted text, plain-text files as text, images as images, PDFs as an embedded PDF.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "file": "<file>"
    },
    "name": "read_file_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesDrive file id or any drive.google.com / docs.google.com link
max_charsNoTruncate text output (default 100000)
export_formatNoOverride export format for Google-native files (txt, csv, html, md, pdf…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only say readOnly and openWorld; the description adds real behavioral detail by declaring the per-format transformation matrix (Docs/Slides to text, Sheets to CSV, Office files to extracted text, images returned as images, PDFs embedded). It omits error behavior for unsupported types and does not note that text output is truncated, but the format-conversion disclosure is substantive context beyond 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.

Conciseness5/5

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

A single front-loaded sentence with a colon-delimited type-to-output mapping; every clause carries information and there is no filler or repetition of the title.

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 multi-format reader with no output schema and thin annotations, the description covers the essential question of what comes back for each file type. It falls short only on truncation behavior and failure modes, which are minor relative to the format coverage it does provide.

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 description coverage is 100%, so the baseline is 3. The description adds meaning only indirectly: by stating the default per-type conversion it clarifies what export_format overrides, but it never mentions max_chars or the truncation control, leaving that parameter entirely to the schema.

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 ('Read the contents') and resource ('Classroom attachment'), then enumerates the file types handled and what each yields. An agent can tell this apart from download_file or get_file_info without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description scopes usage to Classroom attachments and implies it is the tool for getting readable content rather than metadata, but it never explicitly says when to prefer it over download_file or get_file_info, nor states prerequisites such as access to the attachment.

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