Skip to main content
Glama

apply_actions

Destructive

Validate and apply a batch of flow-builder actions — the single write path for editing flows, blocks, variables, broadcasts, sequences, and folders. Call this directly; a separate validate_actions call beforehand is unnecessary. Broadcasts have no dedicated tool and are managed here: create_broadcast makes a DRAFT (it owns its flow via data.flowId — add the message blocks in the same batch, no separate create_flow), optionally with create_recurrence_schedule + attach_recurrence_to_broadcast for recurring — the attach makes it live at once (it sends at the next scheduled time) when the application has an active bot, so confirm the time and audience with the user first. For a one-time broadcast, a later update_broadcast with status SCHEDULED and scheduledAt is what schedules/sends it. The full recipe is in get_action_schema under broadcasts. DESTRUCTIVE: the batch may include delete_block, delete_link, delete_flow, delete_variable, delete_operation, and delete_broadcast. Confirm with the user before applying deletions. delete_operation also removes the operation's hidden graph flow and run history; delete_broadcast also removes the broadcast's delivery history and its content flow, and neither can be undone. IRREVERSIBLE SIDE EFFECTS: run_operation starts a real operation run, which may send broadcasts to real contacts and write application variables. It cannot be undone or recalled, is not idempotent, and is available only through this tool — confirm with the user before applying a batch containing one, and never blindly retry a timed-out call that did. Validation always runs first and an invalid batch applies nothing. If an action fails mid-batch, execution stops and the server tries to undo the steps already applied: reverted: true means nothing from the batch remains (fix the reported error and resend); reverted: false on a failure means part of it may still be applied (errorClass: "partial_write") — re-read state with get_flow_context before retrying rather than blindly resending the batch. errorClass is one of validation | rule | conflict | permission | partial_write | unknown. Not idempotent — resending a batch of create_* actions creates duplicates. Read get_action_schema for the action contract and get_design_guidelines before any structural edit. Returns { success, validated, reverted, errorClass (on failure), changes, errors, warnings, actionId } plus an idRemap mapping placeholder ids to the real ids that were created. Applying does NOT publish. Edits land on the draft graph and connected bots keep serving the previously published version until deploy_application runs — finish a round of edits, then deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowIdNoDefault flow id for actions in the batch that do not carry their own. Optional when every action targets an explicit flow.
actionsYesOrdered batch of at least one action, applied in array order. An invalid batch is rejected up front and applies nothing, but execution itself is NOT atomic: if an action fails mid-batch, execution stops there and the actions before it stay applied — re-read state before retrying.
applicationIdNoApplication (workspace) id. Optional: an application-scoped key (app_...) defaults to its own application, but a personal key (usr_...) has no default and omitting it fails with MCP_APPLICATION_REQUIRED. Call list_applications to get the id.
conversationIdNoOptional id used to group the resulting audit records under one editing session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_operation",
      -  "delete_broadcast",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document",
      -  "update_knowledge_base_text_document",
      -  "delete_knowledge_base_document",
      -  "import_website_into_knowledge_base",
      -  "update_custom_code_file",
      -  "edit_custom_code_file"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "update_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document",
      +  "update_knowledge_base_text_document",
      +  "delete_knowledge_base_document",
      +  "import_website_into_knowledge_base",
      +  "update_custom_code_file",
      +  "edit_custom_code_file"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_operation",
      -  "delete_broadcast",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document",
      -  "update_knowledge_base_text_document",
      -  "delete_knowledge_base_document",
      -  "import_website_into_knowledge_base",
      -  "update_custom_code_file"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document",
      +  "update_knowledge_base_text_document",
      +  "delete_knowledge_base_document",
      +  "import_website_into_knowledge_base",
      +  "update_custom_code_file",
      +  "edit_custom_code_file"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_operation",
      -  "delete_broadcast",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document",
      -  "update_knowledge_base_text_document",
      -  "delete_knowledge_base_document",
      -  "import_website_into_knowledge_base"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document",
      +  "update_knowledge_base_text_document",
      +  "delete_knowledge_base_document",
      +  "import_website_into_knowledge_base",
      +  "update_custom_code_file"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_operation",
      -  "delete_broadcast",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document",
      -  "import_website_into_knowledge_base"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document",
      +  "update_knowledge_base_text_document",
      +  "delete_knowledge_base_document",
      +  "import_website_into_knowledge_base"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_operation",
      -  "delete_broadcast",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document",
      +  "import_website_into_knowledge_base"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "create_operation",
      -  "run_operation",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_operation",
      +  "delete_broadcast",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document"
      +]
  7. Changed2 schema fields changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "update_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "create_operation",
      +  "run_operation",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document"
      +]
    • changedInput schema / properties / actions / items / properties / target / description
      Previous value: -"Id of the entity the action operates on (block, flow, variable, broadcast, ...). To reference an entity created earlier in the same batch, use its placeholder id — flow_1, block_1, var_1, broadcast_1, schedule_1, button_1, media_1. get_action_schema lists the full placeholder set."New value: +"Id of the entity the action operates on (block, flow, variable, broadcast, ...). To reference an entity created earlier in the same batch, use its placeholder id — flow_1, block_1, var_1, broadcast_1, schedule_1, button_1, media_1, operation_1. get_action_schema lists the full placeholder set."
  8. Changed8 schema fields changed
    • addedInput schema / properties / actions / description
      Added value: +"Ordered batch of at least one action, applied in array order. An invalid batch is rejected up front and applies nothing, but execution itself is NOT atomic: if an action fails mid-batch, execution stops there and the actions before it stay applied — re-read state before retrying."
    • addedInput schema / properties / actions / items / properties / action / description
      Added value: +"The action kind to perform. Call get_action_schema for the required fields of each kind."
    • addedInput schema / properties / actions / items / properties / data / description
      Added value: +"Action payload. Shape depends on `action` — get_action_schema returns the required and optional fields per kind."
    • addedInput schema / properties / actions / items / properties / target / description
      Added value: +"Id of the entity the action operates on (block, flow, variable, broadcast, ...). To reference an entity created earlier in the same batch, use its placeholder id — flow_1, block_1, var_1, broadcast_1, schedule_1, button_1, media_1. get_action_schema lists the full placeholder set."
    • addedInput schema / properties / actions / items / properties / validation / description
      Added value: +"Optional assertions to check before applying, as returned by get_action_schema."
    • addedInput schema / properties / applicationId / description
      Added value: +"Application (workspace) id. Optional: an application-scoped key (app_...) defaults to its own application, but a personal key (usr_...) has no default and omitting it fails with MCP_APPLICATION_REQUIRED. Call list_applications to get the id."
    • addedInput schema / properties / conversationId / description
      Added value: +"Optional id used to group the resulting audit records under one editing session."
    • addedInput schema / properties / flowId / description
      Added value: +"Default flow id for actions in the batch that do not carry their own. Optional when every action targets an explicit flow."
  9. Changed1 schema field changed
    • changedInput schema / properties / actions / items / properties / action / enum
      Previous value: -[
      -  "create_variable",
      -  "create_block",
      -  "update_block",
      -  "create_link",
      -  "create_flow",
      -  "update_flow",
      -  "create_broadcast",
      -  "create_recurrence_schedule",
      -  "attach_recurrence_to_broadcast",
      -  "create_sequence",
      -  "update_sequence",
      -  "create_folder",
      -  "move_flow_to_folder",
      -  "delete_block",
      -  "delete_link",
      -  "delete_flow",
      -  "delete_variable",
      -  "create_media_from_url",
      -  "create_knowledge_base",
      -  "create_knowledge_base_text_document"
      -]New value: +[
      +  "create_variable",
      +  "create_block",
      +  "update_block",
      +  "create_link",
      +  "create_flow",
      +  "update_flow",
      +  "create_broadcast",
      +  "create_recurrence_schedule",
      +  "attach_recurrence_to_broadcast",
      +  "update_broadcast",
      +  "create_sequence",
      +  "update_sequence",
      +  "create_folder",
      +  "move_flow_to_folder",
      +  "delete_block",
      +  "delete_link",
      +  "delete_flow",
      +  "delete_variable",
      +  "create_media_from_url",
      +  "create_knowledge_base",
      +  "create_knowledge_base_text_document"
      +]
  10. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, but the description goes far beyond: it enumerates the destructive action kinds, explains what delete_operation and delete_broadcast additionally remove (hidden graph flow, run history, delivery history), describes run_operation's real, unrecallable side effects, and documents the non-atomic mid-batch failure model with `reverted`/`errorClass: partial_write` semantics.

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?

