Skip to main content
Glama

Create an Instagram auto-reply rule

create_autoreply

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.

Input Schema

TableJSON 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 characters.
repliesNoReply variants, up to 300 characters each; one is picked per answer. Required for source message.
keywordsYesWords to listen for, up to 40 characters each.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this as a non-readonly, open-world, non-idempotent mutation. The description goes well beyond them: it discloses the autopilot-vs-review-mode split ('live at once and answers real people in public' vs 'saved off and a person turns it on in Hub'), per-person throttling ('at most once per person an hour'), Instagram's one-DM-per-comment limit, and the required posts:write / posts:publish scope.

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

Conciseness4/5

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

It is front-loaded with the core purpose and every sentence carries information, but the mode/rate-limit sentence is long and em-dash-heavy, which slightly slows parsing of two important operational facts.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation tool with no output schema, the description covers prerequisites, permissions, mode-dependent side effects, throttling, and matching rules. There is no output schema to explain, and nothing an agent needs in order to invoke it safely is missing.

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%, so the baseline is 3. The description earns above that by adding matching semantics the schema lacks ('Whole words match, in any case'), the default for source, and the reply-selection behavior for comment vs message rules.

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 names a specific verb and resource ('Creates a rule that answers Instagram comments or direct messages containing one of its keywords') and immediately scopes it to the account's own name. An agent can distinguish it from list_autoreplies, update_autoreply, and delete_autoreply without opening any 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?

It gives an explicit prerequisite ('Read the account and its posts with list_autoreplies first') and clarifies the two operational modes via source comment vs source message. It does not, however, say when to reach for update_autoreply instead of creating a new rule, so the sibling boundary is only partly drawn.

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.