Skip to main content
Glama

Turn a trigger on or off

trigger_update
DestructiveIdempotent

Turn a trigger on (on true) or off (on false), by its id. Off, it starts nothing, and its starts still waiting are dropped (dropReason trigger_off); turning it on again does not bring them back. A schedule turned on starts from now: no due time while it was off starts anything. Turning it to what it is changes nothing and writes nothing. A trigger's when and its definition never change, and nothing deletes one. Only the workspace's owner or a member of the team that owns it turns one on or off (directWork): a guest of any role is refused GUEST_FORBIDDEN, and a retry changes nothing. A trigger you cannot read is UNAVAILABLE. Returns the trigger whole, as trigger_create does.

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": {
      "id": "<id>",
      "on": "<on>"
    },
    "name": "trigger_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe trigger, by its id (trigger_create and trigger_list return it).
onYestrue turns it on; false turns it off and drops its starts still waiting. Turning it to what it is changes nothing.
whyNoRequired for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters.

Output Schema

NameRequiredDescriptionDefault
triggerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / why / description
      Previous value: -"Required for workspace items: one sentence on what the person is trying to accomplish, in their terms, not a description of this edit. Every workspace write takes one; sessions and summaries record themselves from it. At most 300 characters."New value: +"Required for workspace items: one sentence on the goal this change serves, not a description of this edit. Every edit to workspace files, rows, folders and settings takes one (task operations need none); sessions and summaries record themselves from it. At most 300 characters."
  2. Changed1 schema field changed
    • addedOutput schema / properties / trigger / properties / addedBy / properties / tokenrip
      Added value: +{
      +  "const": true,
      +  "description": "Present only when true: this is Tokenrip itself, doing a task definition's routine. It is a member of no workspace and never you.",
      +  "type": "boolean"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false and closed-world, and the description usefully adds what is destroyed (pending starts, dropReason trigger_off), that they are not restored on re-enable, that a schedule resumed from off skips missed due times, and that a no-op writes nothing. It also discloses authorization (owner or owning-team member, guests get GUEST_FORBIDDEN, retries change nothing) and the UNAVAILABLE case for unreadable triggers. With the annotation bar already met, this is solid added context but not the richest possible (no rate limits or concurrency notes).

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?

Front-loaded with the action and parameter mapping in the first clause, then layered edge cases in short declarative sentences. Nearly every sentence carries distinct information (drop semantics, no catch-up on resume, idempotent no-op, auth, error codes, return shape), with only minor redundancy against the schema text.

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?

Covers the behavior an agent needs for a mutating, destructive, idempotent tool: what is destroyed, what is not restored, authorization and refusal codes, the unreadable case, and the no-op guarantee. Return values are covered by the existing output schema, and the one-line 'returns the trigger whole' reference is sufficient.

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 baseline is 3; the description still adds meaning by spelling out the two boolean states and, beyond the schema, that a redundant call 'changes nothing and writes nothing'. The id/why parameters get no extra treatment in prose, which is acceptable given the schema already documents them thoroughly.

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?

States a specific verb and resource ('Turn a trigger on or off') plus the exact parameter mapping ('on true' / 'on false') and the key ('by its id'). An agent can distinguish this from trigger_create/trigger_get/trigger_list without opening a schema.

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?

Gives clear context on when the operation applies and what it will not do (it never changes a trigger's 'when' or definition, never deletes one), which implicitly steers definition edits elsewhere. It stops short of naming an explicit alternative tool or stating a when-not-to-use condition, so it is strong but not fully prescriptive.

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.