Skip to main content
Glama

LeadShark Apex: LinkedIn MCP

list_recent_messages

Read-onlyIdempotent

Apex only. List your LinkedIn DM threads (conversations), newest first — each with the other person’s name, headline, and profile url, last-message preview, last_message_from_me (true = you sent the last message / they went quiet; false = they wrote last / you never answered), when it was sent, unread count, chat_id, provider id, and icp_fit (fit | maybe = Adjacent | not | null — from your saved ICP line; null if none is saved). Use it to triage who to reply to or revive. Optional filters (applied to the fetched page; over-fetches up to 50 then returns up to limit): last_from ("me"|"them"), quiet_for_days (e.g. 7 = last message older than 7 days), icp (fit|maybe|not|none). Response includes scanned (threads checked on this page) and notes (e.g. no ICP line saved). PAGINATED: pass next_cursor back as cursor for older threads (null = nothing older) — a weekly revival sweep pages until it has enough. 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_recent_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
icpNoOnly threads whose other person has this ICP label (fit|maybe|not), or "none" for unlabelled.
limitNoThreads to return after filters (1-50, default 20).
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 a previous response’s next_cursor — returns the next (older) page of threads.
last_fromNoOnly threads whose last message was from you ("me" = they went quiet) or from them ("them" = you never answered).
quiet_for_daysNoOnly threads whose last message is at least this many days old (e.g. 7).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the description doesn't need to re-establish safety. It still adds real behavioral detail beyond them: filters are applied post-fetch with over-fetch up to 50 then truncation to limit, the response carries 'scanned' and 'notes', a null next_cursor means nothing older exists, and access is gated to Apex.

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?

It is front-loaded with purpose and output fields, then filters, then pagination, with caps and dashes doing structural work. It is dense and long for one paragraph, and the response-field enumeration is slightly sprawling, but essentially every clause carries information an agent needs.

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 takes on the burden of describing return values and does so field by field, including the derived icp_fit and the scanned/notes metadata. Combined with pagination semantics and the Apex gating note, an agent has everything needed 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, and the description earns above that by explaining mechanics the schema cannot: filters operate on the fetched page rather than server-side, and quiet_for_days means 'last message older than N days'. It also clarifies the 'null ICP' case that the enum's 'none' value only partially conveys.

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?

The description opens with a specific verb and resource ('List your LinkedIn DM threads (conversations), newest first') and immediately enumerates the per-thread fields returned, so an agent knows exactly what this produces. It implicitly separates itself from per-conversation retrieval like get_messages_with_person by framing the output as a triage list, but it never names an alternative explicitly.

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?

It states the intended job plainly ('Use it to triage who to reply to or revive') and gives a concrete workflow for the paginated case ('a weekly revival sweep pages until it has enough'). What's missing is any negative guidance — when to reach for get_messages_with_person or icp_fit instead of filtering here.

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