Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

manage_x_posts

The user's X-only posts (made with schedule_x_post or in the dashboard): 'list' (newest first; filter by status), 'get' one, 'edit' a scheduled one (text, images, scheduled_for and/or its automation), or 'cancel' a scheduled one, or 'delete' a published one on X (destructive: needs confirm: true, ask the user first; it also ends that post's X automation and cancels its pending first comment / repost). Only posts with status 'scheduled' can be edited or cancelled; once sending has started the reply is a 409. Statuses: scheduled, sending, published (has x_post_url), failed (error_category / error_message say why), unknown (X didn't confirm it; never retried), cancelled. Cross-posts made with crosspost_x on a LinkedIn post are not listed here; they show on the LinkedIn post (list_scheduled_posts).

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_x_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoedit: new text.
limitNolist: posts 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', 'edit', 'cancel' or 'delete'.
offsetNolist: posts to skip (default 0).
statusNolist: only posts with this status.
confirmNodelete: must be true. Deleting an X post cannot be undone, so ask the user first.
timezoneNoedit: IANA timezone for a scheduled_for without an offset.
tweet_idNodelete: the post's id on X (any recent post from the user's connected X account). Or pass x_post_id for one LeadShark sent.
video_urlNoedit: one MP4 video by URL (up to 50 MB); it replaces the post's current images or video.
x_post_idNoget / edit / cancel (required): the X post id, from list or schedule_x_post. delete: this or tweet_id.
automationNoedit: set the X automation that starts when this scheduled post goes out (same fields as schedule_x_post's automation: keywords, resource_url, dm_template, send_dm, send_reply, reply_templates). The whole automation is replaced.
image_urlsNoedit: new images by URL (up to 20); they replace the post's current images.
on_conflictNoedit, with scheduled_for: 'push' makes room in a taken 15-minute slot (moving later: that slot's post to X and later ones move back; moving earlier: the posts in between each move back one slot). push_by_minutes / push_by_hours / push_by_days set the offset when moving later.
push_by_daysNoedit, with on_conflict: 'push': offset in days.
x_engagementNoedit: set (object) or turn off (null) the first comment and repost for this scheduled post (same fields as schedule_x_post's x_engagement).
push_by_hoursNoedit, with on_conflict: 'push': offset in hours.
scheduled_forNoedit: new time, ISO 8601 (same rules as schedule_x_post).
allow_duplicateNoedit: pass true to keep new text that another post to X on this account already has within 24 hours (otherwise refused with duplicate_post). Moving the post into a 15-minute slot another post to X already has is refused with TIME_CONFLICT, unless on_conflict: 'push'.
push_by_minutesNoedit, with on_conflict: 'push': offset in minutes.
remove_automationNoedit: true removes the automation from this scheduled post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / allow_duplicate
      Added value: +{
      +  "description": "edit: pass true to keep new text that another post to X on this account already has within 24 hours (otherwise refused with duplicate_post). Moving the post into a 15-minute slot another post to X already has is refused with TIME_CONFLICT, unless on_conflict: 'push'.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / on_conflict
      Added value: +{
      +  "description": "edit, with scheduled_for: 'push' makes room in a taken 15-minute slot (moving later: that slot's post to X and later ones move back; moving earlier: the posts in between each move back one slot). push_by_minutes / push_by_hours / push_by_days set the offset when moving later.",
      +  "enum": [
      +    "push"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / push_by_days
      Added value: +{
      +  "description": "edit, with on_conflict: 'push': offset in days.",
      +  "type": "number"
      +}
    • addedInput schema / properties / push_by_hours
      Added value: +{
      +  "description": "edit, with on_conflict: 'push': offset in hours.",
      +  "type": "number"
      +}
    • addedInput schema / properties / push_by_minutes
      Added value: +{
      +  "description": "edit, with on_conflict: 'push': offset in minutes.",
      +  "type": "number"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / action / description
      Previous value: -"'list' (default), 'get', 'edit' or 'cancel'."New value: +"'list' (default), 'get', 'edit', 'cancel' or 'delete'."
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "get",
      -  "edit",
      -  "cancel"
      -]New value: +[
      +  "list",
      +  "get",
      +  "edit",
      +  "cancel",
      +  "delete"
      +]
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "delete: must be true. Deleting an X post cannot be undone, so ask the user first.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / tweet_id
      Added value: +{
      +  "description": "delete: the post's id on X (any recent post from the user's connected X account). Or pass x_post_id for one LeadShark sent.",
      +  "type": "string"
      +}
    • changedInput schema / properties / x_post_id / description
      Previous value: -"get / edit / cancel (required): the X post id, from list or schedule_x_post."New value: +"get / edit / cancel (required): the X post id, from list or schedule_x_post. delete: this or tweet_id."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

The description discloses far more than the thin annotations: the 409 conflict on non-scheduled posts, the cascade of delete (ends the post's X automation and cancels its pending first comment/repost), duplicate_post and TIME_CONFLICT refusals, and the act_as permission/plan requirements. The only defect is that it labels delete "destructive" while destructiveHint is false, so the annotation under-declares rather than the description misstating behavior.

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?

Almost all content earns its place, but it is delivered as one sprawling sentence with nested parentheses and semicolons, making the action list and the status glossary hard to scan. A bulleted per-action structure would preserve the information at a fraction of the parsing cost.

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 21-parameter multi-action tool with no output schema, the description supplies the missing return semantics itself: the status vocabulary, that published posts carry x_post_url, and that failed posts expose error_category/error_message. An agent can pick an action, satisfy its preconditions, and interpret the result without further exploration.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, but the description still adds cross-parameter meaning the schema cannot: which params belong to which action, that scheduled_for + on_conflict:'push' together relocate conflicting slots, that allow_duplicate overrides the 24-hour duplicate rule, and that automation is wholly replaced rather than merged.

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 clause names the resource precisely ("the user's X-only posts") and enumerates the five supported verbs: list, get, edit, cancel, delete. It also distinguishes the resource from a sibling's data by stating that cross-posts made with crosspost_x are not listed here and live on the LinkedIn post instead.

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?

It states the preconditions for each action: "Only posts with status 'scheduled' can be edited or cancelled; once sending has started the reply is a 409", and delete requires confirm: true plus asking the user first. It routes the agent to alternatives where relevant (list_scheduled_posts for cross-posts, schedule_x_post for creating).

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