Skip to main content
Glama

Save an Instagram auto-reply

autoreplies_save
Destructive

Create or replace an Instagram comment rule on Studio or Pro. Send every required field on each save. Before enabling it, show the user the account, posts, words and exact message and get their approval for automatic private replies. Returns the saved rule. Replies are sent only once Instagram has approved Spica Post for messages, which is not yet: until then a rule is kept and sends nothing, so tell the user that before they rely on it.

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": {
      "accountId": "<accountId>",
      "mediaId": "<mediaId>",
      "words": "<words>",
      "message": "<message>",
      "on": "<on>"
    },
    "name": "autoreplies_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoA rule id from autoreplies_list. Leave it out to create a rule.
onYesSet true to send automatically on matching comments, or false to keep the rule switched off.
wordsYes1 to 10 trigger words. Any one matches, ignoring letter case.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.
mediaIdYesThe Instagram post or reel id (1 to 32 digits), or "all" for every post and reel on the account.
messageYesThe private reply text, up to 1000 UTF-8 bytes including links and the optional disclosure line.
accountIdYesA connected Instagram account id from accounts_list.
automatedLineNoAppend a blank line and "Automated reply" to the message. Defaults to false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds real substance on top: the save is a full replacement, it returns the saved rule, and critically that replies send nothing until Instagram approves Spica Post for messages. That gating caveat is exactly the kind of behavioral context annotations cannot express; only the absence of error/failure detail keeps it from 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.

Conciseness4/5

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

Purpose is front-loaded and every sentence carries operational weight: replace semantics, approval workflow, return value, and the sending limitation. The final sentence is long and could be split, but no content is wasted.

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 an 8-parameter, 5-required mutation with no output schema, the description covers what an agent needs: full-replace behavior, the human-approval step, the return value, and the fact that rules are stored but inert pending platform approval. Nothing essential to correct invocation or user communication 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 coverage is 100% and every parameter carries a detailed description, including id meaning create-vs-replace and mediaId accepting 'all'. The description adds the important aggregate rule that all required fields must be resent each save, but does not add per-parameter meaning beyond that, so the baseline of 3 with a small lift 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 and resource ('Create or replace an Instagram comment rule') and bounds the platform ('on Studio or Pro'). Combined with the title, an agent can distinguish this write path from the read/delete siblings (autoreplies_list, autoreplies_delete) without inspecting a 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?

Gives concrete preconditions: send every required field on each save, and show the user the account, posts, words and exact message to get approval before enabling automatic replies. It stops short of naming an explicit alternative or when-not-to-use case, which keeps it from a 5.

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.