Skip to main content
Glama

Create a DM automation (paused)

postfjord_create_automation

Builds paused Instagram and Facebook DM automations that reply to keywords, comments, story replies, referrals, default messages, or purchases; they stay off until activated.

Instructions

For direct messages on Instagram and Facebook; an email series that starts by itself is postfjord_create_email_automation. Creates a DM automation on Instagram or Facebook, always paused: it answers nobody until it is switched on. Triggers: dm_keyword (a word in a DM), comment_keyword (a word in a comment, answered with a DM that must hold a link; postIds "any" or "next"; optional publicReplies under the comment), story_reply, story_mention, ref_link (an ig.me or m.me link with refCode, exactly one channel), default_reply (any DM, optional hours) and after_purchase (after a booking or a Stripe sale, events ["booking","sale"], a message with the review link: the Ask for a review automation). Steps run in order: message (text, optional link, link button and up to three buttons), followGate, collectEmail, followUp, delay, question, addTag (tag names; a new name makes the tag) and aiReply (last). Steps that remove a tag, set a field or branch are added in the app. Write the texts in the brand voice and the language of the audience. Needs the Draft scope. If the answer lists sameKeywords, another automation answers those words first: say so. Afterwards show the person you work for what it does and switch it on with postfjord_set_automation only after they approve. On a retry after a timeout or error, send the same idempotency_key: the first answer comes back and nothing is made or sent twice.

Input Schema

NameRequiredDescriptionDefault
nameYesThe name on the Automations screen, for example "Comment GUIDE".
stepsYes
triggerYes
likeCommentNocomment_keyword only: like the comment.
publicRepliesNocomment_keyword only: public replies under the comment, one picked at random.
idempotency_keyNoYour own id for this one action, for example post-20261006-launch. Make a new one for each new thing; send the same one again only when you retry. Left out, the exact same call within 10 minutes counts as a retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description adds the crucial behavioral facts those annotations don't carry — the automation is created paused and answers nobody until enabled, the Draft scope is required, and retries with the same key are safe. It doesn't state what happens on ValidationFailure of sameKeywords beyond "say so", but the coverage is rich. No contradiction: idempotentHint=false describes default behavior, while the description explains idempotency is opt-in via the key.

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 purpose and the sibling distinction, then triggers, then steps, then operational rules. It is dense and long — a single run-on block covering triggers, steps, brand-voice advice, scope, approval flow and idempotency — but nearly every sentence carries non-redundant information.

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?

Given a complex tool with nested oneOf steps, 6 parameters, no output schema and no destructiveness annotations, the description covers what the agent needs: trigger semantics, step types and ordering, scope requirement, the paused-by-default behavior, the approval workflow and idempotency handling.

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?

With 67% schema coverage, the description meaningfully compensates by explaining each trigger type's constraints (comment_keyword needs a DM with a link; postIds "any" or "next"; ref_link uses exactly one channel; after_purchase events ["booking","sale"]) and the step vocabulary, including ordering rules like aiReply last and the fact that remove-tag/set-field/branch steps must be added in the app. It doesn't restate every nested field (e.g. likeComment, channelIds), relying on those schema descriptions.

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 DM automation on Instagram or Facebook") plus a crucial scope qualifier ("always paused: it answers nobody until it is switched on"). It explicitly names the sibling it is not — "an email series that starts by itself is postfjord_create_email_automation" — so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Explicitly says when to use it versus postfjord_create_email_automation, names the follow-up step (switch it on with postfjord_set_automation only after the person approves), and gives retry guidance with the same idempotency_key. Nothing about selection or sequence is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools