Skip to main content
Glama

gws-mcp__drive_read_file

Read-only

Read the text content of any file in Google Drive by file ID. Supports Google Docs, Sheets, Slides, Office formats (.docx/.xlsx/.pptx — auto-converted), and plain text files. Returns extracted text directly — no local filesystem needed.

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": "gws-mcp__drive_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoOptional email address of the connected account to use (e.g. 'user@gmail.com'). If omitted, the default account is used.
file_idYesThe Google Drive file ID to read

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds real context beyond that: Office formats are auto-converted, text is returned directly, and no local filesystem is required. It omits limits worth knowing for a read tool — unsupported binary types (PDFs, images), size/truncation behavior, and whether permissions errors surface as failures.

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, each carrying distinct information: what it reads, which formats are handled, and what comes back. The key capability and format list are front-loaded with no filler.

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 only two parameters, no output schema, and readOnlyHint supplied, the description is close to sufficient; it even covers the return value ('extracted text directly') in place of an output schema. The gap is unsupported or binary file types and any size limits, which an agent would only discover at call time.

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 both parameters are already documented in structured fields, making 3 the baseline. The description reinforces that file_id identifies a Drive file but adds no format or syntax detail, and never mentions the optional account parameter for multi-account selection.

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 ('Read the text content of any file in Google Drive by file ID') and enumerates supported types (Docs, Sheets, Slides, .docx/.xlsx/.pptx, plain text), which lets an agent distinguish it from metadata-style siblings like drive_get_file. It stops short of naming the sibling tools it overlaps with (docs_get, sheets_read, slides_get), so differentiation is implied rather than explicit.

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?

Usage is implied by 'read the text content' rather than stated as a rule: an agent can infer this is the tool for extracting text, but there is no explicit when-to-use versus drive_get_file (metadata) or the per-format readers. No exclusions or prerequisites are given, leaving routing to inference.

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.