Skip to main content
Glama

Create comment DM rule

create_comment_dm_rule
Destructive

Creates an Instagram comment DM rule: anyone who comments a keyword gets the message as one private DM, once per person per rule. It starts sending to real people as soon as it's on, so confirm the keywords and text with the user first, or set enabled=false. The DM lands in the person's Message requests. Needs the Team plan or the Creator add-on.

Input Schema

NameRequiredDescriptionDefault
enabledNoDefaults to true.
messageYesThe DM text, up to 1,000 bytes. Include a line saying it's automated, such as 'This is an automated message.' Some places, like California and Germany, require that. The result's disclosure_missing is true when there's no such line.
post_idNoInstagram post id from list_comment_dm_posts to watch one post. Null or left out on create watches every post.
keywordsYesUp to 20 words or phrases people comment to get the DM. Whole words, any case: 'link' matches 'Link please' but not 'linked'. Emoji work too.
workspace_idYesWorkspace with the Instagram connection. Required. Get one from list_workspaces.
idempotency_keyNoOptional client-generated key (e.g., a UUID) to make retries safe. Identical calls with the same key within 10 minutes return the original result instead of running the write twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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, and the description earns credit beyond them by explaining why: it starts messaging real people immediately, is limited to once per person per rule, and messages land in Message requests where they may go unseen. The safety confirmation requirement and plan gating are exactly the kind of context annotations cannot carry.

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 sentences, front-loaded with the action and mechanism, then the risk warning and mitigation, then the plan requirement. Nothing is repeated from the schema and every sentence changes how the agent would behave.

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?

Covers purpose, risk, preconditions, plan gating, and delivery channel for a mutation tool with no output schema. The only minor gap is that it never says what is returned on success (a rule record, including the disclosure_missing field referenced in the schema), which matters slightly given there is no output schema.

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 coverage is 100% and the parameter descriptions are already thorough (keyword whole-word matching, 1,000-byte DM limit, idempotency window, post_id null meaning all posts). The description only indirectly touches parameters via 'confirm the keywords and text' and 'enabled=false', so it does not add meaningful semantics beyond the schema. 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 (Creates) and resource (an Instagram comment DM rule) and then explains the mechanism: anyone commenting a keyword receives the message as one private DM, once per person per rule. That mechanism-level detail makes it unmistakable against siblings like update_comment_dm_rule or reply_to_comment without touching either 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?

Gives clear preconditions: confirm keywords and text with the user first, or set enabled=false, and the plan requirement (Team plan or Creator add-on). It stops short of naming the sibling that modifies an existing rule (update_comment_dm_rule) or the listing tool, but the when-to-use context is strong.

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.