Skip to main content
Glama
Google Workspace MCP Server - Control Gmail, Calendar, Docs, Sheets, Slides, Chat, Forms & Drive

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

Manage Script Content

manage_script_content
Destructive

Create or update Apps Script project source files, overlaying changes by file name and type or replacing the full file set and permanently deleting omitted files.

Instructions

Update the source files of an Apps Script project.

Actions: - "update": Create or update files. By default (merge=True) the supplied files are overlaid onto the project by (name, type), leaving other files untouched. Set merge=False to replace the full project file set; any existing file omitted from files is permanently deleted.

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": {
      "user_google_email": "<user_google_email>",
      "action": "<action>",
      "script_id": "<script_id>"
    },
    "name": "manage_script_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoFile objects with name, type, and source to create or update (required for update).
mergeNoWhen True (default), overlay `files` onto the current project. When False, replace the full project file set (update only).
actionYes"update".
script_idYesThe script project ID.
user_google_emailYesUser's email address

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.28.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety envelope is partly covered. The description goes beyond that by spelling out exactly what is destroyed under merge=False — 'any existing file omitted from `files` is permanently deleted' — which is the precise consequence an agent needs before calling a replace operation.

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 purpose sentence is front-loaded and the destructive branch is presented as a clearly delineated action bullet. There is minor formatting noise (stray quotation marks, an action list containing only one item), but no wasted content.

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?

With an output schema present and annotations covering the safety profile, the description only needs to carry mutation semantics — which it does thoroughly for the merge=False case. Only the absence of sibling routing guidance keeps it from being fully complete.

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 100%, so the baseline is 3, but the description adds the overlay matching key '(name, type)' that the schema does not state, which meaningfully clarifies how files are merged. The default merge=True behavior is also restated in prose, reinforcing the schema's default.

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 opens with a specific verb and resource: 'Update the source files of an Apps Script project,' which separates it from metadata-oriented siblings like manage_script_project. It could be sharper, but an agent can tell this tool mutates file contents rather than project settings.

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

Usage Guidelines3/5

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

Usage is implied through the single 'update' action and the merge semantics are explained, but the description never states when to reach for this tool versus manage_script_project or manage_script_version, nor does it call out prerequisites such as needing an existing script_id. Adequate but with clear gaps.

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