Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

edit_scheduled_post

DestructiveIdempotent

Update a scheduled post's content, scheduled time, @mentions, auto-reposts, or pre-automation settings. Can edit post copy, reschedule, retag people/companies, or modify automation keywords, templates, and settings. Can only edit pending posts (not published/failed) — except an update containing ONLY repost_after_hours, which also works on a published post to cancel its pending reposts. Rescheduling a Company Page post follows the page limit (at most 20 posts in any 24 hours): a time that breaks it is refused with code page_post_limit and details.next_free_time.

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_id": "<post_id>",
      "updates": "<updates>"
    },
    "name": "edit_scheduled_post"
  }
}

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.
post_idYesUUID of the scheduled post to edit
updatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / updates / properties / repost_after_hours / description
      Previous value: -"Replace the auto-repost selection (any of 4, 8, 12 hours after it goes live; [] = none). Each repost first removes the previous one, so only the latest stays live. Before the post publishes you can add or remove; after, you can only remove (cancel) pending reposts."New value: +"Replace the auto-repost selection (any of 4, 8, 12 hours after it goes live; [] = none). Reposts come from your personal profile, also for Company Page posts, which can additionally use 0 = right after it goes live. Each repost first removes the previous one, so only the latest stays live. Before the post publishes you can add or remove; after, you can only remove (cancel) pending reposts."
    • changedInput schema / properties / updates / properties / repost_after_hours / items / enum
      Previous value: -[
      -  4,
      -  8,
      -  12
      -]New value: +[
      +  0,
      +  4,
      +  8,
      +  12
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations that already declare destructive and idempotent behavior, the description discloses important side effects: retagging can replace mentions, rescheduling a Company Page post can be refused by page_post_limit, and the post's automation can be changed without altering the saved template. It also clarifies the pending-only constraint and the special repost cancellation case, which materially informs safe invocation.

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 description is front-loaded with the core action and then adds constraints and edge cases in a logical order. The second sentence partly repeats the first by listing post copy, reschedule, retag, and automation settings again, but overall it remains dense and useful rather than padded.

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 complex mutation tool with many nested parameters and no output schema, the description covers the major behavioral caveats: pending-only editing, the published-post repost exception, and Company Page rescheduling limits. It leaves authentication/delegation details and crosspost-specific behavior to the rich schema, which is reasonable, though a brief pointer to response or warning behavior would make it fully self-contained.

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?

The description adds useful meaning to the updates parameter by grouping what can be changed: content, scheduled_time, mentions, auto-reposts, and automation settings. It also clarifies the important repost_after_hours-only exception, though many nested fields such as act_as, timezone, crosspost_x, and x_automation are left to the already-descriptive schema.

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 and resource: updating a scheduled post's content, time, mentions, auto-reposts, or pre-automation settings. It enumerates the editable dimensions clearly enough for an agent to distinguish this from get_scheduled_post, cancel_scheduled_post, or edit_automation without reading sibling 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?

It explicitly states the main eligibility boundary: only pending posts can be edited, not published or failed ones. It then names the one exception for repost_after_hours on a published post and explains the Company Page rescheduling limit that can cause refusal, which is exactly the kind of when/when-not guidance an agent needs before calling.

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