Skip to main content
Glama

Update DM automation

update_dm_automation
Destructive

Change a DM automation: name, trigger, steps (the whole list, as returned by list_dm_automations; keep the step ids of steps you don't change so people in the flow carry on), reentry, or pause/resume it with active. Only the fields given change. Get the id from list_dm_automations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoA name for the automation (default: from the trigger)
stepsNoSteps run in order; each is one of: - {"type":"message","text":"...","button":{"title":"Get the guide","url":"https://..."}}: text up to 1000 bytes (640 characters with a button). {username} becomes their @handle on Instagram (first name on Messenger), {first_name} their first name. Optional link button (title up to 20 characters); clicks are counted. - {"type":"message","text":"Which one?","choices":[{"label":"Pricing","steps":[...]},{"label":"Demo","steps":[...]}],"otherwise":{"afterMinutes":60,"steps":[...]}}: up to 13 quick-reply choices (labels up to 20 characters), each with its own steps; otherwise = a typed answer that isn't a choice, or no answer within afterMinutes. A message has a button or choices, not both. - {"type":"wait","minutes":30}: up to 1380 (23 h). - {"type":"condition","check":"replied|keyword|clicked|follows","keywords":["yes"],"withinMinutes":60,"yes":[...],"no":[...]}: waits up to withinMinutes for a reply, a reply containing a keyword, or a click on an earlier link button; follows (Instagram only) checks at once whether they follow the account ("follow to get the link"). - {"type":"handoff","note":"Wants a quote"}: flags the conversation in the Breakreach Inbox for a person on the team and ends the flow. A message with choices, a condition and a handoff must be the last step of their list: put what comes next inside their branches. Up to 40 steps, branches 6 levels deep. Meta only allows replies within 24 hours of the person's last message: a message due later is not sent and the run ends.
activeNofalse pauses it (people in the flow stop)
reentryNoonce (default) = a person goes through it once; always = every time they trigger it, at most once per cooldownHours
triggerNoWhat starts the automation. When several match a DM: ref, story, exact keyword, contains, then any_message; the oldest wins a tie
workspaceNoWorkspace slug (optional)
automationIdYesAutomation id from list_dm_automations
cooldownHoursNoWith reentry always: hours before the same person can start it again (default 24)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With annotations already declaring destructiveHint=true, the description explains what actually gets destroyed: steps is a full replacement of the whole list, and dropping step ids of unchanged steps breaks people currently in the flow. That in-flight-run consequence is exactly the kind of context the annotation hints cannot convey.

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?

Three compact sentences, front-loaded with purpose and mutation semantics, then the id-source and the step-id caveat. Nothing is filler given the 8-parameter nested schema this sits above.

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 an 8-parameter, nested-object mutation with no output schema, the description covers prerequisites, partial-update behavior, and the riskiest nested field. It is only slightly short in not hinting at what the call returns or any permission constraints.

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 description coverage is 100%, so the 3 baseline applies, but the description still adds operational meaning beyond the schema: automationId is sourced from list_dm_automations, steps must reuse existing ids, and unspecified fields are left untouched. It does not add syntax detail for active/reentry beyond the schema, hence 4.

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 (Change) and resource (DM automation) and enumerates the mutable fields (name, trigger, steps, reentry, active), which makes it clearly distinct from create_dm_automation and delete_dm_automation. It only references list_dm_automations as an id source rather than explicitly contrasting the siblings, so a 4 rather than a 5.

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?

"Get the id from list_dm_automations" and "the whole list, as returned by list_dm_automations" give a concrete prerequisite workflow that presupposes a prior list call, and "Only the fields given change" frames this as a partial update. There is no explicit when-not-to-use guidance or exclusion vs create_dm_automation, so it stops short of 5.

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.