Skip to main content
Glama

Update DM automation

update_automation
Destructive

Change an automation's post, link, keyword, messages or buttons; every omitted field is kept.

Same fields as create_automation. Live automations stay live and the next comment gets the change. To move it to another post (a new Reel), use provider_media_id: it keeps its history and stats; never delete it and create another. When messages change, the wording is the user's to choose: consider asking them, or offering drafts they can edit. Confirm it with them, then make every change in one call: an automation updates at most once every few seconds.

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": {
      "automation_id": "<automation_id>"
    },
    "name": "update_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOr a web address to link to
keywordNoNew keyword, the automation's name
page_idNoA published page to link to instead; or give `url`
url_nameNoWith `url`: a short name for it, shown in the user's automations
email_gateNoAsk for their email address before the link (after follow_gate)
follow_gateNoOnly send the link to followers of the account
link_messageNoNew DM with the link. Same language
public_replyNoNew public reply under the comment, or up to 12 to rotate, one per comment; empty stops it
automation_idYesAutomation id
extra_keywordsNoIts other keywords, as in create_automation; [] removes them
opening_messageNoNew first DM, in the user's language
reminder_messageNoAs in create_automation; empty stops reminders
link_button_labelNoThe link's button
provider_media_idNoMove it to this post (from list_instagram_posts)
extra_link_buttonsNoUp to 2 more buttons, as in create_automation. Replaces the current ones; [] removes them.
opening_button_labelNoIts button. Same language
email_request_messageNoWith email_gate: the DM asking for the email
follow_request_messageNoWith follow_gate: the DM asking to follow. Same language
follow_request_button_labelNoWith follow_gate: its button. Same language

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / public_reply / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 400,
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "maxLength": 400,
      -      "type": "string"
      -    },
      -    "maxItems": 3,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 400,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "maxLength": 400,
      +      "type": "string"
      +    },
      +    "maxItems": 12,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / public_reply / description
      Previous value: -"New public reply under the comment, or up to 3 to rotate, one per comment; empty stops it"New value: +"New public reply under the comment, or up to 12 to rotate, one per comment; empty stops it"
  2. Changed11 schema fields changed
    • changedInput schema / properties / email_request_message / description
      Previous value: -"Only used when email_gate is true: the DM asking for their email, which they type in reply. Say what they get and what the address is for. Same language."New value: +"With email_gate: the DM asking for the email"
    • addedInput schema / properties / extra_keywords
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 9,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Its other keywords, as in create_automation; [] removes them",
      +  "title": "Extra Keywords"
      +}
    • changedInput schema / properties / extra_link_buttons / description
      Previous value: -"Up to 2 more buttons on the link message, after the page's button: each opens another published page of the user's site (page_id) or any web address (url), e.g. a shop or a YouTube channel. Same language as the other messages. Replaces the current ones; [] removes them."New value: +"Up to 2 more buttons, as in create_automation. Replaces the current ones; [] removes them."
    • changedInput schema / properties / follow_request_button_label / description
      Previous value: -"Only used when follow_gate is true: the button the follower taps once they follow. Same language as the other messages."New value: +"With follow_gate: its button. Same language"
    • changedInput schema / properties / follow_request_message / description
      Previous value: -"Only used when follow_gate is true: the DM asking a non-follower to follow first. Same language as the other messages."New value: +"With follow_gate: the DM asking to follow. Same language"
    • changedInput schema / properties / keyword / description
      Previous value: -"The word or short phrase followers comment, e.g. GUIDE. Matched in any case, anywhere in the comment, as whole words: 'Recipes please 🙌' triggers RECIPES, 'myrecipes' does not. Accents and emoji must match exactly. Saved in lowercase. Replies count, the account's own comments never do, and the longest matching keyword on a post wins."New value: +"New keyword, the automation's name"
    • changedInput schema / properties / link_button_label / description
      Previous value: -"The button that opens the page or address. Same language."New value: +"The link's button"
    • changedInput schema / properties / link_message / description
      Previous value: -"The DM that carries the link, sent once the follower taps the first button. Same language and voice as opening_message."New value: +"New DM with the link. Same language"
    • changedInput schema / properties / opening_button_label / description
      Previous value: -"The first DM's button: tapping it sends link_message. Same language."New value: +"Its button. Same language"
    • changedInput schema / properties / opening_message / description
      Previous value: -"The first DM, sent right after the comment, with a button asking for the link. In the user's language and voice: the wording is theirs to choose."New value: +"New first DM, in the user's language"
    • addedInput schema / properties / reminder_message
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 400,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "As in create_automation; empty stops reminders",
      +  "title": "Reminder Message"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / public_reply / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 400,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 400,
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "maxLength": 400,
      +      "type": "string"
      +    },
      +    "maxItems": 3,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / public_reply / description
      Previous value: -"New public reply under the comment; an empty string stops it"New value: +"New public reply under the comment, or up to 3 to rotate, one per comment; empty stops it"
  4. Changed2 schema fields changed
    • addedInput schema / properties / email_gate
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Ask for their email address before the link (after follow_gate)",
      +  "title": "Email Gate"
      +}
    • addedInput schema / properties / email_request_message
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 400,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Only used when email_gate is true: the DM asking for their email, which they type in reply. Say what they get and what the address is for. Same language.",
      +  "title": "Email Request Message"
      +}
  5. Changed4 schema fields changed
    • addedInput schema / properties / page_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A published page to link to instead; or give `url`",
      +  "title": "Page Id"
      +}
    • addedInput schema / properties / provider_media_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Move it to this post (from list_instagram_posts)",
      +  "title": "Provider Media Id"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 200,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Or a web address to link to",
      +  "title": "Url"
      +}
    • addedInput schema / properties / url_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "With `url`: a short name for it, shown in the user's automations",
      +  "title": "Url Name"
      +}
  6. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the destructiveHint/openWorldHint annotations, it discloses real behavior: omitted fields are preserved, a live automation stays live and picks up the change on the next comment, moving posts retains history and stats, and there is a write throttle ('updates at most once every few seconds'). That is exactly the operational context an agent needs before mutating a live object.

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?

Three short paragraphs, front-loaded with the mutation semantics and followed by the riskiest operation (moving posts) then the messaging/confirmation workflow. The sentence about asking the user for wording is slightly editorial but still earns its place by preventing unwanted copy rewrites.

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

Completeness4/5

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

For a 19-parameter mutation tool with full schema coverage, an output schema, and annotations, the description covers the hard parts: partial-update semantics, live behavior, post migration, throttling, and user confirmation. Minor gaps remain around gate interactions and what a successful response confirms, though the output schema likely covers the latter.

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; the description earns above that by adding meaning not in the schema — provider_media_id preserves history and stats and must not be emulated via delete/recreate, and the whole 'omitted fields kept' rule defines how nulls/absences behave across all 19 parameters.

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 plus resource and enumerates exactly which fields can change (post, link, keyword, messages, buttons), then adds the partial-update rule ('every omitted field is kept'). That distinguishes it cleanly from create_automation (which it references) and from sibling lifecycle tools like activate/pause/delete_automation.

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?

It gives concrete routing guidance: use provider_media_id instead of deleting and recreating an automation, and confirm message wording with the user before calling. What is missing is explicit steering against pause_automation/activate_automation when the intent is purely state change rather than field editing.

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.