Skip to main content
Glama

Turn automation on or off

switch_automation
Destructive

Turn one automation on or off, as the On/Off switch of the automation in Taskade does. Get its id from list_automations. Without confirm: true nothing changes: the result says how the automation starts, how often, its steps, and what it spends or sends (AI steps spend credits, a step can send email or act in a connected app). Show that to the user, and call again with confirm: true only after the user says yes. To turn an automation on, it must be complete: if a part is missing, the result names it as a step in Taskade (for example "Connect your Gmail account in Taskade"). Turning on starts the automation on its own start (a schedule, an app event, a webhook or a form). Turning off stops its trigger and the runs that its own start began. A run started on request (run_flow, a form or an app) can finish its remaining steps. To turn it on, pass the automation.updatedAt of the preview with confirm: true. If the automation changed after that preview, the call is refused as stale: preview again. Turning off needs no updatedAt. Every change returns before and after, and an undo call (the same tool with the other turn). Turning off deletes a shared form link, and turning on does not bring it back.

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": {
      "spaceId": "<spaceId>",
      "flowId": "<flowId>",
      "turn": "<turn>"
    },
    "name": "switch_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
turnYes"on" or "off"
flowIdYesAutomation ID from `list_automations`
confirmNotrue makes the change. Omit it (or false) to read what the change does, with no change.
spaceIdYesSpace ID
updatedAtNoThe `automation.updatedAt` of the preview. Required with turn "on" and confirm: true. Ignored with turn "off".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Although annotations already flag `destructiveHint: true`, the description adds substantial context they cannot convey: turning off deletes a shared form link that turning on will not restore, turning off stops the trigger and its own started runs but not on-request runs, and every change returns `before`/`after` with an `undo` path. The stale-`updatedAt` refusal on turn-on is a behavioral rule found nowhere in the structured fields.

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 preview-then-confirm rule is front-loaded and the destructive consequence is placed last for emphasis, which is good structure. It is long for a toggle tool, and clauses like the parenthetical on credit spend and email/app side effects could be tightened, but nearly every sentence carries behavior an agent needs.

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?

With no output schema, the description carries the return-value burden itself and does: the preview reports start type, frequency, steps, and cost/send side effects, and mutations return `before` and `after`. Combined with the undo path and stale-guard, nothing essential for calling it correctly is missing.

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 3, but the description adds real semantics beyond the schema: `updatedAt` is the preview's `automation.updatedAt`, required with turn 'on' plus confirm and ignored with 'off', and `flowId` comes from `list_automations`. The confirm-as-preview gate is explained operationally rather than just restated.

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 a specific verb and resource ('Turn one automation on or off') and anchors it to a concrete mental model ('the On/Off switch of the automation in Taskade'). It also names the sourcing sibling (`list_automations`) and distinguishes the on-request path (`run_flow`), so an agent can tell this apart from adjacent automation tools.

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 prescribes an explicit workflow: first call without `confirm` to preview, show the result to the user, and only call again with `confirm: true` after the user approves. It also states the prerequisite for turning on (the automation must be complete) and the stale-preview exclusion case, leaving little 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.