Skip to main content
Glama
EgiStr

linkedin-mcp

by EgiStr

Send a LinkedIn Message (Partner API)

linkedin_send_message

Send a direct message to a LinkedIn member using their member ID and message text. Note: requires LinkedIn's Messaging API partner program; otherwise returns a clear error explaining the limitation.

Instructions

Send a direct message to a LinkedIn member.

⚠️ NOTE: This tool is NOT available with standard OAuth apps. Direct messaging requires LinkedIn's Messaging API (partner program).

This tool returns a clear error message explaining the limitation.

Args:

  • recipient_id (string, required): LinkedIn member ID of the recipient

  • text (string, required): Message text (1-2000 chars)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesMessage text content
recipient_idYesLinkedIn member ID of the recipient
response_formatNoOutput format: 'markdown' for human-readable or 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations by warning that the tool is not available with standard OAuth apps and that it will return a clear error message explaining the limitation. This is valuable because it sets expectations that the call may fail in the current auth context. No contradiction with the annotations exists.

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 description is well-structured: purpose first, then an important warning, then a note about error behavior, then parameters. The Args section is somewhat redundant with the schema, but the overall layout is scannable and free of unnecessary 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 tool with three flat params and no output schema, the description covers the parameters, required auth access, limitation behavior, and output format. It does not describe the shape of a successful response, but given the explicit statement that an error message will be returned under the common standard-OAuth setup, the context is adequately complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters. The Args block restates the same information with only minor formatting details, such as '1-2000 chars', which duplicates the schema constraints. It adds no new semantic guidance like recipient ID format examples or message encoding details.

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?

The description begins with a specific verb and resource: 'Send a direct message to a LinkedIn member.' This clearly distinguishes it from sibling tools like linkedin_create_post or linkedin_get_feed, which operate on different resources or actions.

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?

The description clearly states the critical prerequisite: standard OAuth apps cannot use this tool, and Messaging API partner access is required. This tells the agent when the tool cannot be used, though it does not explicitly name alternative tools or direct the agent to alternatives when unavailable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EgiStr/linkedin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server