Skip to main content
Glama

download_file_content

Read-only

Download one Drive file's raw bytes as base64 (binary-safe — images, PDFs, etc.). NOT for Google-native Docs/Sheets/Slides (no raw binary exists — use read_file_content with export_mime_type instead). Hard-capped at 5MB; larger files error rather than silently truncating. Needs the Drive CONTENT scope (drive.readonly). Pass account when more than one content-capable account is connected.

Input Schema

NameRequiredDescriptionDefault
accountNoAccount label the file belongs to. Required when several content-capable (drive.readonly) accounts are connected.
file_idYesDrive file id (from search_drive_files or get_file_metadata). Not for Google-native Docs/Sheets/Slides — use read_file_content for those.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=true; the description goes well beyond that by disclosing the 5MB hard cap, the fail-rather-than-truncate behavior, and the required drive.readonly CONTENT scope. These are exactly the operational constraints an agent needs before calling a binary-download tool.

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?

Four dense sentences, each carrying distinct load (purpose, exclusion, size limit, scope/account), with the core action front-loaded. No filler or restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having no output schema, the description characterizes the return (raw bytes as base64), the failure mode above the cap, and the auth/account prerequisites. For a two-parameter read tool this is complete enough to invoke correctly.

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%, and the schema descriptions for both file_id and account already carry the routing and account-requirement text, so the description is largely redundant on parameters. A baseline 3 is appropriate since the schema does the heavy lifting with no added syntax or format detail in the description.

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 and resource ('Download one Drive file's raw bytes as base64') and immediately scopes it against the nearest sibling by ruling out Google-native Docs/Sheets/Slides and naming read_file_content as the alternative. An agent can distinguish this from read_file_content or get_file_metadata without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit when-not ('NOT for Google-native Docs/Sheets/Slides') paired with the correct alternative and the parameter to use ('read_file_content with export_mime_type'). It also specifies the account-selection condition, so both the main routing decision and a real disambiguation case are covered.

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