Skip to main content
Glama

Create an Instagram auto-reply rule

create_autoreply

Use this when the person wants comment-to-DM on Instagram: a keyword in a comment (for example GUIDE) gets a public reply and a direct message with a link. Creates a rule that answers Instagram comments or direct messages containing one of its keywords, with the words given here, in the account's name. source comment (the default): each matching comment gets one public reply, picked from replies, and — if the account can message — the one private message Instagram allows per comment. source message: each matching direct message gets one answer from replies, at most once per person an hour. Whole words match, in any case. Under an autopilot credential the rule is live at once and answers real people in public; under a review-mode credential it is saved off and a person turns it on in Hub. Read the account and its posts with list_autoreplies first. Requires posts:write and posts:publish.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "keywords": "<keywords>"
    },
    "name": "create_autoreply"
  }
}

Input Schema

NameRequiredDescriptionDefault
postIdNoThe Instagram post a comment rule listens on, from list_autoreplies with posts: true. Left out: every post.
sourceNoWhat the rule answers. Defaults to comment.
accountNoUsername or id from list_autoreplies. May be left out when one account is connected.
messageNoComment rules only: the private message sent to the commenter, up to 1000 bytes of UTF-8 as Instagram counts it (about 500 Cyrillic characters).
repliesNoReply variants; one is picked per answer. A public reply under a comment is up to 300 characters; for source message each is a direct message, up to 1000 bytes of UTF-8 (about 500 Cyrillic characters). Required for source message.
keywordsYesWords to listen for, up to 40 characters each.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / message / description
      Previous value: -"Comment rules only: the private message sent to the commenter, up to 1000 characters."New value: +"Comment rules only: the private message sent to the commenter, up to 1000 bytes of UTF-8 as Instagram counts it (about 500 Cyrillic characters)."
    • changedInput schema / properties / replies / description
      Previous value: -"Reply variants, up to 300 characters each; one is picked per answer. Required for source message."New value: +"Reply variants; one is picked per answer. A public reply under a comment is up to 300 characters; for source message each is a direct message, up to 1000 bytes of UTF-8 (about 500 Cyrillic characters). Required for source message."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses that under an autopilot credential the rule goes live immediately and replies to real people in public, while under review-mode credentials it is saved inactive until a human enables it in Hub. It also documents per-comment and per-person rate limits (one private message per comment; at most once per person an hour), case-insensitive whole-word matching, and the required posts:write / posts:publish scopes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The usage trigger is correctly front-loaded, but the second sentence is convoluted and hard to parse ('with the words given here, in the account's name'), and the two source-mode behaviors could be ordered more cleanly. The density is justified, the phrasing is not.

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 openWorld, non-idempotent create with no output schema, the description covers the go-live consequence, credential modes, permission requirements, and matching/rate-limit behavior. It omits what the call returns (the created rule's identifier or shape), which is the main remaining gap.

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% and the schema already carries defaults and size limits, so the baseline is 3; the description earns above that by adding matching semantics not present in the schema ('Whole words match, in any case') and by clarifying that keywords and replies are 'the words given here'. It does not restate per-parameter limits, which is fine since the schema owns them.

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 description opens with a specific create verb plus a concrete resource ('Creates a rule that answers Instagram comments or direct messages containing one of its keywords') and explains the comment-to-DM behavior with an example (GUIDE). This clearly separates it from list_autoreplies, update_autoreply and delete_autoreply, which act on existing rules.

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 an explicit trigger ('Use this when the person wants comment-to-DM on Instagram') and a prerequisite ordering ('Read the account and its posts with list_autoreplies first'), naming the sibling to call before. It stops short of stating when not to use it, e.g. that existing rules should be changed with update_autoreply rather than re-created.

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.