Skip to main content
Glama

trigger_create_time_driven

Schedule automated Google Apps Script functions to run at specific intervals: by minutes, hours, daily, or weekly. Set up time-based triggers for Google Workspace automation.

Instructions

Create a time-driven trigger via Apps Script execution. Generates and runs trigger setup code in the script.

Options:

  • every_minutes: 1, 5, 10, 15, 30

  • every_hours: 1, 2, 4, 6, 8, 12

  • day_of_week + hour: weekly trigger (MONDAY-SUNDAY, hour 0-23)

  • hour only: daily trigger at that hour

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_idYes
function_nameYes
every_minutesNo
every_hoursNo
day_of_weekNo
hourNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden but only partially discloses behavior. It mentions 'generates and runs trigger setup code' which implies execution, but doesn't cover important aspects like permissions needed, whether this is a write operation, error handling, or what happens if a trigger already exists. The behavioral context is incomplete for a tool that creates and executes code.

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 appropriately sized with clear structure: a purpose statement followed by bullet-point options. Each sentence earns its place, though the formatting as 'Options:' with bullet points could be more integrated. It's front-loaded with the main purpose.

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?

Given the tool's complexity (creating and executing trigger code), no annotations, and an output schema (which reduces need to describe returns), the description is moderately complete. It covers timing parameters well but lacks information about the script execution behavior, error conditions, and the relationship between required parameters (script_id, function_name) and the timing options.

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?

With 0% schema description coverage for 6 parameters, the description compensates well by explaining the semantics of timing parameters (every_minutes, every_hours, day_of_week, hour) and their relationships. It clarifies that day_of_week + hour creates weekly triggers, hour alone creates daily triggers, and provides valid value ranges. However, it doesn't explain script_id or function_name parameters.

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 clearly states the tool creates a time-driven trigger via Apps Script execution, specifying the action (create) and resource (time-driven trigger). It distinguishes from siblings like trigger_delete and trigger_list by focusing on creation, though it doesn't explicitly contrast with other trigger-related tools.

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 usage for creating time-driven triggers with specific timing options, but doesn't explicitly state when to use this tool versus alternatives like script_run or other trigger tools. It provides context about trigger types but lacks explicit guidance on prerequisites or exclusions.

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/LeooNic/gworkspace-mcp'

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