Skip to main content
Glama

Write a LinkedIn message to a contact or in a conversation (two steps)

send_message
Destructive

Write a LinkedIn direct message to one of your own contacts, or reply in one of your own conversations (including people who are not leads), in two calls. Without confirm_token it only previews and changes nothing: it checks the account's limits, the do-not-contact list, whether the person has replied (refused unless allow_after_reply is true), whether they asked to stop (always refused), and today's cap, then returns the recipient, the exact text and a single-use confirm_token (valid 10 minutes, tied to this account, this contact or conversation, and this exact text). Show the person the preview and get a clear yes. With that confirm_token it queues the message. ZenMode's desktop app then sends it inside business hours, spaced at least 90 seconds to 3 minutes from the account's previous action, only while the app is open. Nothing is sent at the moment you call this. Give exactly one recipient: a contact_id from search_contacts, or a conversation_id from list_conversations (group conversations are refused).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYesThe exact text, as the person approved it.
contact_idNoThe contact id, from search_contacts or get_contact. Give this or conversation_id, not both.
confirm_tokenNoThe confirm_token from the preview. Leave out to preview.
conversation_idNoA conversation id, from list_conversations or get_conversation, to reply in it. Give this or contact_id, not both.
idempotency_keyNoOptional. A unique string you make up for this exact change (8 to 128 letters, digits, - _ . :). If the call is repeated with the same key and the same arguments within 24 hours, nothing happens twice and the first result is returned again. Use a fresh key for every new change.
allow_after_replyNotrue only when the person is deliberately answering someone who replied. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / contact_id / description
      Previous value: -"The contact id, from search_contacts or get_contact."New value: +"The contact id, from search_contacts or get_contact. Give this or conversation_id, not both."
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "A conversation id, from list_conversations or get_conversation, to reply in it. Give this or contact_id, not both.",
      +  "maxLength": 1000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "contact_id",
      -  "message"
      -]New value: +[
      +  "message"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Far beyond the annotations: it lists every pre-check (limits, do-not-contact, prior reply, stop request, daily cap), states that nothing is sent at call time, and describes the real send path (desktop app, business hours, 90s–3min spacing, app must be open). The only gap is that it never mentions idempotency_key, so the schema-level idempotency contract is unexplained in prose.

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 two-step contract and the no-op-without-token guarantee, then the checks, then the asynchronous send path. Dense and mostly waste-free, though the single paragraph would read better split, and the ZenMode timing detail is a long clause.

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?

For a destructive, two-phase, open-world-adjacent mutation with no output schema, it covers what the preview returns, what the token binds to, how the eventual send happens, and what gets refused. Nothing an agent needs in order to call it correctly 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 already 100%, but the description still adds value: it ties contact_id and conversation_id to their lookup tools, notes mutual exclusivity and refusal of group conversations, and explains the token's single-use, 10-minute, account/recipient/text-bound semantics. It does not add meaning for idempotency_key or the message length bounds.

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 (write a LinkedIn direct message), the eligible targets (own contacts or own conversations, including non-leads), and the two-call structure. An agent can distinguish it from validate_message or campaign tools without opening the 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?

Explicitly names the source tools for each identifier (contact_id from search_contacts, conversation_id from list_conversations), forbids group conversations, defines the allow_after_reply exception, and prescribes the workflow: preview, show the person, get a clear yes, then call again with the token.

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.