Skip to main content
Glama
dougrn

NotebookLM MCP Server

by dougrn

Source Add Drive File

source_add_drive_file

Import a Google Drive file into NotebookLM by downloading it server-side and uploading it. Accepts Drive file IDs or share URLs for supported document formats.

Instructions

Add a Google Drive file by downloading it server-side and uploading it (supports epub/docx/pptx/txt/md/rtf/odt/csv/tsv/pdf).

Probes the Drive file and routes: a downloadable type is fetched server-side and uploaded; a Google-native Doc/Slides/Sheet isn't downloadable and returns a pointer error → use source_add(source_type='drive', mime_type=…) for those (or for a Drive PDF you'd rather add by reference). Use source_add(source_type='file') when you hold the bytes locally.

Accepts a notebook name or ID and a Drive file id or share URL (/d/<id>, /file/d/<id>/…, ?id=<id>). The fetch runs server-side with the profile's session, so it works on the remote (http) connector too — no upload_required step. Processed ASYNCHRONOUSLY; pass wait=true to block until READY (else confirm via source_wait / source_list(status="error")).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNo
titleNo
notebookYes
document_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and delivers: server-side fetch using the profile's session, works on the remote (http) connector with no upload_required step, and asynchronous processing with wait=true / source_wait / source_list(status="error") for confirmation. Rich behavioral disclosure well beyond 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and supported types, then routing, then parameter details, then async behavior. Dense but every sentence earns its place; only slight verbosity in the parenthetical URL examples keeps it from a 5.

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?

An output schema exists so return values need not be explained. The description covers routing, error cases, parameter formats, and the asynchronous completion path — everything an agent needs to invoke this correctly against a rich sibling set.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 compensate and does: notebook accepts a name or ID, document_id accepts a Drive file id or share URL with explicit URL patterns (/d/<id>, /file/d/<id>/…, ?id=<id>), and wait=true blocks until READY. Only 'title' is left implicit, which is self-evident.

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 ('Add a Google Drive file by downloading it server-side and uploading it'), including the supported file types. It distinguishes itself from siblings source_add, source_add_play_book, and await_upload by naming exactly what it does that they don't.

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?

Explicitly routes the agent: Google-native Doc/Slides/Sheet aren't downloadable and return a pointer error → use source_add(source_type='drive', mime_type=…); use source_add(source_type='file') when bytes are held locally. Names when-not conditions and concrete alternatives.

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