Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

set_automations_status

Idempotent

Pause or resume many automations in ONE call (up to 100): pass automation_ids (from list_automations) and status "Paused" or "Running". Use this instead of calling edit_automation once per automation, e.g. "pause all my automations on posts older than 30 days". Resuming follows the same rules as one automation: the resumed set must fit the plan's running-automation limit on its own (otherwise code over_running_limit, nothing changes), and the oldest OTHER running automations are paused to make room (listed in paused_to_make_room). An automation whose text still contains {{link}} is not started (needs_link). Only Running and Paused automations are switched; drafts and ones waiting for the next post are skipped. Returns updated, unchanged (already in that status), not_found, skipped, needs_link and paused_to_make_room. Confirm with the user before resuming many automations: resuming starts DMs again.

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": {
      "automation_ids": "<automation_ids>",
      "status": "<status>"
    },
    "name": "set_automations_status"
  }
}

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.
statusYes"Paused" stops them; "Running" resumes them.
automation_idsYesAutomation ids (from list_automations), 1-100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that resuming must fit the plan's running-automation limit, that exceeding it returns over_running_limit with nothing changed, and — most importantly — that resuming pauses OTHER running automations to make room (paused_to_make_room), a side effect the destructiveHint=false annotation alone would not convey. It also documents the {{link}}/needs_link skip and that drafts and wait-for-next-post automations are untouched. It falls short of 5 only because it doesn't say whether the operation is atomic across the batch beyond the over_running_limit case, and rate-limit behavior for up to 100 ids is unstated.

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 core action and batch limit are front-loaded in the first clause, and the subsequent sentences each carry a distinct operational rule (limit, side effect, skip categories, return keys, confirmation). It is dense rather than padded, though the run-on chains of parenthetical error/skip codes could be tightened without losing information.

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?

With no output schema, the description compensates by enumerating the returned fields (updated, unchanged, not_found, skipped, needs_link, paused_to_make_room) and tying them to concrete conditions. Combined with the side-effect and confirmation guidance, an agent has everything needed to call this correctly for a batch mutation.

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 meaning about what the ids actually do: which automations in the passed set get switched (Running/Paused only, drafts and next-post-waiting ones skipped) and which will be reported back as needs_link or unchanged. That clarifies the effective semantics of automation_ids beyond a bare array of strings.

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?

States a specific verb pair (pause/resume) plus the resource (automations) and the batch scope (ONE call, up to 100), and explicitly contrasts with edit_automation called once per automation. The agent can identify this tool as the bulk equivalent of a sibling 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?

Names the alternative (edit_automation one-at-a-time) and the condition that selects this tool, gives a concrete caller-style example ("pause all my automations on posts older than 30 days"), and adds a human-in-the-loop rule: confirm before resuming because resuming starts DMs again.

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