Skip to main content
Glama

Read Drive file

read_drive_file
Read-onlyIdempotent

Reads a file the signed-in person can open in Google Drive (theirs or shared with them) by file_id. Docs/Sheets/Slides export as text; PDF and images as base64 (5 MB max). Read-only. Sign-in required.

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_id": "<file_id>"
    },
    "name": "read_drive_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesDrive file id from search_my_drive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / file_id
      Added value: +{
      +  "description": "Drive file id from search_my_drive.",
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "file_id"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description still adds substantive behavior: format conversion rules per file type (Docs/Sheets/Slides to text, PDF/images to base64), a 5 MB size ceiling, and a sign-in requirement. That is exactly the context an agent cannot get from the structured fields.

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?

Three short sentences, front-loaded with the action and scope, followed by output format and then constraints. No filler, and each clause carries distinct information (access, format, size, auth).

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?

With no output schema, the description correctly takes on the burden of explaining return shapes (text vs. base64) and the size limit. It stops short of covering other binary file types or what happens on unsupported/oversized files, a minor gap for a one-parameter read tool.

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 100% with a single required file_id that the schema already documents as coming from search_my_drive. The description only restates 'by file_id' and adds the access constraint, so it does not meaningfully extend parameter meaning beyond 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 (reads) and resource (a file in Google Drive) plus the access scope ('theirs or shared with them') and the identifying key (file_id). Naming Google Drive distinguishes it from the Dropbox/OneDrive read siblings without needing to name them.

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 phrase 'a file the signed-in person can open' implies a permission precondition and effectively warns that unshared files will fail, which is useful usage context. However, there is no explicit when-to-use vs. when-not guidance and no alternative tool is named for cases like listing or searching files first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources