Skip to main content
Glama

Import from Google Drive

import_from_google_drive

Import Google Drive folders into a Playbook folder. Use this for files that live in the user's Google Drive, including private folders — upload_from_url cannot reach those. Google Drive and Dropbox are connected ONCE, by a person, in the Playbook web app — there is no tool that connects them. Connections belong to a Playbook user: this server only sees connections made by the same Playbook account it is signed in as. When list_import_sources has no source with the needed provider, its connect_url is where a person connects that service; the source is listed once they have. Every Google Drive folder is checked against the connected Google account first; one it cannot see is refused with the account's email, which usually means the folder must be shared with that account. RE-SYNC: importing the same Drive folder into the same folder_token skips files already there unchanged, so a recurring sync should reuse the Playbook folder. But a file changed in Drive is added as a SECOND asset next to the old one, and renaming the Drive folder or its Playbook folder imports that folder again in full. WHERE FILES LAND: each source folder becomes a Playbook folder NAMED AFTER IT inside the target folder, with its own subfolders nested below — not the target folder itself. Find it with list_subfolders on folder_token, or list_assets with nested_assets. The import is ASYNCHRONOUS: this returns a run in pending; poll get_import until status is completed or canceled. Plans without unrestricted imports allow one active import per workspace; the refusal names the active import's token, so poll that instead of retrying. Storage overage cannot be agreed to here: the call is refused when the workspace has no storage left before overage it has not agreed to, and the import is canceled (overlimit) before storing a file that would cross it. A rate-limit error carries a retry delay — wait that long. Requires a write-scope token and workspace owner/admin permission.

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": {
      "source_token": "<source_token>",
      "source_folders": "<source_folders>"
    },
    "name": "import_from_google_drive"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_tokenNoPlaybook folder to import into; each Google Drive folder lands in a folder inside it. Omit to create a new top-level folder named 'Google Drive import (date)'; pass the folder from an earlier run to re-sync it. A deleted folder is not found.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
source_tokenYesToken of a `google_drive` source from list_import_sources
source_foldersYes1–20 Google Drive folder URLs (https://drive.google.com/drive/folders/…) or bare folder IDs. Folders only — a file URL is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / board_token
      Removed value: -{
      -  "description": "Board to import into; each folder lands in a sub-board of it. Omit to create a new top-level board named 'Google Drive import (date)'; pass the board from an earlier run to re-sync it. A deleted board is not found.",
      -  "type": "string"
      -}
    • addedInput schema / properties / folder_token
      Added value: +{
      +  "description": "Playbook folder to import into; each Google Drive folder lands in a folder inside it. Omit to create a new top-level folder named 'Google Drive import (date)'; pass the folder from an earlier run to re-sync it. A deleted folder is not found.",
      +  "type": "string"
      +}
    • removedInput schema / properties / folders
      Removed value: -{
      -  "description": "1–20 Google Drive folder URLs (https://drive.google.com/drive/folders/…) or bare folder IDs. Folders only — a file URL is refused.",
      -  "items": {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "maxItems": 20,
      -  "minItems": 1,
      -  "type": "array"
      -}
    • addedInput schema / properties / source_folders
      Added value: +{
      +  "description": "1–20 Google Drive folder URLs (https://drive.google.com/drive/folders/…) or bare folder IDs. Folders only — a file URL is refused.",
      +  "items": {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "source_token",
      -  "folders"
      -]New value: +[
      +  "source_token",
      +  "source_folders"
      +]
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "source_token",
      -  "folders",
      -  "context"
      -]New value: +[
      +  "source_token",
      +  "folders"
      +]
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: the import is asynchronous and the returned run must be polled via get_import, a re-sync creates a SECOND asset for changed files, folder renames force a full re-import, storage overage causes an 'overlimit' cancellation, rate-limit errors carry a retry delay, and a write-scope token plus owner/admin role is required. It also discloses the authorization model (connections are per-Playbook-user) and the Drive-sharing prerequisite. The idempotentHint=false annotation is consistent with the 'changed file becomes a second asset' behavior.

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 purpose and exclusion, then organized by labeled concerns (RE-SYNC, WHERE FILES LAND). It is dense and long — a couple of clauses, such as the connection-ownership sentence, are wordier than needed — but nearly every sentence carries operational information.

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?

For an async, permissioned, quota-constrained mutation with no output schema, the definition supplies everything an agent needs to call it and follow through: the pending-run return, the polling tool, where to find the imported folder, the single-active-import constraint, and the failure modes with their remedies.

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 coverage is 100%, so baseline is 3, but the description adds consequence-level meaning to `folder_token` — reusing it skips unchanged files, while omitting it creates a new dated top-level folder, and the result lands in a subfolder named after the source rather than the target. It does not restate the 1–20 folder URL/id syntax, which the schema already covers well.

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?

Opens with a specific verb+resource: 'Import Google Drive folders into a Playbook folder.' It immediately scopes itself against the sibling 'upload_from_url', which 'cannot reach' private Drive folders, so an agent can pick between them without opening either 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?

Explicit when-to-use ('files that live in the user's Google Drive'), when the connection precondition is missing (list_import_sources returns no matching provider → use its connect_url), and when to re-run versus start fresh ('a recurring sync should reuse the Playbook folder'). It also tells the agent what to do instead of retrying when a one-active-import refusal occurs.

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