Skip to main content
Glama
tom275275

Google Workspace MCP Server

by tom275275

run_script_function

Execute a function in a deployed Google Apps Script by providing script ID, function name, and optional parameters. Supports dev mode to run latest code, returns execution result or error.

Instructions

Executes a function in a deployed script.

Args: service: Injected Google API service client user_google_email: User's email address script_id: The script project ID function_name: Name of function to execute parameters: Optional list of parameters to pass dev_mode: Whether to run latest code vs deployed version

Returns: str: Formatted string with execution result or error

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dev_modeNo
script_idYes
parametersNo
function_nameYes
user_google_emailYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.14.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden. It does disclose the return format ('Formatted string with execution result or error') and dev_mode behavior, but it does not mention that executing arbitrary script functions can have side effects, require authorization, or affect external data.

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 description is compact and front-loaded with a clear one-line purpose, followed by a structured Args and Returns list. It loses a point for including 'service' as an arg even though it is not part of the input schema, which adds minor noise.

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

Completeness3/5

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

All parameters and the return format are covered, but there is no guidance on side effects, required permissions, or when not to use this tool. Given that running arbitrary script code can be a mutating operation with no annotations, the description is not fully complete for safe tool selection.

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 description coverage is 0%, so the description compensates by explaining every schema parameter in plain language. It clarifies dev_mode as 'run latest code vs deployed version,' marks parameters as optional, and identifies script_id as the project ID. The extra 'service' arg is marked injected, which reduces potential confusion.

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 description opens with 'Executes a function in a deployed script,' which names a specific verb and resource. It is clearly distinct from script management siblings such as create_script_project, update_script_content, and manage_deployment, since none of those invoke an arbitrary function.

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?

The description implies the tool is for running an Apps Script function, especially through the dev_mode note about latest vs deployed version. However, it does not explicitly state when to prefer this tool over script-related alternatives or mention any exclusions.

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