Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

script_update_files

Add or replace Apps Script project files: use merge mode to keep existing files and add new ones, or replace mode to reset the project to specified files plus manifest.

Instructions

Add or replace files in an Apps Script project. Files with the same name are replaced; others are kept (mode 'merge'), or the project is reset to exactly these files plus the manifest (mode 'replace'). Use deleteFiles to remove files.

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": {
      "scriptId": "<scriptId>"
    },
    "name": "script_update_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNomerge
filesNo
manifestNoFull appsscript.json to replace the manifest (e.g. to add oauthScopes or webapp settings)
scriptIdYes
deleteFilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.7/5.0
Behavior2/5

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

The description usefully discloses behavior beyond the annotations: name-collision replacement, manifest overwrite, and that 'replace' discards all files not listed. However, that last disclosure conflicts with the supplied destructiveHint=false, since resetting a project to exactly the given files deletes existing content; the only mitigating fact is that the description itself warns about it.

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?

Three short sentences, no filler, with the core action front-loaded and mode semantics following immediately. Each sentence adds a distinct fact (action, collision behavior with modes, deletion path).

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 five-parameter mutation tool with no output schema and sparse schema descriptions, the description covers the risky and non-obvious parts (modes, name collisions, manifest reset, deleteFiles). Only minor gaps remain, such as required permission scope, file type handling, and error behavior.

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 only 20% schema description coverage, the description carries most of the burden and does so for the important parameters: it defines 'merge' vs 'replace', the meaning of the files array (name-based replacement) and manifest overwrite, and identifies deleteFiles as the removal path. It leaves scriptId and the SERVER_JS/HTML type enum unexplained.

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 gives a specific verb and resource ('Add or replace files in an Apps Script project') and immediately qualifies the semantics of replacement by name. It does not explicitly route the agent away from siblings such as script_create_project or script_get_content, so it is clear but not sibling-differentiating.

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 spells out the two modes conditionally: same-name files are replaced and others kept under 'merge', while 'replace' resets the project to exactly the supplied files plus manifest. That is real guidance for choosing between the enum values, but there is no statement of when to prefer this tool over other project-mutation tools.

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

Deploy Server

Other Tools