Skip to main content
Glama

Update Comment to DM rule

update_comment_dm_rule
Destructive

Change a Comment to DM rule: keywords, match, DM text, public replies, the post it watches (mediaId, or null for every post), or pause/resume it with active. Only the fields given change. Get the rule id from list_comment_dm_rules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
matchNocontains (default) = the keyword appears as a whole word or phrase in the comment; exact = the comment is just the keyword
activeNofalse pauses the rule
dmTextNoThe DM sent to the person who commented (up to 1000 characters, links allowed). {username} becomes their @handle on Instagram, their first name on Facebook
ruleIdYesRule id from list_comment_dm_rules
mediaIdNoInstagram or Facebook post id to watch, or null for every post of the account
keywordsNoWords or phrases that trigger the DM (up to 20). Case and accents are ignored. Empty or omitted = every comment triggers it
workspaceNoWorkspace slug (optional)
publicRepliesNoOptional public replies posted under the comment once the DM is sent, one picked at random (up to 5), e.g. "Sent! Check your DMs". {username} becomes their @handle on Instagram, their first name on Facebook

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=true. The description adds useful context beyond them: partial-update semantics ('Only the fields given change') and pause/resume via active. It does not detail destructive side effects, but the partial-update note meaningfully refines mutation behavior.

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?

Two dense sentences front-load the field list and partial-update rule, with the id-source instruction at the end. Every sentence earns its place and nothing is redundant.

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-param mutation tool with full schema coverage and no output schema, the description supplies essential context: mutable fields, partial-update behavior, and id sourcing. Slightly more could be said about error conditions or workspace placement, but nothing critical 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 every parameter is already fully documented with enums, null semantics, and limits. The description largely restates the same fields without adding new meaning, so the baseline of 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 ('Change') and resource ('Comment to DM rule'), enumerates the mutable fields, and clarifies partial-update behavior. It routes the agent to list_comment_dm_rules for the id, distinguishing it from create/delete siblings.

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 a clear prerequisite (get the rule id from list_comment_dm_rules) and states that only supplied fields change. It does not explicitly name when not to use this tool or compare with update_dm_automation, but the context is unambiguous.

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.