Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

schedule_post_with_automation

Destructive

Schedule a LinkedIn post for future publishing, or publish it right away with publish_now: true, with optional automation, @mentions, and media. The automation activates automatically when the post goes live. Attach media by URL, matching the dashboard/REST API: one OR multiple images (a carousel), OR a single PDF document, OR a single MP4 video. PDF/video cannot be combined with images or each other. Tag people/companies with the mentions array (works for personal and Company Page posts). Pass organization_id to publish as a Company Page you administer (call list_companies first). A Company Page can post at most 20 times in any 24 hours (LinkedIn throttles pages that post far more); a post that breaks that is refused with code page_post_limit and details.next_free_time, so schedule it at that time instead. If LinkedIn refuses two page posts in a row, that page's posts due in the next 6 hours are moved back; spread page posts over the day.

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_content": "<post_content>"
    },
    "name": "schedule_post_with_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.
pdf_urlNoURL of a single PDF document to attach (max 50MB). Mutually exclusive with images and video_url — LinkedIn allows only one document per post.
mentionsNoOptional. Tag people/companies in the post. Easiest: pass a slug — { "slug": "jane-doe" } (the /in/<slug> tail of a profile, or a full profile/company URL) — and we resolve the name + id for you. Also write the literal "@Name" in post_content for each tag. Works for personal and Company Page posts. Up to 20.
timezoneNoIANA timezone name (e.g. America/New_York, Europe/Tallinn) used to interpret a naive scheduled_for. Omit it to use the user's LeadShark Settings timezone (UTC if they haven't set one). Ignored when scheduled_for already carries an offset or "Z".
image_urlNoDeprecated — prefer image_urls. URL of a single image to attach (JPEG, PNG, GIF, WebP). Combined with image_urls if both are given.
video_urlNoURL of a single MP4 video to attach (max 50MB). Mutually exclusive with images and pdf_url — LinkedIn allows only one video per post.
automationNoOptional automation to attach. Two ways: (1) from a saved template: pass only template + keyword + resource_link (everything else comes from the template; other fields are refused; the saved template itself is not changed). The link goes where the template has {{link}}, or replaces the template's single DM link; a template with 2+ links and no {{link}} is refused. (2) custom: keywords, dm_template, comment_reply, settings.
image_urlsNoURLs of one or more images to attach to the post (a carousel), in order. Supports JPEG, PNG, GIF, WebP (max 5MB each; GIF up to 50MB and up to 250 frames, the LinkedIn limit), up to 20 images. Cannot be combined with pdf_url or video_url.
crosspost_xNoOptional. Also post the same text and images (or one GIF, or one MP4 video up to 50 MB) to the user's connected X account right after the LinkedIn post goes live. Fail-safe: never blocks or delays the LinkedIn post. If X isn't connected, or the post doesn't fit X (company page, PDF, a video over 50 MB or longer than X allows, too long even as a thread: on a free X account long posts go out as a thread of up to 8 posts, with X Premium as one post), the post still publishes on LinkedIn and the response's x_crosspost.warnings says why. Personal posts only. At most 10 posts to X per account per UTC calendar day (X-only posts and cross-posts together): on a full day the X copy is turned off and x_crosspost.warnings says so (the post still publishes on LinkedIn). Pro+ and higher plans only: on a lower plan the request is turned off and x_crosspost.warnings says why.
on_conflictNoOptional. "push": if another post is already in this 15-minute slot, move it and every later post back to make room, in this one call (no need to edit each post). By default each later post takes the next post's time; pass push_by_days / push_by_minutes to move them all by a fixed offset instead. The response lists every moved post under "pushed".
publish_nowNoPublish to LinkedIn right away instead of scheduling (omit scheduled_for). Refused when another LinkedIn post of this account went out in the last 5 minutes or is scheduled within 5 minutes of now (move that post or wait). The reply says whether it published (with the post link), is still publishing, or why LinkedIn refused it. A comment-to-DM automation on the post starts within a few minutes.
post_contentYesThe LinkedIn post content (max 3000 chars)
push_by_daysNoWith on_conflict: "push": move the later posts by this many days instead of to the next post's slot.
x_automationNoOnly with crosspost_x: an X lead-magnet automation on the X copy, separate from the LinkedIn automation. It starts once the X copy is out: someone replies on X with a keyword and gets a DM with your resource, a public reply, or both (same fields as schedule_x_post's automation). Pro+ runs 1 X automation at a time, Apex 10; X DM permission is needed to send DMs. Never blocks the LinkedIn post: if it can't be used, x_automation.warnings says why.
x_engagementNoOnly with crosspost_x: the X copy's first comment and repost (Pro+ and Apex): a first comment on X right after it goes out, and one repost later, optionally removed 12 hours after. LinkedIn isn't affected. Never blocks the LinkedIn post: if it can't be used, x_engagement.warnings says why.
first_commentNoOptional. A comment posted in your voice immediately after the post publishes (max 3000 chars). Commonly used to put the lead-magnet link in the first comment instead of the post body.
scheduled_forNoRequired unless publish_now is true. ISO 8601 datetime for publishing. If it includes an offset or "Z" (e.g. 2026-02-03T09:00:00Z or 2026-02-03T09:00:00-05:00) that exact instant is used. If you pass a naive local time (e.g. 2026-02-03T09:00:00) it is interpreted in the `timezone` you provide, or — if you omit it — in the user's LeadShark Settings timezone, so "09:00" means 9am their time. The response says which timezone was used (timezone, timezone_source). If the time has already passed, the error tells you the current time in that timezone.
allow_duplicateNoOptional. A post with the same text on the same account (and the same Company Page, if any) that is scheduled or published within 24 hours is refused with code duplicate_post, so a workflow that runs twice cannot post twice. Pass true only to post the same text again on purpose.
organization_idNoOptional. Numeric LinkedIn organization id of a Company Page you administer (from list_companies). When set, the post publishes as that Company Page. Automation is not supported for Company Page posts.
push_by_minutesNoWith on_conflict: "push": move the later posts by this many minutes (min 15) instead of to the next post's slot.
repost_after_hoursNoOptional auto-repost. Native LinkedIn reposts of this post from your personal profile, N hours after it actually goes live — any of 4, 8, 12 (e.g. [4, 8, 12] = three reposts). Company Page posts (organization_id) work too: the page's post is reposted from YOUR personal profile, and they can also use 0 = right after it goes live (within ~15 minutes; the early repost is what gives a page post reach). 0 is refused on personal posts. Each runs within ~15 minutes of its time and first removes the previous repost, so only the latest stays on the profile. Omit for none.
first_comment_pinnedNoOptional, with first_comment. true pins the first comment to the top of the LinkedIn post right after it is posted (best effort: if pinning fails, the post and comment stay as they are).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / crosspost_x / description
      Previous value: -"Optional. Also post the same text and images (or one GIF, or one MP4 video up to 50 MB) to the user's connected X account right after the LinkedIn post goes live. Fail-safe: never blocks or delays the LinkedIn post. If X isn't connected, or the post doesn't fit X (company page, PDF, a video over 50 MB or longer than X allows, too long even as a thread: on a free X account long posts go out as a thread of up to 8 posts, with X Premium as one post), the post still publishes on LinkedIn and the response's x_crosspost.warnings says why. Personal posts only; at most 5 X cross-posts per day. Pro+ and higher plans only: on a lower plan the request is turned off and x_crosspost.warnings says why."New value: +"Optional. Also post the same text and images (or one GIF, or one MP4 video up to 50 MB) to the user's connected X account right after the LinkedIn post goes live. Fail-safe: never blocks or delays the LinkedIn post. If X isn't connected, or the post doesn't fit X (company page, PDF, a video over 50 MB or longer than X allows, too long even as a thread: on a free X account long posts go out as a thread of up to 8 posts, with X Premium as one post), the post still publishes on LinkedIn and the response's x_crosspost.warnings says why. Personal posts only. At most 10 posts to X per account per UTC calendar day (X-only posts and cross-posts together): on a full day the X copy is turned off and x_crosspost.warnings says so (the post still publishes on LinkedIn). Pro+ and higher plans only: on a lower plan the request is turned off and x_crosspost.warnings says why."
  2. Changed1 schema field changed
    • addedInput schema / properties / first_comment_pinned
      Added value: +{
      +  "description": "Optional, with first_comment. true pins the first comment to the top of the LinkedIn post right after it is posted (best effort: if pinning fails, the post and comment stay as they are).",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / repost_after_hours / description
      Previous value: -"Optional auto-repost (personal-profile posts only). Native LinkedIn reposts of this post, N hours after it actually goes live — any of 4, 8, 12 (e.g. [4, 8, 12] = three reposts). Each runs within ~15 minutes of its time and first removes the previous repost, so only the latest stays on the profile. Omit for none."New value: +"Optional auto-repost. Native LinkedIn reposts of this post from your personal profile, N hours after it actually goes live — any of 4, 8, 12 (e.g. [4, 8, 12] = three reposts). Company Page posts (organization_id) work too: the page's post is reposted from YOUR personal profile, and they can also use 0 = right after it goes live (within ~15 minutes; the early repost is what gives a page post reach). 0 is refused on personal posts. Each runs within ~15 minutes of its time and first removes the previous repost, so only the latest stays on the profile. Omit for none."
    • changedInput schema / properties / repost_after_hours / items / enum
      Previous value: -[
      -  4,
      -  8,
      -  12
      -]New value: +[
      +  0,
      +  4,
      +  8,
      +  12
      +]
  4. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare this is a mutating, non-idempotent, open-world call, and the description adds genuinely useful operational context (20 posts/24h page limit, page_post_limit refusal with next_free_time, 6-hour push-back after two consecutive refusals, publish_now blocked within 5 minutes of another post). However, these limits are largely restated in the corresponding parameter descriptions, so the top-level text adds less than it appears.

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?

The most important fact — schedule vs publish now — is front-loaded, and the paragraph on Company Page throttling is actionable rather than decorative. A few sentences duplicate field-level descriptions (media exclusivity, mentions), so it is slightly longer than strictly necessary.

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 tool with nested automation/x_automation/x_engagement objects and no output schema, the description covers the main failure modes, sequencing prerequisites (list_companies), and response hints (x_crosspost.warnings). It does not summarize the return shape for the plain scheduling path beyond timezone_source, which would have closed the remaining gap.

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 goes modestly beyond it by grouping the media options into a single exclusivity rule (one/many images OR one PDF OR one MP4) and explaining the two automation modes (template vs custom) as workflows rather than individual fields. That said, most of this is already present in the field-level text.

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 opening sentence names a specific verb (schedule/publish) and resource (LinkedIn post) and enumerates the differentiators: publish_now, automation, mentions, media. It also implicitly separates itself from schedule_x_post by describing crosspost behavior as an option rather than a separate purpose.

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 selection context: publish_now vs scheduled_for, organization_id requires calling list_companies first, and allow_duplicate must only be set deliberately. It stops short of explicitly naming an alternative tool to use for X-only posting or for editing an existing scheduled post.

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