Skip to main content
Glama

google_drive_files_create

Creates a file. For more information, see Create and manage files. This method supports an /upload URI and accepts uploaded media with the following characteristics: - Maximum file size: 5,120 GB - Accepted Media MIME types: */* (Specify a valid MIME type, rather than the literal */* value. The literal */* is only used to indicate that any valid MIME type can be uploaded. For more information, see Google Workspace and Google Drive supported MIME types.) For more information on uploading files, see Upload file data. Apps creating shortcuts with the create method must specify the MIME type application/vnd.google-apps.shortcut. Apps should specify a file extension in the name property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like "name": "cat.jpg" in the metadata. Subsequent GET requests include the read-only fileExtension property populated with the extension originally specified in the name property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the name. In cases where the extension is missing, Drive attempts to determine the extension based on the file Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

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": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "google_drive_files_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a 5,120 GB upload ceiling, accepted MIME types, the requirement to use application/vnd.google-apps.shortcut for shortcuts, and how name extensions propagate to fileExtension. However, it says nothing about required permissions, parent-folder access, error conditions, or what happens if the parent ID is invalid, and the text cuts off mid-sentence ('based on the file Supply a concise reason...').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The useful opening sentence is followed by a long, largely copy-pasted API documentation block with redundant links and an entire MIME-type aside. The text is truncated mid-sentence and then appends unrelated Leash boilerplate about 'reason and context' at the end, which is jarring and unfocused. Signal-to-noise is poor for a tool whose core action is one sentence.

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?

This is a complex tool with a deeply nested schema and no output schema, so the description needs to do real work. It covers upload limits and naming conventions but leaves the create-vs-upload-vs-copy routing unresolved and gives no guidance on the many body fields that are output-only versus accepted on create. Complete enough to attempt a call, not complete enough to call confidently among siblings.

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 67%, so the baseline is roughly 3. The description does add meaning for the `name` field by instructing callers to include a file extension (e.g. 'cat.jpg') and explains that shortcuts must declare a specific MIME type. It adds nothing about the `reason`/`context` wrapper fields or the `query` option block, and it never clarifies which of the many body fields are actually settable on create versus output-only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The leading sentence 'Creates a file' states a clear verb and resource, so the basic action is unmistakable. But the catalog contains google_drive_create_file, google_drive_upload_create_file, and google_drive_files_copy, and nothing here distinguishes this tool from those near-identical siblings. Purpose is stated but not differentiated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, which is a real gap given siblings like google_drive_create_file and google_drive_upload_create_file that presumably overlap. The only implied context is buried in details about media upload and shortcut MIME types rather than framed as selection guidance.

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.