Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

schedule_x_post

Posts to X (Twitter) only, with nothing going to LinkedIn: right away (publish_now: true) or at scheduled_for. Over MCP this needs Pro+ or Apex (posting to X itself is on Pro and up in the dashboard and REST API), and the user's X account must be connected in LeadShark (Settings → My accounts). Up to 20 images by URL (image_urls): JPEG, PNG, WebP or one GIF on its own, the same as the dashboard. Long text on a free X account (280 characters per post) goes out as a thread of up to 8 posts; with X Premium the full post goes out. Up to 10 posts to X per account per UTC calendar day, counted together with LinkedIn cross-posts: a post for a full day (or an edit moving it to one) is refused with code x_daily_limit, so pick another day. A post is never sent twice: if X doesn't confirm it, its status is 'unknown' and it isn't retried (ask the user to check their X profile). A time without an offset is read in timezone, else the user's Settings timezone, else UTC, and the reply says which zone was used. To post the same text to LinkedIn and X together, use schedule_post_with_automation with crosspost_x: true instead. Add automation to run a comment-to-DM lead magnet on the post (keyword → DM with your resource), set up in the same call. List, edit or cancel X posts with manage_x_posts.

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": {
      "text": "<text>"
    },
    "name": "schedule_x_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe post text. LinkedIn-style @mentions are not converted; write X handles as plain text. Can be empty when image_urls or video_url is set.
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.
timezoneNoIANA timezone for a scheduled_for without an offset (e.g. 'Europe/Tallinn'). Default: the user's Settings timezone.
image_urlNoOne image URL (same as image_urls with one item).
video_urlNoOne public MP4 video URL (https, up to 50 MB), on its own: not with image_urls. X usually takes videos up to 2:20 unless the X account has Premium; a video X can't process fails the post with a clear reason.
automationNoAn X lead-magnet automation that starts when this post goes out: someone replies with a keyword and gets one DM with your resource, a public reply under their comment, or both. Pro+ runs 1 X automation at a time, Apex 10; X DM permission is needed (the call is refused up front if not, with a code such as plan_required or x_dm_permission_required). If the plan's limit is already running when the post goes out, it doesn't start (error x_automation_limit). The post's reply shows automation.state: 'waiting' until it goes out, then 'live' (x_automation_id) or 'not_started' (error).
image_urlsNoUp to 20 public image URLs (https; JPEG, PNG, WebP or GIF). LeadShark downloads them and attaches them to the post. A GIF must be the only image. Large images are resized for X.
on_conflictNoOptional, with scheduled_for: 'push' frees a taken 15-minute slot by moving the post to X in it, and every later scheduled post to X, back (one slot each, or by push_by_minutes / push_by_hours / push_by_days). The reply lists what moved under pushed. Posts going out within 15 minutes and LinkedIn posts with 'Also post to X' are never moved (PUSH_FAILED).
publish_nowNotrue: post to X right away (the reply has the final status and the link). Omit scheduled_for.
push_by_daysNoOptional, with on_conflict: 'push': move by this many days.
x_engagementNoX first comment and auto-repost (Pro+ and Apex, and the Apex trial): a first comment right after the post goes out, and one repost later, optionally removed 12 hours after. Each runs once and is never retried after an unclear result. The post's `followups` (manage_x_posts get/list) show what happened. null turns them off.
push_by_hoursNoOptional, with on_conflict: 'push': move by this many hours.
scheduled_forNoWhen to post, ISO 8601 (e.g. '2026-11-03T09:00' or with an offset). Within one year. Goes out within about 15 minutes of this time.
allow_duplicateNoOptional. A post to X with the same text as another of this account's posts to X 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. Separately, posts to X need their own 15-minute slot (:00, :15, :30, :45): a second post in a taken slot is refused with code TIME_CONFLICT (pick another time, or pass on_conflict: 'push'). publish_now is refused with code too_close when another post to X went out less than 5 minutes ago or is due within 5 minutes.
push_by_minutesNoOptional, with on_conflict: 'push': move the posts in the way by this many minutes instead of one slot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / allow_duplicate
      Added value: +{
      +  "description": "Optional. A post to X with the same text as another of this account's posts to X 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. Separately, posts to X need their own 15-minute slot (:00, :15, :30, :45): a second post in a taken slot is refused with code TIME_CONFLICT (pick another time, or pass on_conflict: 'push'). publish_now is refused with code too_close when another post to X went out less than 5 minutes ago or is due within 5 minutes.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / on_conflict
      Added value: +{
      +  "description": "Optional, with scheduled_for: 'push' frees a taken 15-minute slot by moving the post to X in it, and every later scheduled post to X, back (one slot each, or by push_by_minutes / push_by_hours / push_by_days). The reply lists what moved under pushed. Posts going out within 15 minutes and LinkedIn posts with 'Also post to X' are never moved (PUSH_FAILED).",
      +  "enum": [
      +    "push"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / push_by_days
      Added value: +{
      +  "description": "Optional, with on_conflict: 'push': move by this many days.",
      +  "type": "number"
      +}
    • addedInput schema / properties / push_by_hours
      Added value: +{
      +  "description": "Optional, with on_conflict: 'push': move by this many hours.",
      +  "type": "number"
      +}
    • addedInput schema / properties / push_by_minutes
      Added value: +{
      +  "description": "Optional, with on_conflict: 'push': move the posts in the way by this many minutes instead of one slot.",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare openWorldHint and non-idempotent/non-destructive; the description adds a great deal beyond that — a hard 10-posts-per-UTC-day cap shared with LinkedIn cross-posts, the x_daily_limit refusal, at-most-once delivery where an unconfirmed post becomes 'unknown' and is never retried, 15-minute X slot conflicts, and the 5-minute publish_now cooldown. Timezone resolution and plan gates are also documented. The only reason it isn't a 5 is that the density of rules makes the failure taxonomy harder to internalize than a short enumerated list would.

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

Conciseness3/5

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

The important content is front-loaded — purpose, then gating, then limits — but the whole description is a single unbroken paragraph of roughly 300 words mixing operational constraints, failure codes, and sibling routing. Some parenthetical asides ("posting to X itself is on Pro and up in the dashboard and REST API", "the same as the dashboard") don't help an agent invoke the tool and could be cut.

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?

For a 15-parameter tool with nested objects and no output schema, this covers the gaps that matter: plan gating, account prerequisites, media rules, character/thread behavior, rate limits, idempotency semantics, and even what the reply or followups field will report (automation.state, pushed, followups). An agent has enough to call it correctly and interpret the result.

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, but the description adds real meaning beyond the schema: the timezone fallback chain (param → Settings timezone → UTC, with the reply stating which was used) and the fact that the daily cap is counted together with LinkedIn cross-posts. Nested automation and x_engagement behaviors are described largely in their schema descriptions, so the description's marginal contribution there is modest.

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?

Opens with a specific verb and resource plus an explicit scope boundary: "Posts to X (Twitter) only, with nothing going to LinkedIn." It then names the two modes (publish_now vs scheduled_for), so an agent can distinguish it from schedule_post_with_automation 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?

Gives explicit routing rules: use this for X-only, use schedule_post_with_automation with crosspost_x: true for LinkedIn+X together, and use manage_x_posts to list, edit or cancel. It also states preconditions (Pro+/Apex over MCP, X account connected in Settings) before the agent attempts a call.

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