It is long and dense, but the tool is exceptionally complex and the highest-value facts (single write path, no separate validate, DESTRUCTIVE warning, irreversibility, draft-not-published) are front-loaded. A few clauses on broadcast recipes could be trimmed or deferred to get_action_schema, but almost every sentence earns its place.

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 compensates by enumerating the return shape (success, validated, reverted, errorClass, changes, errors, warnings, actionId, idRemap) and clarifying the critical draft-vs-published boundary (deploy_application required to go live). Nothing an agent needs to call this correctly is missing.

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 parameters are already fully documented in the schema, including placeholder ids and the action enum. The description reinforces the placeholder-id/idRemap mechanic but adds no new parameter-level detail beyond what the schema carries, so the baseline 3 applies.

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+resource ('Validate and apply a batch of flow-builder actions') and immediately scopes it as 'the single write path for editing flows, blocks, variables, broadcasts, sequences, and folders.' This distinguishes it cleanly from the read-only siblings (get_action_schema, get_flow_context) and from validate_actions.

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?

Explicitly says 'Call this directly; a separate validate_actions call beforehand is unnecessary', names the sibling it replaces, and routes to get_action_schema and get_design_guidelines for prerequisites. It also gives concrete when-to-use recipes for broadcasts (create_broadcast draft vs. update_broadcast with status SCHEDULED).

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.