Skip to main content
Glama

Update automation

update_automation
DestructiveIdempotent

Changes the fields you pass and keeps the rest. On a live automation the change applies at once, so it must still pass the go live checks.

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": {
      "id": "<id>"
    },
    "name": "update_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAutomation id.
nameNoName shown in LedaChat.
matchNoReply to comments with specific keywords, or to any comment.
postIdNoInstagram media id of the post or reel, from list_posts. Only for postScope specific; setting it also sets postScope to specific. Comment to DM only.
linkUrlNoWhere the link button goes. Must start with https://
storyIdNoInstagram media id of a live story, from list_stories. Story Reply only; setting it also sets postScope to specific.
keywordsNoKeywords that trigger the automation (case-insensitive). Replaces the whole list.
postScopeNoWhich posts or stories trigger it. Comment to DM: one specific post (set postId), the next post published after going live, or any post. Story Reply: one specific story (set storyId) or any story.
extraLinksNoUp to 2 more link buttons on the final DM, after the first. Each url must start with https://. Replaces the whole list; [] removes them.
finalDmTextNoFinal DM, sent after they tap the button (or send their email, when that step is on).
openingDmTextNoFirst DM. Sent right after the comment.
commentRepliesNoPublic reply variants; one is picked at random. Replaces the whole list.
followGateTextNoSent after the tap to someone who doesn't follow yet.
linkButtonLabelNoLabel of the link button on the final DM.
emailCaptureTextNoThe message that asks for their email.
followGateEnabledNoOnly send the rest of the flow to people who follow the account, checked after the tap. Comment to DM only.
commentReplyEnabledNoPost a public reply under the comment.
emailCaptureEnabledNoAsk for their email after the tap, before the final DM. Emails are saved as leads.
followGateRetryTextNoSent each time they tap that button without following.
openingDmButtonLabelNoButton on the first DM. Tapping it sends the final DM.
emailCaptureRetryTextNoSent once if their reply doesn't contain an email.
followGateButtonLabelNoButton on the follow message. Tapping it checks again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds genuinely new behavior: only supplied fields change, and on live automations the edit takes effect at once subject to go-live validation. It does not say what a failed validation does (reject the whole update vs. partial apply), which matters given destructive=true.

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?

Two short sentences, front-loaded with the patch semantics before the live-automation caveat. Nothing is wasted, though "go live checks" is left as an unexpanded reference.

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 22-parameter mutation tool with no output schema, the description covers the two things an agent most needs: patch semantics and immediate effect on live automations. Missing only the failure mode and any auth/ownership requirement, which keeps it short of a 5.

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, but the description contributes a real semantic layer the schema doesn't state as a whole: omitted fields are preserved rather than reset. That is important because several array parameters explicitly replace the whole list, and this framing tells the agent it must resend full arrays while staying silent on scalars.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Changes the fields you pass and keeps the rest" states the operation precisely as a partial update, which is the key distinction from a full replace. It doesn't name any sibling (create_automation, duplicate_automation) explicitly, but the patch semantics are unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence gives a conditional context: on a live automation the change applies immediately and must still pass the go live checks. That hints at when extra care is needed, but there is no explicit routing guidance versus create_automation or duplicate_automation, and no stated precondition (e.g. fetch with get_automation first) for a 22-parameter patch.

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