Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

list_profile_viewers

Read-onlyIdempotent

Apex only. Who viewed your LinkedIn profile, newest first — the same list LinkedIn shows under "Who viewed your profile" (and the same data as GET /api/v1/profile-viewers). Each viewer has name, headline, profile_url, profile_picture_url, network_distance and viewed (LinkedIn's relative time, e.g. "2 days ago"). Anonymous viewers come back with is_anonymous: true and only a description in name (e.g. "Founder in the Consulting industry"). LinkedIn only shows viewers to Premium accounts: without Premium on the connected LinkedIn account you get premium_required. Pages of 10; pass pagination.cursor to get the next page. A profile view is a warm signal: run get_lead_activity on a named viewer before you DM or connect. Read-only.

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

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.
cursorNopagination.cursor from the previous page. Omit for the newest viewers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, yet the description adds material behavior: a hard Premium gate with a named error (premium_required), page size of 10, cursor-based continuation, and how anonymous viewers are represented. That is exactly the kind of context annotations cannot express.

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-loads the critical constraint ("Apex only") and the core definition, then layers return shape, errors, pagination and the recommended next step in a logical order. Dense but nearly every clause carries usable information; the parenthetical error example in name could be trimmed slightly.

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?

There is no output schema, so the description carries the full burden of return-value disclosure, and it delivers: enumerated viewer fields, the relative-time format of viewed, the anonymous-viewer shape, and the pagination model. Nothing an agent needs to call this correctly and interpret the result is missing.

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 both parameters are already documented, including act_as delegation rules. The description still contributes meaning the schema lacks: pagination.cursor is described functionally ("Pages of 10; pass pagination.cursor to get the next page") and omitting it returns the newest viewers.

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 ("Who viewed your LinkedIn profile") plus scope qualifiers: newest first, Apex-only, paginated, and a direct mapping to LinkedIn's own UI and the underlying endpoint. An agent can distinguish it from siblings like list_recent_connections or get_person_activity 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 concrete downstream workflow ("run get_lead_activity on a named viewer before you DM or connect") and states the eligibility gate (Premium required, otherwise premium_required). It doesn't name an explicit alternative for other viewer/engagement lookups, but the context needed to decide to call it is present.

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