Skip to main content
Glama

nv_send_message

Send personalized messages to LinkedIn Sales Navigator contacts by specifying their profile URL, message text, and subject line, integrated with the Linked API MCP server.

Instructions

Allows you to send a message to a person in Sales Navigator (nv.sendMessage action)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
personUrlYesLinkedIn URL of the person you want to send a message to (e.g., 'https://www.linkedin.com/in/john-doe')
subjectYesSubject line, must be up to 80 characters.
textYesThe message text, must be up to 1900 characters.

Implementation Reference

  • Core execution handler for the nv_send_message tool. Locates the LinkedAPI operation by operationName ('nvSendMessage') and executes it with progress reporting.
    public override execute({ linkedapi, args, workflowTimeout, progressToken, }: { linkedapi: LinkedApi; args: TParams; workflowTimeout: number; progressToken?: string | number; }): Promise<TMappedResponse<TResult>> { const operation = linkedapi.operations.find( (operation) => operation.operationName === this.operationName, )! as Operation<TParams, TResult>; return executeWithProgress(this.progressCallback, operation, workflowTimeout, { params: args, progressToken, }); }
  • Zod input validation schema specific to nv_send_message parameters.
    protected override readonly schema = z.object({ personUrl: z.string(), text: z.string().min(1), subject: z.string().optional(), });
  • Instantiation and registration of the NvSendMessageTool in the LinkedApiTools collection.
    new NvSendMessageTool(progressCallback),
  • Specific implementation of NvSendMessageTool, including name, operationName, schema, and MCP Tool definition with inputSchema.
    export class NvSendMessageTool extends OperationTool<TNvSendMessageParams, unknown> { public override readonly name = 'nv_send_message'; public override readonly operationName = OPERATION_NAME.nvSendMessage; protected override readonly schema = z.object({ personUrl: z.string(), text: z.string().min(1), subject: z.string().optional(), }); public override getTool(): Tool { return { name: this.name, description: 'Allows you to send a message to a person in Sales Navigator (nv.sendMessage action)', inputSchema: { type: 'object', properties: { personUrl: { type: 'string', description: "LinkedIn URL of the person you want to send a message to (e.g., 'https://www.linkedin.com/in/john-doe')", }, text: { type: 'string', description: 'The message text, must be up to 1900 characters.', }, subject: { type: 'string', description: 'Subject line, must be up to 80 characters.', }, }, required: ['personUrl', 'text', 'subject'], }, }; } }

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/Linked-API/linkedapi-mcp'

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