Skip to main content
Glama

create_file

Create a new Google Drive file from text, optionally importing Markdown, HTML, CSV, or plain content as Docs, Sheets, or Slides; omit content for an empty native file.

Instructions

WRITES. Create a file from text. With convertTo, the text is imported as a Google Doc (from Markdown, HTML or plain text), Sheet (from CSV) or Slides. Without it a plain file of the given mimeType is created. Omit content to create an empty Google file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
contentNoText content.
folderIdNoParent folder. Default My Drive root.
mimeTypeNoMIME type of `content`. Default text/markdown when convertTo is document, text/csv for spreadsheet, otherwise text/plain.
convertToNoImport as a Google-native file.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the write nature ("WRITES"), the conversion side effect of convertTo, and the empty-file behavior when content is omitted, plus the mimeType defaulting rules. It says nothing about permissions required, what happens on name collision, whether an existing file is overwritten, or where in Drive the file lands beyond the schema's folderId note.

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?

Roughly four short sentences, all of which add information, with the core verb front-loaded. The leading "WRITES." is redundant capitalization noise, but nothing else is wasted.

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 six-parameter creation tool with no annotations and no output schema, the description covers the tricky part (conversion mode vs plain file vs empty Google file) adequately. Remaining gaps such as auth requirements and collision/overwrite behavior are real but secondary for a create operation.

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 67%, and the description fills the most important gap: the interaction between content, mimeType, and convertTo ("With convertTo, the text is imported as a Google Doc ... Without it a plain file of the given mimeType is created"), which the schema only states per-parameter. It does not address folderId, description, or name semantics beyond the schema.

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?

Opens with a specific verb and resource ("Create a file from text") and immediately distinguishes the create-with-conversion case from the plain-file case via convertTo. It does not, however, contrast itself against siblings like upload_file (binary content) or create_folder, so an agent still has to infer which creation tool applies when the source is not text.

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?

Gives conditional usage: use convertTo to import Markdown/HTML/CSV as a Google-native Doc/Sheet/Slides, omit it for a plain file, and omit content to make an empty Google file. That is clear context, but it names no alternative tool and gives no exclusions (e.g., when to prefer upload_file or update_file_content).

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