Skip to main content
Glama

readFile

Read the full text of a .docx or .pdf from Google Drive by file ID when Word documents or PDFs cannot be accessed with readDocument.

Instructions

Read the full text content of a .docx or .pdf file from Google Drive by file ID. Use this for Word documents and PDFs that cannot be read with readDocument.

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": {
      "fileId": "<fileId>"
    },
    "name": "readFile"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYesThe Google Drive file ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0-rc.1

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does convey that this is a read operation returning the full text content rather than a preview or metadata, but it says nothing about size limits, failure modes on large or scanned PDFs, or what happens when extraction is incomplete. Those gaps matter for a file-extraction tool even though reads are low-risk.

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?

Two sentences with no filler: the capability and its scope come first, the disambiguation against readDocument second. Nothing repeated from the name or schema is wasted.

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?

A single-parameter read tool with no output schema and no annotations needs little, and the description covers what it returns (full text content) and which formats it supports. What is missing is failure/size behavior, which is a modest gap at this complexity level.

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?

Only one parameter, and the schema already documents it at 100% coverage with 'The Google Drive file ID'. The description reinforces the source system (Google Drive) but adds no format or acquisition guidance beyond the schema, so the baseline-plus level fits.

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), a specific resource (full text content of a .docx or .pdf), and the locator (file ID from Google Drive). It explicitly delimits itself against readDocument by naming the file types that tool cannot handle.

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?

Gives a clear use condition (Word documents and PDFs that readDocument cannot read) and names the alternative tool. It stops short of stating when not to use it or how other Drive file types should be handled, so the boundary is clear but not exhaustive.

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

Deploy Server

Other Tools