Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

icp_fit

Read-onlyIdempotent

The DECIDE step — "who here is my ideal customer?". Judges people's name + headline against the account's one-line ICP (Settings → Ideal Customer) and labels each fit / adjacent / not with a 0-100 position and a confidence — the same judge the Leads page and the automation follow-up gate use. Two modes. (1) post_id (Apex): pass a post_id from list_person_posts / list_recent_posts and the server pulls everyone who commented or reacted, dedupes them and judges them all in ONE call — use this for "pull X's latest post, who engaged, and who is my ICP?" instead of calling list_post_engagers and echoing headlines back. Each person comes back with name, headline, network_distance, signals[] (how they engaged; comment signals carry the full comment text plus comment_id) and an id you can act with. (2) people[] (Pro+): judge up to 100 people you already have as { id, name, headline } (from search, list_signals, enrich); ids are echoed back untouched. Stateless, read-only. If the account has no ICP line you get code no_icp: ask the user for one sentence and pass it as icp, or point them to /dashboard/icp-settings to save it. Present people by name + headline, never by id. Act on fits via get_lead_activity → send_connection_request / send_message (writes — confirm first).

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": "icp_fit"
  }
}

Input Schema

NameRequiredDescriptionDefault
icpNoOptional one-line ICP to judge against instead of the saved one (≤ 280 chars). Use when the account has none, or to test a wording.
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.
peopleNoPeople to judge (1-100) when you are not starting from a post. Use the provider id / member_urn / slug as id so you can act on the result.
post_idNoA post URN (urn:li:activity:…), bare id, or post URL. Judges everyone who commented or reacted. Apex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint/openWorldHint, but the description adds what they cannot: server-side dedupe of commenters and reactors in a single call, statelessness, plan gating per mode (Apex vs Pro+), and a specific error contract (code no_icp with two remedies: pass `icp` or point at /dashboard/icp-settings). It also flags that people lacking a headline return "unreadable" and that write actions downstream require confirmation.

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?

Front-loaded with the identity and the two numbered modes, and it uses parentheses and arrows to compress a lot of routing information. It is on the long side — the act-on-fits sentence and the post_id restatement of what the server pulls partly overlap — but nearly every clause carries operational information rather than filler.

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 carries the return-shape burden and does: name, headline, network_distance, signals[] (comment signals with full text and comment_id), and a usable id. It also covers the empty-ICP failure path and the downstream write path, leaving nothing an agent needs absent in order to call this correctly.

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; the description earns above that by adding semantics the schema doesn't — that post_id judges everyone who commented or reacted and dedupes them, that people[] ids are echoed back untouched so they can be acted on, and the no-ICP fallback for `icp`. It stops short of explaining act_as or the 1-100 boundary tradeoffs, which remain schema-only.

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 in the first clause — judging people's name + headline against the account's one-line ICP — and names its output taxonomy (fit / adjacent / not, 0-100 position, confidence). It explicitly distinguishes itself from the sibling it would otherwise be confused with (list_post_engagers), so an agent can route 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?

Gives an explicit two-mode decision: post_id (Apex) for "pull X's latest post, who engaged, and who is my ICP?" versus people[] (Pro+) for people already in hand. It names the alternatives it replaces (list_post_engagers, search, list_signals, enrich) and states the follow-on path (get_lead_activity → send_connection_request / send_message, confirm first).

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