Skip to main content
Glama

create_drive_file

Create new files in Google Drive by providing content directly or fetching from URLs. Supports shared drives and various file types for document management.

Instructions

Creates a new file in Google Drive, supporting creation within shared drives. Accepts either direct content or a fileUrl to fetch the content from.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYesThe user's Google email address. Required.
file_nameYesThe name for the new file.
contentNoIf provided, the content to write to the file.
folder_idNoThe ID of the parent folder. Defaults to 'root'. For shared drives, this must be a folder ID within the shared drive.root
mime_typeNoThe MIME type of the file. Defaults to 'text/plain'.text/plain
fileUrlNoIf provided, fetches the file content from this URL. Supports file://, http://, and https:// protocols.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden but only covers basic functionality. It doesn't disclose critical behavioral traits such as required permissions (e.g., Drive API access), whether the operation is idempotent, error handling, rate limits, or what the output contains. The mention of 'shared drives' hints at access control but lacks specifics.

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?

The description is two concise sentences with zero waste, front-loading the core purpose and efficiently covering key features (shared drives, content sources). Every word contributes to understanding the tool's functionality.

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

Completeness3/5

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

Given the complexity of a file creation tool with 6 parameters, no annotations, but a rich input schema (100% coverage) and an output schema (implied by context signals), the description is adequate but minimal. It covers what the tool does but lacks behavioral context, error handling, or output details, leaving gaps for an agent to infer usage safely.

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 description coverage is 100%, so the schema fully documents all 6 parameters. The description adds minimal value by mentioning 'direct content or a fileUrl', which aligns with the 'content' and 'fileUrl' parameters in the schema. No additional semantics beyond what the schema provides are offered.

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?

The description clearly states the action ('Creates a new file') and resource ('in Google Drive'), with additional context about shared drives and content sources. It distinguishes from sibling tools like 'create_doc' or 'create_spreadsheet' by being generic file creation, but doesn't explicitly contrast with similar tools like 'copy_drive_file'.

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?

The description implies usage through the mention of 'supporting creation within shared drives' and the two content input methods, providing some context. However, it doesn't explicitly state when to use this versus alternatives like 'create_doc' for Google Docs files or 'update_drive_file' for modifications, nor does it mention prerequisites or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HuntsDesk/ve-gws'

If you have feedback or need assistance with the MCP directory API, please join our Discord server