Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

edit_automation

DestructiveIdempotent

Update an automation. Can change its name, status (Running/Paused/Draft), keywords, DM templates, comment replies, repost DM / repost replies, and all settings. Only include fields you want to change — this is a partial update, so a keywords: [] automation stays keywords: [] unless you send keywords.

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_id": "<automation_id>",
      "updates": "<updates>"
    },
    "name": "edit_automation"
  }
}

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.
updatesYes
automation_idYesUUID of the automation to edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, so the mutation risk baseline is covered; the description adds the non-obvious partial-merge semantics that annotations cannot convey — omitted fields are preserved, and a stored empty keywords list stays empty. It does not spell out auth/permission requirements or what the response returns, but the merge behavior is the highest-value disclosure for this tool.

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?

Two sentences, front-loaded with the action, then the one rule that governs correct invocation, illustrated with a single example. The field enumeration is dense but reads as a scope inventory rather than filler.

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 destructive, idempotent patch tool on a nested object with no output schema, the description covers the essential contract (partial update, merge-not-replace). It leaves the return shape and permission/plan requirements to the schema's act_as documentation, which is reasonable given that field's own thorough description.

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 67% and the nested updates object is heavily self-documented, so the structured data already carries most field-level meaning. The description still adds genuine semantics beyond the schema: the send-only-what-changes contract and the explicit consequence for keywords, which is exactly the mistake an agent would otherwise make with a nested patch object.

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 and resource ("Update an automation") and immediately enumerates the mutable surfaces: name, status, keywords, DM templates, comment replies, repost DM/repost replies, and settings. That enumeration lets an agent distinguish it from create_automation, get_automation, and the template-management siblings without opening a schema.

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, actionable usage rule: "Only include fields you want to change — this is a partial update," backed by a concrete example ("a keywords: [] automation stays keywords: [] unless you send keywords"). It stops short of naming alternatives (e.g. when to use manage_automation_templates or suggest_automation_settings instead), so it stops at 4.

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