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 Trigger

manage_script_trigger
Destructive

List or delete a script project's installable triggers, including matching by trigger ID or handler function, to inspect and clean up scheduled automation.

Instructions

List or delete the current user's installable triggers on a script project.

The Apps Script REST API has no triggers resource, so in dev_mode both actions provision (or refresh) a small helper file and run it via the Execution API - the only way to inspect or change trigger state without opening the editor. Neither action is read-only: the helper file may be written into the project on first use. To create a trigger, use generate_trigger_code to produce the setup code, add it with manage_script_content, then run it with run_script_function.

Actions: - "list": List the current user's triggers configured on the project. - "delete": Delete triggers matching every supplied selector. trigger_id removes one trigger; handler_function alone removes EVERY trigger calling that function; both together remove the trigger only if its handler also matches. At least one is required; run "list" first to find a trigger's unique ID.

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_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesOne of "list", "delete".
dev_modeNoRun against the latest saved code (default; project owner only) vs. the deployed version. False requires the helper to already exist in the deployed version.
script_idYesThe script project ID.
trigger_idNoUnique ID of a specific trigger to delete (delete only).
deployment_idNoOptional API Executable deployment ID. When omitted, the highest versioned API Executable deployment is used.
handler_functionNoDelete all triggers calling this function name (delete only).
user_google_emailYesUser's email address

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.28.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is largely covered by structured data. The description adds genuinely new context beyond that: the absence of a triggers REST resource, the helper-file provisioning step, that the helper may be written into the project on first use, and the dev_mode ownership/deployed-version constraint. That is solid added value, though it stops short of describing failure modes or rate/scope limits of the Execution API round-trip.

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 definition is front-loaded with the purpose and the non-obvious API workaround, then a scannable Actions list, which is the right order for an agent. It is slightly longer than needed — the dev_mode/helper explanation is dense prose that could be trimmed — but no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description does not need to explain return values, and annotations already carry the safety profile. Given the seven parameters and the unusual helper-file mechanism, the definition still supplies the API workaround, the destructive-selector semantics, and the create-path alternative — everything needed to call it correctly.

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 schema already defines all seven parameters and the baseline is 3. The description goes beyond it by spelling out the boolean-AND selector logic when `trigger_id` and `handler_function` are combined, the destructive breadth of `handler_function` alone ('removes EVERY trigger calling that function'), and the at-least-one-required rule — meaning the description meaningfully sharpens the most dangerous parameter interaction.

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 opening sentence names a specific verb set and resource ('List or delete the current user's installable triggers on a script project') and the Actions block enumerates both supported values with their effects. It also distinguishes itself from the create path by naming `generate_trigger_code`, so an agent can separate this tool from its siblings without inspecting schemas.

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

Usage Guidelines5/5

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

The description explicitly routes creation elsewhere with a three-step alternative path (`generate_trigger_code` → `manage_script_content` → `run_script_function`), which is exactly the when-not guidance an agent needs. It also prescribes a sequencing rule ('run "list" first to find a trigger's unique ID'), leaving nothing to inference about ordering.

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