Skip to main content
Glama
taylorwilsdon

Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

Update Script Content

update_script_content
Destructive

Update or create files in a Google Apps Script project. Optionally merge files into the existing project or replace the entire project, deleting omitted files.

Instructions

Update or create files in a script project.

By default this merges the supplied files into the existing project by file name, leaving other files untouched. Set merge=False to replace the entire project: any existing file omitted from files is permanently deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesFile objects with name, type, and source to create or update
mergeNoWhen True (default), overlay these files onto the current project. When False, replace the full project file set; omitted files are deleted.
script_idYesThe script project ID
user_google_emailYesUser's email address

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations flag destructiveHint=true; the description adds crucial context by stating that with merge=False, any existing file omitted from `files` is permanently deleted. It also clarifies that default is non-destructive (leaving other files untouched), which is beyond annotation info.

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 sentences, front-loaded with the core purpose, and efficiently communicates the key merge/replace distinction without redundancy.

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 mutation tool with full schema coverage, annotations, and an output schema, the description sufficiently covers the essential behavior (merge vs replace and deletion). It lacks only explicit prerequisites or alternative tool references, but these are not necessary given the context.

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 covers 100% of parameters with detailed descriptions, including the merge behavior identical to the description. The description adds no extra parameter semantics beyond the schema, so baseline 3 is appropriate.

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?

The description clearly states 'Update or create files in a script project' with a specific verb and resource, and distinguishes from sibling tools like create_script_project and delete_script_project by focusing on file-level updates within an existing project. The merge behavior further clarifies scope.

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?

It explains the default merge behavior and the alternative merge=False replacement, giving clear context for when to use this tool. However, it does not explicitly exclude alternatives like creating a new project with create_script_project, so it lacks explicit when-not guidance.

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/taylorwilsdon/google_workspace_mcp'

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