Skip to main content
Glama
MCP Google Drive Server

MCP Google Drive Server

by MegalLink

get_drive_file_tool

Retrieves the content of a Google Drive file from its URL or file ID, returning structured JSON for Docs/Sheets by default or raw Markdown/CSV when requested.

Instructions

Tool: Get the content of a Google Drive file from its URL

Args: url: The complete Google Drive URL or file ID Examples: - https://docs.google.com/document/d/FILE_ID/edit?usp=sharing - https://drive.google.com/file/d/FILE_ID/view - FILE_ID (direct ID also works) return_json: If True (default), convert Google Docs/Sheets to structured JSON. If False, return raw markdown/csv content.

Returns: String containing the file content (JSON format for Google Workspace files by default)

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": {
      "url": "<url>"
    },
    "name": "get_drive_file_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
return_jsonNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. It does disclose meaningful behavior: Google Docs/Sheets are converted to structured JSON by default, and raw markdown/csv is returned when return_json is False. It says nothing about authentication scopes, permission failures on inaccessible files, size limits, or unsupported file types, which are the main risks for a file-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?

Organized into Tool/Args/Returns sections with the core purpose front-loaded in the first line. The example URL list earns its space, though the Returns line partially duplicates the return_json explanation already given under Args.

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 two-parameter read tool with an output schema present, the definition covers purpose, both parameters, and the shape of the result without needing to describe return fields in detail. Remaining gaps (auth/permission behavior, failure modes) are modest given the tool's simplicity.

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?

Schema description coverage is 0%, so the description must document both parameters, and it largely does: 'url' is explained with three concrete example formats (Docs URL, Drive file URL, bare FILE_ID), and 'return_json' is explained as the switch between structured JSON and raw markdown/csv. It stops short of saying whether a bare FILE_ID works for every file type or what happens on unsupported types.

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?

States a specific verb and resource ('Get the content of a Google Drive file') and the input form ('from its URL'). The verb 'get' naturally contrasts with the sibling update_drive_file_tool, but the description never names it, so the differentiation is inferred rather than stated.

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 only implied by the verb 'Get' and by the parameter notes; there is no explicit when-to-use or when-not-to-use guidance and no mention of alternatives such as update_drive_file_tool. The only directive-style content concerns accepted URL formats rather than tool selection.

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