Skip to main content
Glama

Create Drive file

drive_create_file

Create a new Google Drive file from plain text with a specified name, optional MIME type, and destination folder. Only manages files created by this integration.

Instructions

Creates a new file in Google Drive with the given text content. Scoped to drive.file: it can only manage files it created itself, and cannot read or edit pre-existing Drive files.

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": {
      "name": "<name>",
      "content": "<content>"
    },
    "name": "drive_create_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesFile name including extension, e.g. "notes.md". Drive allows duplicate names in the same folder.
contentYesFile contents as plain text.
mimeTypeNoMIME type, e.g. "text/plain", "text/markdown", "text/csv". Use "application/vnd.google-apps.document" to create a Google Doc. Defaults to "text/plain".
parentFolderIdNoId of the destination folder — the string after "/folders/" in its URL. Omit to create in My Drive root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new context the annotations cannot convey — the drive.file scope means the tool cannot see or modify pre-existing Drive files — which matters for planning multi-step workflows. It stops short of saying what is returned or what happens on duplicate names, so it is not a full behavioral account.

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?

Two sentences, zero filler, with the core action front-loaded and the scoping caveat immediately after. Everything stated earns its place.

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 four-parameter create tool with full schema coverage and no output schema, the definition covers action, scope, and prerequisites well. The one remaining gap is what a successful call yields (e.g., a file id needed for later operations), which an agent would have to discover empirically.

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 each parameter is documented in the schema with examples (extension, MIME type, folder-id derivation, omission meaning My Drive root). The description only echoes the 'text content' input, so it adds no semantics beyond the schema — the baseline 3 applies.

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 ('Creates a new file in Google Drive') plus the required input ('given text content'). The scope sentence further pins down that this is a create-only, own-files-only operation, so an agent knows exactly what the tool does without opening the schema.

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

Usage Guidelines4/5

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

The drive.file sentence gives clear usage context: use this for files the app itself creates, and it implicitly rules out using it to read or edit pre-existing Drive files. It does not name an explicit alternative tool for editing or listing existing files, but the exclusion is stated plainly enough to route the agent.

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