Skip to main content
Glama
commentkeyword

commentkeyword-mcp

Official

Update a keyword automation

update_keyword
Idempotent

Modify an existing Instagram comment-to-DM keyword automation by changing only selected fields, such as keyword, target posts, reply variants, active status, or AI agent.

Instructions

Change a keyword automation. Only the fields you pass change. Passing target re-targets it (e.g. next_post to wait for the next upload again). dmMessages and commentReplies replace all existing variants. Set isActive false to pause it.

Input Schema

NameRequiredDescriptionDefault
idYesThe keyword publicId.
targetNoWhich posts trigger the DM. next_post: the next post or reel published on the connected Instagram account (best for a video that is not live yet). all_posts: every post, current and future. specific_posts: only the Instagram media IDs in mediaIds.
keywordNoThe word people comment, e.g. "GUIDE". Matching is case-insensitive. Prefer one distinctive word.
isActiveNoCreate it active (default) or paused. Only active keywords count toward the plan limit.
mediaIdsNoInstagram media IDs. Required for target "specific_posts"; with "next_post" they are matched too.
aiAgentIdNoOptional publicId of an existing Live AI agent (from list_agents) that takes over the conversation when the person replies to the DM. Its conversation hook is appended to the DM. Only works on paid plans; on Free the agent is ignored. null detaches it.
matchModeNocontains (default): the comment only has to include the keyword as a word, e.g. "GUIDE please!". exact: the whole comment must be the keyword.
dmMessagesNoDM variants (1-10); one is picked at random per commenter, so 2-3 wordings of the same message feel less robotic. Each must deliver the promised link. Max 1,000 characters each. Supports {{handle}}, {{name}}, {{namefirst}}.
trackLinksNoReplace links in the DM with tracked links to count clicks.
commentRepliesNoOptional public reply variants (up to 10), one picked at random per comment, e.g. "Sent! Check your DMs {{namefirst}}". Max 500 characters each.
publicReplyEnabledNoPost one of commentReplies publicly. Defaults to true when commentReplies is not empty.
matchWithoutAccentsNoOnly for keywords with Latin accents: also match the unaccented spelling (e.g. "guía" also matches "guia").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this a non-destructive, idempotent, open-world write. The description adds value beyond them: it discloses PATCH semantics, that array fields wholesale-replace existing variants (not merge), and that isActive=false pauses. It does not mention permission requirements or whether pausing affects in-flight DMs, which keeps it off a 5.

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?

Four short sentences, zero filler, front-loaded with the update-semantics that matter most (partial change, re-targeting, array replacement, pausing). Every sentence carries a distinct behavioral fact.

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 12-parameter mutation with no output schema, the description covers the highest-risk surprises (silent array replacement, re-targeting side effect, pause semantics) while the rich schema handles field detail. The remaining gap is return behavior — nothing says what the response contains after the update — which is minor given the tool's straightforward shape.

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%, so the schema already documents all 12 parameters thoroughly, establishing the baseline of 3. The description does add meaning beyond the schema — that passing target re-targets (including the next_post reset case) and that dmMessages/commentReplies replace rather than append — but it covers only 3 of the 12 fields.

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?

The opening sentence names a specific verb ("Change") and resource ("keyword automation"), and the immediate follow-up "Only the fields you pass change" pins the operation as a partial update rather than a full replace. It is clearly distinguishable from create_keyword/delete_keyword/get_keyword by name alone, though no sibling is explicitly named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied (modify an existing automation) but never stated as a when-to-use rule, and no alternative is named — e.g. nothing says to use create_keyword for new automations or get_keyword to inspect before changing. The field-level guidance about retargeting and pausing is helpful but is operational detail rather than tool-selection guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.