Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

manage_automation_templates

Reusable automation templates (Automate → Templates in the app): list, get, create, and edit them. A template bundles trigger keywords, many comment-reply variations (comment_reply_template for 1st-degree commenters, non_first_degree_reply_template for the rest), DM variations (dm_templates, rotated; more than one is Pro+), follow-ups, and options like auto_connect and the ICP gate. Use a template's id as template_id when scheduling a post with an automation, or copy its fields into create_automation. Text supports {{firstName}}, {{lastName}}, {{fullName}}, {{linkedinUsername}}, {{linkedinUrl}}, and {{link}}: a per-post resource link filled in when you schedule a post with schedule_post_with_automation (automation.template + keyword + resource_link), so one template serves many posts; comment replies can also @mention with {{firstNameMention}} / {{fullNameMention}} (not in DMs). 'edit' changes only the fields you send; arrays you send replace the whole list. Editing never changes automations or scheduled posts already created from the template (they keep their own copy). Limits: name 100 chars, up to 20 variations per list and 20 keywords, 1000 chars per DM / follow-up, 1250 per comment reply. Apex-only options (send_if_liked, send_basedon_dm) are switched off with a warning on lower plans. To delete a template use delete_automation_template.

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": "manage_automation_templates"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNocreate (required) / edit: template name, unique among your templates (max 100 chars).
pageNolist: page number (default 1).
limitNolist: templates per page (1-100, default 20).
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.
actionNo'list' (default), 'get', 'create', or 'edit'.
searchNolist: filter by name (contains).
page_idNocreate/edit: attach one of your Pages (id from list_lead_pages). Null detaches.
icp_gateNocreate/edit: only DM people who match your Ideal Customer (default 'off').
keywordsNocreate/edit: trigger keywords (max 20). Empty = every commenter.
auto_likeNocreate/edit: like the comment (Pro+).
descriptionNocreate/edit: optional note (max 500 chars).
template_idNoget / edit (required): the template id, from list.
auto_connectNocreate/edit: send a connection request to non-connections who comment.
dm_templatesNocreate/edit: DM variations, rotated (max 20; more than one is Pro+).
links_enabledNocreate/edit: track leads.sh links in the DMs.
send_if_likedNocreate/edit: only DM people who also liked the post (Apex).
only_repost_dmNocreate/edit: only DM reposters (needs repost_specific_dm).
send_basedon_dmNocreate/edit: Apex option send_basedon_dm (Apex).
enable_follow_upNocreate/edit: send a follow-up DM (needs follow_up_template and follow_up_delay_minutes).
follow_up_templateNocreate/edit: follow-up DM text.
repost_specific_dmNocreate/edit: a different DM for people who repost (Pro+). Null removes it.
follow_up_template_2Nocreate/edit: second follow-up text (Pro+). Null removes it.
follow_up_template_3Nocreate/edit: third follow-up text, sent after the second (Apex; Pro+ gets 2 follow-ups, Pro 1). Null removes it.
comment_reply_templateNocreate/edit: public reply variations for 1st-degree commenters (max 20, rotated).
follow_up_delay_minutesNocreate/edit: minutes after the first DM (1-10080).
follow_up_delay_minutes_2Nocreate/edit: minutes after the first follow-up (1-10080, default 1440 = 1 day).
follow_up_delay_minutes_3Nocreate/edit: minutes after the second follow-up (1-10080, default 1440 = 1 day).
follow_up_only_if_no_responseNocreate/edit: skip the follow-up if they replied (default true).
repost_comment_reply_templateNocreate/edit: reply variations for reposters (max 20).
non_first_degree_reply_templateNocreate/edit: reply variations for commenters who are not connections (max 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only tell us it's a non-readonly, non-destructive, non-idempotent, closed-world tool; the description adds the critical edit semantics — 'changes only the fields you send' and 'arrays you send replace the whole list' — plus the fact that edits never propagate to automations or scheduled posts already created from the template. It also discloses hard limits (100-char name, 20 variations, 20 keywords, 1000/1250-char bodies) and the downgrade behavior ('switched off with a warning on lower plans'). It stops short of anything about auth requirements beyond act_as or the response shape, which is a minor gap given no output schema.

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?

It is front-loaded correctly — purpose first, then cross-tool routing, then merge-tag semantics, then limits, then the delete pointer. The prose is dense with parenthetical asides and long run-on sentences, so it takes effort to parse, but almost no sentence is filler given the tool's 30-parameter surface.

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 30-parameter tool with no output schema, the definition covers the hard parts: edit merge semantics, plan gating, character and list limits, and how templates relate to automations and scheduled posts. What it omits is modest — the list/get return shape and default behavior when no action is passed rely on the action enum's own 'list (default)' note rather than the description.

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 would be 3, but the description adds substantial cross-parameter meaning the schema cannot express: which merge tags are legal ({{firstName}}, {{link}}, and the {{firstNameMention}} variants excluded from DMs), how {{link}} is bound per post at schedule_post_with_automation time, and how comment_reply_template vs non_first_degree_reply_template split by degree. That is real added semantics beyond the per-field 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?

The first sentence names the resource and enumerates the exact operations: 'Reusable automation templates (Automate → Templates in the app): list, get, create, and edit them.' It also anchors the concept ('a template bundles trigger keywords, comment-reply variations, DM variations, follow-ups...'), which separates it cleanly from create_automation and delete_automation_template without needing their schemas.

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?

The description gives explicit routing: use a template's id as template_id when scheduling via schedule_post_with_automation, or copy fields into create_automation, and it points to delete_automation_template for deletion. It also states the conditions under which plan-gated options apply (Pro+ for multiple DM variations, Apex for send_if_liked/send_basedon_dm), so the agent knows when an option will be silently disabled.

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