Skip to main content
Glama

Save comment automation

save_comment_automation
Destructive

Creates a comment automation, or changes one when automationId is given. When a new comment matches all conditions (text, tags, sentiment, platform, language, post, author, rating, AI recommendation), the actions run in order after the wait time (hide, like, delete, block, reply with an AI suggestion or custom text, private message, tags, email or webhook notification, mark done). Validated before saving; errors are returned and nothing is saved. A new automation is saved INACTIVE with the next execution order number, as the editor does; once active it runs only for comments that no automation earlier in the order catches. A change replaces the rules (the rules as get_automation returns them, edited) and/or the name and settings; active stays active, inactive stays inactive. A change is refused when the stored automation has parts the model cannot represent, unless overwriteUnsupported is true. May first return a confirmation summary and token instead of acting.

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": {
      "brand": "<brand>"
    },
    "name": "save_comment_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequired when creating.
brandYes
rulesNoThe complete rules. Required when creating; when changing, omit to change only name or settings.
automationIdNoId of the automation to change. Omit to create one.
expectedVersionNoChanges only: the version from get_automation; a mismatch refuses the change.
confirmationTokenNo
applyBusinessHoursNoDelay actions outside the brand's business hours. New automations: false.
triggerOncePerUserNoRun at most once per comment author. New automations: false.
overwriteUnsupportedNoChanges only: replace stored rules that have parts the model cannot represent (listed in notEditableParts). Those parts are lost.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / rules / properties / actions / description
      Previous value: -"Fields by type: reply{source firstAiSuggestion|secondAiSuggestion|thirdAiSuggestion|customText, variants} · privateMessage{source, variants [{text, buttons [{text,url}]}]} · emailNotification{recipients \"self\"|[emails]} · webhookNotification{urls} · addTag / removeTag{tags} · hide, like, delete, markAsDone, moveToOpen, blockUser, sendFirstSuggestion{}. Run in order."New value: +"Fields by type: reply{source firstAiSuggestion|secondAiSuggestion|thirdAiSuggestion|customText, variants, mediaAssetId} · privateMessage{source, variants [{text, buttons [{text,url}]}]} · emailNotification{recipients \"self\"|[emails]} · webhookNotification{urls} · addTag / removeTag{tags} · hide, like, delete, markAsDone, moveToOpen, blockUser, sendFirstSuggestion{}. Run in order."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing validation-before-save with no partial writes, that new automations are stored INACTIVE with the next execution order, that earlier automations in order win, and that changes preserve active/inactive state. It also discloses the data-loss hazard behind overwriteUnsupported and the possible confirmation-summary-and-token detour, which are the behaviors an agent most needs before calling a destructive write.

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?

Front-loaded with the create/change distinction, then ordered logically through matching, validation, persistence, and change semantics. Sentences are dense and one long parenthetical action list is close to overwhelming, but no sentence is 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 a 9-parameter nested mutation tool with no output schema, it covers the hard parts: rule semantics, ordering, version conflicts, unsupported-part refusal, and the confirmation token flow. The only real gap is what the call returns on success beyond the special confirmation case.

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 already 78% and the description largely restates schema material (conditions, actions, wait time) rather than adding syntax. Where it does add meaning — expectedVersion's mismatch refusal, overwriteUnsupported losing notEditableParts, name being required only on create — it is genuinely useful, but most parameters remain documented by the schema alone.

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 ('Creates a comment automation, or changes one when automationId is given'), which also encodes the create-vs-update split in the same sentence. An agent can distinguish this from save_dm_automation or validate_automation purely from the description.

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?

Clear conditions for the two modes: omit automationId to create, supply it plus rules/name/settings to change, and supply expectedVersion from get_automation. It does not explicitly route away from sibling tools such as validate_automation or duplicate_automation, so it falls short of a full when/when-not/alternatives statement.

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.

Resources