Skip to main content
Glama
commentkeyword

commentkeyword-mcp

Official

Create a keyword automation

create_keyword

Create Instagram comment-to-DM automations that send a direct message when people comment a chosen keyword, with optional public replies and targeting for next, all, or specific posts.

Instructions

Create a comment-to-DM automation: when someone comments the keyword, CommentKeyword sends them the DM (and optionally replies publicly). Confirm the details with the user first, because it messages real people. Fails with 409 if the keyword already exists for the same posts, or with keyword_limit_exceeded when the plan has no free active-keyword slot.

Input Schema

NameRequiredDescriptionDefault
targetYesWhich 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.
keywordYesThe 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.
dmMessagesYesDM 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

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false; the description adds real value on top by disclosing that DMs reach real people (a social/irreversible side effect), and by naming two concrete failure modes: 409 on duplicate keyword for the same posts and keyword_limit_exceeded when the plan has no free active-keyword slot. Missing are what gets returned on success and any permission/scope requirements, 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?

Three sentences: what it does, the caution about real recipients, then failure modes — front-loaded and ordered by what the agent needs first. No restatement of the title and no filler.

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 11-parameter mutation tool with no output schema, the description covers purpose, side-effect caution, and error paths, which is most of what's needed. It stops short of saying what the successful call returns (presumably the created keyword with an id) or noting that the new keyword counts against the plan limit, which an agent creating keywords in bulk would want to know.

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% and every one of the 11 parameters is documented in detail in the schema, so the schema does the heavy lifting. The description only adds a passing reference to the optional public reply, offering essentially no parameter meaning beyond structured data — baseline 3 is appropriate.

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 and resource (create a comment-to-DM automation) and goes further to explain the actual mechanism: a comment triggers the keyword and CommentKeyword sends the DM, optionally with a public reply. That mechanism makes it unambiguously distinct from the list/get/update/delete_keyword siblings without naming them.

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 precondition for use — confirm details with the user first, because it messages real people — which is genuinely actionable guidance for an agent. It does not explicitly contrast with update_keyword (e.g. 'use this only for new keywords; to change an existing one use update_keyword'), so the when-not case is left to inference.

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