Skip to main content
Glama
Google Workspace MCP connector

Google Workspace MCP connector

by animesh-ex

script_create_project

Creates an Apps Script project with code files and optionally binds it to a Google Sheet, Doc, Slides, or Form; returns the script ID and editor link.

Instructions

Create an Apps Script project with code. Pass parentId (a Google Sheet/Doc/Slides/Form ID or URL) to make it a container-bound script that can use SpreadsheetApp.getActiveSpreadsheet(), custom functions and custom menus. Returns the scriptId and editor link.

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": {
      "title": "<title>",
      "files": "<files>"
    },
    "name": "script_create_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
titleYes
parentIdNoBind to this Sheet/Doc/Slides/Form (ID or URL)
timeZoneNoAsia/Kolkata
oauthScopesNoOptional explicit scopes for the manifest; usually leave empty so Apps Script detects them

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare this is a write operation (readOnlyHint=false) that is not destructive and reaches an open world, so safety is covered. The description adds meaningful context beyond that: the container-bound capability set and the exact return values (scriptId, editor link). It says nothing about quota limits, required OAuth scopes, or whether an existing project is overwritten, which are the remaining behavioral gaps.

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?

Two sentences, both front-loaded with the most decision-relevant information first: what it creates, then the parentId mode, then the return value. There is no filler or restatement of the name.

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 creation tool with no output schema, the description covers the primary action, the key optional parameter's effect, and the return values. It is only slightly short of complete because timeZone and oauthScopes get no mention anywhere except their bare schema fields.

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 description coverage is only 40%, so the description carries extra burden, and it partly meets it by explaining parentId accepts an ID or URL and changes the script's binding model, plus implying files carry code. It leaves title, timeZone (default Asia/Kolkata), oauthScopes, and the files array shape (name without extension, source, type enum) entirely to the schema.

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 ('Create an Apps Script project with code') and states the output ('Returns the scriptId and editor link'), so an agent knows exactly what the tool produces. It does not explicitly name a sibling like script_update_files or script_deploy, so differentiation relies on the name alone, keeping it short of a 5.

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 gives a concrete conditional: pass parentId to make a container-bound script usable with SpreadsheetApp.getActiveSpreadsheet(), custom functions and custom menus. That is real guidance on when to use a particular mode, but there is no explicit when-not guidance or comparison to sibling creation/update 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