Skip to main content
Glama

Manage deployments

manage_deployments
Destructive

Create, list, inspect, update, or delete Google Apps Script deployments—published entry points like web apps and API executables—to control versions, roll back without changing URLs, or remove integrations.

Instructions

Manages the project's deployments — the published entry points (web app, API executable, add-on) that make code callable from outside the editor. action=create deploys version_number (omit it to deploy HEAD — updates live with every save; fine for testing, risky for production) with an optional description. action=list shows all deployments including the automatic @HEAD one (paginate with page_token from nextPageToken); get needs deployment_id and returns entryPoints[] — the web app URL (webApp.url) and the API-executable config run_function depends on. action=update repoints an existing deployment at another version_number and/or changes its description (this is how you ship or roll back without changing the URL; the current config is read first and merged, so omitted fields are preserved); delete removes it permanently and breaks its URL/integrations (the @HEAD deployment cannot be deleted). WHAT a deployment exposes (web app vs API executable, who can access) comes from the appsscript manifest at the deployed version — set it via update_project_content before creating the version. Requires the script.deployments scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesWhat to do with the deployments.
page_sizeNolist: deployments per page (1..50; API default 50).
script_idYesThe script project id — from the Apps Script editor URL (script.google.com/home/projects/<scriptId>/edit) or from create_project output. For standalone projects it doubles as the Drive file id.
page_tokenNolist: nextPageToken from the previous page.
descriptionNocreate/update: human-readable deployment description.
deployment_idNoget/update/delete: the deployment to target.
version_numberNocreate/update: the immutable version to deploy; omit on create to deploy HEAD.
Behavior5/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, but the description adds critical behavior beyond that: delete permanently breaks URLs/integrations, update merges config so omitted fields are preserved, HEAD deploys update live with every save, and the automatic @HEAD deployent cannot be deleted. There is no contradiction with annotations.

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 dense but every sentence earns its place: domain definition, action-by-action semantics, edge cases, prerequisite, and scope. It is front-loaded with purpose and avoids redundant restatements of the schema.

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?

For a five-action tool with no output schema, this description covers action selection, parameter semantics, destructive consequences, undeletable edge case, cross-tool prerequisite, and required OAuth scope. An agent can correctly invoke any action without needing to look up additional context.

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 already strong. The description adds action-param binding: version_number can be omitted to deploy HEAD, page_token comes from nextPageToken, get requires deployment_id, update uses version_number and/or description with merge semantics. It doesn't add much for script_id or page_size, but the schema adequately covers those.

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?

Description clearly defines deployments as published entry points (web app, API executable, add-on) and then maps every action—create, list, get, update, delete—to a specific behavior and target. It distinguishes this tool from sibling tools like create_version and run_function by scoping it to the deployment lifecycle.

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?

It gives explicit when-to-use guidance per action: create to deploy a version or HEAD, list to see all deployments with pagination, get to fetch entryPoints, update to ship/rollback while preserving URL, delete to permanently remove. It also states when-not-to: @HEAD cannot be deleted, and HEAD is risky for production. The prerequisite via update_project_content and required scope are also stated.

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/A1-x-Tech/mcp-google-apps-script'

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