Skip to main content
Glama

ap_update_trigger

ap_update_trigger
DestructiveIdempotent

Set or update the trigger for a flow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authNoConnection `externalId` from `ap_list_connections`. Pass the plain id, not a template.
inputNoInput settings for the trigger (key-value pairs). Reference a prior step's output with {{stepName['output'].field}} (output is nested under ['output'], e.g. {{trigger['output'].body.email}}, {{send_email['output'].id}}). For a continue-on-failure step's error, use {{stepName['error'].message}}.
flowIdYesThe id of the flow
pieceNameYesThe piece name for the trigger (e.g. "@activepieces/piece-gmail"). Use ap_research_pieces to get valid values.
displayNameNoDisplay name for the trigger step
triggerNameYesThe trigger name within the piece (e.g. "new_email"). Use ap_research_pieces with includeTriggers=true to get valid values.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / auth / description
      Previous value: -"Connection `externalId` from `ap_list_connections`. The tool wraps it automatically as `{{connections['externalId']}}`."New value: +"Connection `externalId` from `ap_list_connections`. Pass the plain id, not a template."
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and idempotentHint=true, so the safety profile is covered. The description adds no further behavioral context, such as what happens to an existing trigger, whether auth is required, or how destructive replacement is handled.

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?

A single front-loaded sentence with no wasted words. It is structurally clean, though its brevity leaves obvious content gaps rather than being a model of concise completeness.

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

Completeness2/5

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

For a destructive mutation tool with six parameters and no output schema, the description provides almost no operational context. The schema and annotations cover parameters and safety, but the description omits usage, prerequisites, and behavioral effects expected for an update trigger operation.

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 100%, so the six parameters are fully documented in the schema. The description adds no parameter meaning, but the baseline is 3 when the schema carries this burden.

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?

States a specific verb ('Set or update') and resource ('trigger for a flow'), making the core action clear. However, it does not distinguish this tool from nearby siblings such as ap_update_step or ap_add_step beyond the word 'trigger'.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no prerequisites, and no alternatives. It does not explain how this differs from ap_update_step, ap_add_step, or ap_search_triggers, leaving routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources