Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

create_automation

Destructive

Create a new automation for a LinkedIn post. Always created as Draft - you must activate it separately. Supports keywords, DM templates, comment replies, repost-specific DM/replies, and settings like auto-connect and auto-like. keywords: [] is valid and means "reply to every commenter". To automate a post the user has NOT published yet, set automate_next_post: true and omit post_url — it arms itself and attaches to their next original post automatically. To duplicate an existing automation, read it with get_automation and copy all its reply sets: dm_templates, comment_reply_templates and non_first_degree_reply_templates (the replies for commenters who aren't connected), plus repost_dm_template / repost_comment_reply_templates if set.

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": {
      "post_url": "<post_url>"
    },
    "name": "create_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
act_asNoAPEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own.
keywordsNoTrigger keywords (e.g., ["interested", "send", "want"])
post_urlYesLinkedIn post URL to automate. Omit when using automate_next_post.
settingsNo
offer_urlNoURL to include in DM (e.g., lead magnet link)
instructionNoNatural language instruction describing what the automation should do
dm_templatesNoDM message templates. Use {{firstName}}, {{fullName}}, {{linkedinUsername}}
automate_next_postNoAutomate Next Post: arm this automation for a post the user has not published yet. It waits, then attaches itself to their next ORIGINAL post (reposts ignored) — usually within ~15 minutes of publishing. Omit post_url when using this; passing both is an error. Only one armed next-post automation is allowed at a time. Unlike a normal automation this is created armed (status 'Next'), not Draft, because that is what makes it wait — there is nothing to activate afterwards.
repost_dm_templateNoOptional. A DIFFERENT DM sent to people who REPOST the post (instead of / in addition to the normal DM — see settings.only_repost_dm). Same variables as dm_templates. Mirrors the REST field repost_specific_dm.
comment_reply_templatesNoComment reply templates. Use {{fullNameMention}} for @mentions
repost_comment_reply_templatesNoOptional. Comment replies used for commenters who ALSO reposted the post. Mirrors the REST field repost_comment_reply_template.
non_first_degree_reply_templatesNoComment replies used when the commenter is NOT a 1st-degree connection (no DM possible) — put the link in the reply instead. suggest_automation_settings returns these. Use {{fullNameMention}} for @mentions

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and non-idempotent, and the description does not contradict them. Beyond that it discloses genuinely non-obvious behavior: the result is a Draft rather than a live automation, and automate_next_post creates the record already armed in status 'Next' with nothing to activate afterwards — which overrides the general draft rule. It does not say what the call returns (e.g., the new automation id needed for later activation), a modest gap for a destructive create.

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?

Content is front-loaded: creation, draft status, and the post_url-vs-automate_next_post fork appear before the duplication recipe. It is dense but every sentence carries operational information; the duplication sentence is long and could be split, but nothing 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 12-parameter, nested-object create tool with no output schema, the description covers the hard parts: draft lifecycle, the armed next-post exception, empty-keywords semantics, and how to reconstruct reply sets when duplicating. The remaining gap is that it never states the return shape, so an agent must guess how to obtain the created automation's identifier for the later activation step it tells the user about.

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 92%, so per-parameter meaning is largely carried by the schema and a baseline 3 applies. The description adds real value above that baseline by explaining that keywords: [] is a valid and meaningful value ('reply to every commenter') and by mapping the duplication reply sets, including the non_first_degree_reply_templates clarification, onto their purpose.

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?

The description opens with a specific verb+resource ('Create a new automation for a LinkedIn post') and immediately distinguishes this from edit_automation and get_automation by naming the duplicate-read flow and the draft-then-activate lifecycle. An agent can tell what this tool does and what it does not do 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?

It gives explicit branch conditions: use automate_next_post + omit post_url for an unpublished post, and call get_automation first when duplicating. It also sets an expectation that creation is not activation ('Always created as Draft - you must activate it separately'). It stops short of routing the agent to suggest_automation_settings for choosing reply sets or to edit_automation for later changes, so it is clear but not exhaustively comparative.

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