Skip to main content
Glama

Create automation

create_automation

Creates a draft automation. Any field you leave out gets the app's default (friendly replies and DMs, a placeholder link). It doesn't run until you call go_live.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName shown in LedaChat.
typeNocomment_to_dm (default): someone comments on a post. story_reply: someone replies to one of your stories. Can't be changed later.
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

A4.4/5.0
Behavior4/5

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

Annotations already declare it is a non-readonly, non-destructive, non-idempotent write; the description adds meaningful behavior beyond that by disclosing defaulting semantics for omitted fields (friendly replies and DMs, placeholder link) and that nothing runs until go_live. It does not cover permissions, validation failures, or repeated-call behavior, but the core behavioral surprises are surfaced.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action, then defaults, then lifecycle gate. Every sentence carries distinct information and nothing is wasted.

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, zero-required creation tool the description covers the two things most likely to be misunderstood: that omission is safe and that creation is inert until go_live. It omits what the call returns (e.g., an id needed for later update/go_live calls), which is a real gap given there is no output schema.

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 explaining that all 22 parameters are optional and what happens when they are omitted, which the schema alone (0 required fields, no output schema) does not make obvious. It does not add per-parameter meaning beyond what the rich enum and field descriptions already provide.

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 draft automation') plus the lifecycle state (draft, not running), which is the key distinction from live automations, and names the sibling go_live that advances it. An agent can tell this apart from update_automation or duplicate_automation without opening the 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 clear workflow context: create the draft here, then call go_live to actually start it. It does not explicitly say when to prefer update_automation or duplicate_automation instead, so the alternative-selection guidance is incomplete.

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