Skip to main content
Glama
c0webster

Hardened Google Workspace MCP

by c0webster

update_drive_file

Modify Google Drive file properties including name, description, folder location, permissions, and custom metadata to organize and manage documents.

Instructions

Updates metadata and properties of a Google Drive file.

Args: user_google_email (str): The user's Google email address. Required. file_id (str): The ID of the file to update. Required. name (Optional[str]): New name for the file. description (Optional[str]): New description for the file. mime_type (Optional[str]): New MIME type (note: changing type may require content upload). add_parents (Optional[str]): Comma-separated folder IDs to add as parents. remove_parents (Optional[str]): Comma-separated folder IDs to remove from parents. starred (Optional[bool]): Whether to star/unstar the file. trashed (Optional[bool]): Whether to move file to/from trash. writers_can_share (Optional[bool]): Whether editors can share the file. copy_requires_writer_permission (Optional[bool]): Whether copying requires writer permission. properties (Optional[dict]): Custom key-value properties for the file.

Returns: str: Confirmation message with details of the updates applied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_google_emailYes
file_idYes
nameNo
descriptionNo
mime_typeNo
add_parentsNo
remove_parentsNo
starredNo
trashedNo
writers_can_shareNo
copy_requires_writer_permissionNo
propertiesNo

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 for behavioral disclosure. While it mentions that 'changing type may require content upload' for mime_type, it doesn't cover important behavioral aspects like authentication requirements, permission levels needed, whether updates are reversible, rate limits, or what happens when multiple parameters are modified simultaneously. For a mutation tool with 12 parameters, this is insufficient.

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?

The description is well-structured with clear sections (purpose, Args, Returns) and efficiently organized. The Args section is comprehensive but necessary given the parameter count. The opening sentence clearly states the purpose, though the detailed parameter explanations are appropriately placed after the high-level description.

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?

For a mutation tool with 12 parameters and no annotations, the description does well on parameter documentation and includes a Returns section. However, it lacks important context about behavioral aspects (permissions, side effects, error conditions) and doesn't provide usage guidance relative to sibling tools. The presence of an output schema helps, but more behavioral context would be needed for full completeness.

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?

With 0% schema description coverage, the description provides excellent parameter semantics by explaining each of the 12 parameters in the Args section. It adds meaningful context beyond the schema, such as the note about mime_type changes potentially requiring content upload, and clarifies that add_parents/remove_parents accept comma-separated folder IDs. This fully compensates for the lack of schema descriptions.

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 tool's purpose as 'Updates metadata and properties of a Google Drive file,' which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like 'update_doc_headers_footers' or 'modify_sheet_values,' which also perform updates on different Google Workspace resources.

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?

The description provides no guidance on when to use this tool versus alternatives. With many sibling tools performing various update operations (e.g., update_doc_headers_footers, modify_sheet_values, modify_event), there's no indication of when this specific Drive file update tool is appropriate versus other update tools in the server.

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/c0webster/hardened-google-workspace-mcp'

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