Skip to main content
Glama

Create DM automation

create_automation
Destructive

DM a link to followers who comment keyword on the post: a published page (page_id) or a web address the user gives (url).

These DMs speak in the user's name. Unless they already said what to write or asked you to handle it, consider asking how each message should read: their own words, or drafts you propose in their tone. Confirm the post, keyword and messages with the user before calling this.

The follower gets opening_message and its button, then link_message with the link's button and any extra_link_buttons; with follow_gate, non-followers get follow_request_message instead of the link. Write every message and button label (20 characters) in the user's language: the defaults are English. Remind the user to put the keyword in the caption.

If activation fails, the automation stays a draft and the result says why: fix that, then activate_automation; never create a second one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoOr the web address the DM links to, instead of a page
keywordYesThe 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.
page_idNoThe published page the DM links to; or give `url` instead
activateNoTurn it on right away
url_nameNoWith `url`: a short name for it, shown in the user's automations
account_idYesFrom get_account
follow_gateNoOnly send the link to followers of the account
link_messageNoThe DM that carries the link, sent once the follower taps the first button. Same language and voice as opening_message.Here it is!
public_replyNoOptional public reply under the comment, e.g. 'Sent you a DM!'
opening_messageNoThe 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.Thanks for your comment! Want the link?
link_button_labelNoThe button that opens the page or address. Same language.Open the page
provider_media_idNoThe post (from list_instagram_posts); omit to use the next post
extra_link_buttonsNoUp 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.
opening_button_labelNoThe first DM's button: tapping it sends link_message. Same language.Send me the link
follow_request_messageNoOnly used when follow_gate is true: the DM asking a non-follower to follow first. Same language as the other messages.Follow me first, then tap the button below and I'll send it.
follow_request_button_labelNoOnly used when follow_gate is true: the button the follower taps once they follow. Same language as the other messages.I'm following

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description earns its keep by explaining why: the DMs 'speak in the user's name', so consent is required, and activation may fail leaving a draft with a stated reason. It also documents the exact message/button sequence and follow-gate branching, which the annotations 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short paragraphs, front-loaded with the trigger and target, then consent, then flow, then failure recovery. Dense but each paragraph adds a distinct concern; the repeated language reminders echo schema text rather than adding new information.

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 16-parameter tool with an output schema, the description covers the trigger, the user-consent workflow, the message flow, and the failure path. It leaves out operational details such as account/plan prerequisites or whether an automation is scoped per-post, but nothing required to call 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. The description goes beyond the field-level docs by tying parameters into a temporal flow (opening_message + its button, then link_message + link button + extra_link_buttons, with follow_request_message substituted when follow_gate is true) and by stating the 20-character button-label constraint and language rule.

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 opening sentence gives a specific verb+resource+trigger: 'DM a link to followers who comment `keyword` on the post', with the target being either a `page_id` or a `url`. An agent can distinguish this from siblings like update_automation, activate_automation, and list_automations without opening any 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?

It gives explicit pre-call guidance ('Confirm the post, keyword and messages with the user before calling this') and routes to a sibling on failure ('fix that, then activate_automation; never create a second one'). It stops short of naming update_automation as the alternative for an existing automation, so the when-not-to-create case is only implied by 'never create a second one'.

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.