Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

cancel_scheduled_post

DestructiveIdempotent

Cancel a scheduled post. DESTRUCTIVE: Requires confirm: true. Deletes post content and attachments permanently. Pre-automation templates are preserved and can be reused. Can only cancel pending 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": {
      "post_id": "<post_id>",
      "confirm": "<confirm>"
    },
    "name": "cancel_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.
confirmYesREQUIRED: Must be true to confirm cancellation. Post content and attachments will be deleted, but pre-automation templates are preserved.
post_idYesUUID of the scheduled post to cancel

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds the substantive detail an agent needs before acting: post content and attachments are deleted permanently, while pre-automation templates survive and remain reusable. That is exactly the consequence disclosure the lower bar for annotated tools calls for, and it is unambiguous about what cannot be recovered.

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

Conciseness5/5

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

Four short sentences, front-loaded with the verb and the destructive warning before the retention caveat and the eligibility constraint. Nothing is redundant: each sentence contributes either scope, consequence, or precondition.

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?

Covers the destructive scope, confirmation gate, and eligibility limit for a three-parameter mutation with full schema coverage and annotations. The only shortfall is that with no output schema it never indicates what a successful cancellation returns, which matters for reporting outcome to a user.

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

Parameters3/5

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

Schema coverage is 100%, so post_id and confirm are already documented, and the description only echoes the confirm requirement while restating the template-preservation fact. The act_as delegation semantics are left entirely to the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Cancel a scheduled post') that is immediately distinguishable from edit_scheduled_post, get_scheduled_post, and delete_automation_template. It also scopes the operation with 'Can only cancel pending posts', so the agent knows the target set. It stops short of explicitly contrasting itself with the sibling edit tool, which handles modifications rather than cancellation.

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 a clear eligibility rule ('Can only cancel pending posts') and a hard precondition ('Requires confirm: true'), both of which shape when the call will succeed. It does not name an alternative for the case where the post is not pending, or point to edit_scheduled_post when the user actually wants to change rather than remove a 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