Skip to main content
Glama

Send message

messages_send

Send message

201 for a new send. A replay of an Idempotency-Key returns the original result with 200.

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": {
      "target": "<target>"
    },
    "name": "messages_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
richNo
routeNoHow a first message opens its conversation, such as `inmail` or `salesNavigator` on LinkedIn. Sent that way or refused, never another way: a route the platform doesn't have fails with `contentRejected`, and one this account link can't take to the recipient now fails with `recipientUnavailable`. Without it the message takes the platform's preferred route. Refused on a conversation that already exists. Needs the Advanced API add-on.
targetYes
contentNoUp to the platform's `limits.characters`. Longer content fails with `contentRejected`.
subjectNoHeads a first message on a route that takes a subject, such as `salesNavigator`, which requires one, or `inmail`, where it is optional when LinkedIn offers one. Without it, a route that requires one fails with `contentRejected`. Ignored on replies.
idempotencyKeyNoMakes retries safe: a replay with the same key and body returns the original message. Scoped to the team.
replyToMessageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / $defs / SendContact
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "addresses": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "birthday": {
      +      "description": "`YYYY-MM-DD`, or `--MM-DD` without a year.",
      +      "examples": [
      +        "1815-12-10",
      +        "--12-10"
      +      ],
      +      "type": "string"
      +    },
      +    "emails": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "organization": {
      +      "type": "string"
      +    },
      +    "phones": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "label": {
      +            "type": "string"
      +          },
      +          "number": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "number"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "title": {
      +      "type": "string"
      +    },
      +    "urls": {
      +      "items": {
      +        "description": "An `http` or `https` URL.",
      +        "examples": [
      +          "https://example.com"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "phones"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / $defs / SendRich
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": false,
      +      "description": "Needs `message:poll`.",
      +      "properties": {
      +        "multiple": {
      +          "allOf": [
      +            {
      +              "description": "Whether a voter may pick several options. Defaults to false."
      +            }
      +          ],
      +          "type": "boolean"
      +        },
      +        "options": {
      +          "description": "At least 2, each different.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "question": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "poll"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "question",
      +        "options"
      +      ],
      +      "title": "Poll",
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "description": "Needs `message:event`.",
      +      "properties": {
      +        "description": {
      +          "type": "string"
      +        },
      +        "endsAt": {
      +          "allOf": [
      +            {
      +              "description": "After `startsAt`."
      +            }
      +          ],
      +          "examples": [
      +            "2026-09-14T10:00:00.000Z"
      +          ],
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "joinLink": {
      +          "type": "string"
      +        },
      +        "location": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "startsAt": {
      +          "examples": [
      +            "2026-09-14T10:00:00.000Z"
      +          ],
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "event"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "name",
      +        "startsAt"
      +      ],
      +      "title": "Event",
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "description": "Needs `message:contact`.",
      +      "properties": {
      +        "contacts": {
      +          "description": "At least 1. Each card needs a name and a phone number.",
      +          "items": {
      +            "$ref": "#/$defs/SendContact"
      +          },
      +          "type": "array"
      +        },
      +        "type": {
      +          "enum": [
      +            "contacts"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "contacts"
      +      ],
      +      "title": "Contacts",
      +      "type": "object"
      +    },
      +    {
      +      "additionalProperties": false,
      +      "description": "Needs `message:location`.",
      +      "properties": {
      +        "address": {
      +          "type": "string"
      +        },
      +        "latitude": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "enum": [
      +                "Infinity",
      +                "-Infinity",
      +                "NaN"
      +              ],
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "longitude": {
      +          "anyOf": [
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "enum": [
      +                "Infinity",
      +                "-Infinity",
      +                "NaN"
      +              ],
      +              "type": "string"
      +            }
      +          ]
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "enum": [
      +            "location"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "type",
      +        "latitude",
      +        "longitude"
      +      ],
      +      "title": "Location",
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Sent alone in place of `content`. Content the platform can't carry fails with `contentRejected`."
      +}
    • addedInput schema / properties / rich
      Added value: +{
      +  "$ref": "#/$defs/SendRich",
      +  "type": "object"
      +}
    • changedInput schema / properties / route / description
      Previous value: -"How a first message opens its conversation, one of the `route` values `reachability.routes` lists for the recipient, such as `inmail` or `salesNavigator` on LinkedIn. Sent that way or refused, never another way. Without it the message takes the first route. Refused on a conversation that already exists. Needs the Advanced API add-on."New value: +"How a first message opens its conversation, such as `inmail` or `salesNavigator` on LinkedIn. Sent that way or refused, never another way: a route the platform doesn't have fails with `contentRejected`, and one this account link can't take to the recipient now fails with `recipientUnavailable`. Without it the message takes the platform's preferred route. Refused on a conversation that already exists. Needs the Advanced API add-on."
    • changedInput schema / properties / subject / description
      Previous value: -"Heads a first message on a route that takes a subject; required where the route's `subject` is `required`. Ignored on replies."New value: +"Heads a first message on a route that takes a subject, such as `salesNavigator`, which requires one, or `inmail`, where it is optional when LinkedIn offers one. Without it, a route that requires one fails with `contentRejected`. Ignored on replies."
    • changedInput schema / required
      Previous value: -[
      -  "target",
      -  "content"
      -]New value: +[
      +  "target"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / route
      Added value: +{
      +  "description": "How a first message opens its conversation, one of the `route` values `reachability.routes` lists for the recipient, such as `inmail` or `salesNavigator` on LinkedIn. Sent that way or refused, never another way. Without it the message takes the first route. Refused on a conversation that already exists. Needs the Advanced API add-on.",
      +  "enum": [
      +    "inmail",
      +    "sponsored",
      +    "offer",
      +    "sms",
      +    "bot",
      +    "salesNavigator"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / subject
      Added value: +{
      +  "description": "Heads a first message on a route that takes a subject; required where the route's `subject` is `required`. Ignored on replies.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / $defs / Platform / description
      Previous value: -"The platform. Every team can use twitter, linkedin, whatsapp; a team may have others enabled."New value: +"The platform. Every team can use twitter, linkedin, whatsapp, telegram; a team may have others enabled."
    • changedInput schema / $defs / Platform / examples
      Previous value: -[
      -  "twitter",
      -  "linkedin",
      -  "whatsapp"
      -]New value: +[
      +  "twitter",
      +  "linkedin",
      +  "whatsapp",
      +  "telegram"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / target / type
      Added value: +"object"
  5. Changed2 schema fields changed
    • changedInput schema / $defs / Platform / description
      Previous value: -"The platform. Every team can use twitter, linkedin; a team may have others enabled."New value: +"The platform. Every team can use twitter, linkedin, whatsapp; a team may have others enabled."
    • changedInput schema / $defs / Platform / examples
      Previous value: -[
      -  "twitter",
      -  "linkedin"
      -]New value: +[
      +  "twitter",
      +  "linkedin",
      +  "whatsapp"
      +]
  6. Changed2 schema fields changed
    • changedInput schema / $defs / Platform / description
      Previous value: -"The platform. Every team can use twitter; a team may have others enabled."New value: +"The platform. Every team can use twitter, linkedin; a team may have others enabled."
    • changedInput schema / $defs / Platform / examples
      Previous value: -[
      -  "twitter"
      -]New value: +[
      +  "twitter",
      +  "linkedin"
      +]
  7. Changed1 schema field changed
    • changedInput schema / properties / target / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "description": "An existing thread.",
      -    "properties": {
      -      "threadId": {
      -        "$ref": "#/$defs/Cuid2"
      -      },
      -      "type": {
      -        "enum": [
      -          "thread"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "threadId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "The contact's profile on the account link's platform, in its existing thread or a new one. Fails with `recipientUnavailable` when the contact has none there, and `profileAmbiguous` when it has several.",
      -    "properties": {
      -      "accountLinkId": {
      -        "allOf": [
      -          {
      -            "$ref": "#/$defs/Cuid2"
      -          },
      -          {
      -            "description": "The account link to send from."
      -          }
      -        ]
      -      },
      -      "contactId": {
      -        "$ref": "#/$defs/Cuid2"
      -      },
      -      "type": {
      -        "enum": [
      -          "contact"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "accountLinkId",
      -      "contactId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "A platform user, in its existing thread or a new one. Without the Advanced API add-on, the profile must already belong to one of the team's contacts.",
      -    "properties": {
      -      "accountLinkId": {
      -        "allOf": [
      -          {
      -            "$ref": "#/$defs/Cuid2"
      -          },
      -          {
      -            "description": "The account link to send from."
      -          }
      -        ]
      -      },
      -      "platform": {
      -        "allOf": [
      -          {
      -            "$ref": "#/$defs/Platform"
      -          },
      -          {
      -            "description": "Must be the account link's platform."
      -          }
      -        ]
      -      },
      -      "platformId": {
      -        "description": "The ID the platform gives this object. Only meaningful next to its `platform`.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "enum": [
      -          "profile"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "accountLinkId",
      -      "platform",
      -      "platformId"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "An existing thread.",
      +    "properties": {
      +      "threadId": {
      +        "$ref": "#/$defs/Cuid2"
      +      },
      +      "type": {
      +        "enum": [
      +          "thread"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "threadId"
      +    ],
      +    "title": "Thread",
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "The contact's profile on the account link's platform, in its existing thread or a new one. Fails with `recipientUnavailable` when the contact has none there, and `profileAmbiguous` when it has several.",
      +    "properties": {
      +      "accountLinkId": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Cuid2"
      +          },
      +          {
      +            "description": "The account link to send from."
      +          }
      +        ]
      +      },
      +      "contactId": {
      +        "$ref": "#/$defs/Cuid2"
      +      },
      +      "type": {
      +        "enum": [
      +          "contact"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "accountLinkId",
      +      "contactId"
      +    ],
      +    "title": "Contact",
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A platform user, in its existing thread or a new one. Without the Advanced API add-on, the profile must already belong to one of the team's contacts.",
      +    "properties": {
      +      "accountLinkId": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Cuid2"
      +          },
      +          {
      +            "description": "The account link to send from."
      +          }
      +        ]
      +      },
      +      "platform": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Platform"
      +          },
      +          {
      +            "description": "Must be the account link's platform."
      +          }
      +        ]
      +      },
      +      "platformId": {
      +        "description": "The person's ID on the platform. Reaching someone Inboxapp hasn't stored needs the account link's `profile:resolve:id`.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "enum": [
      +          "profile"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "accountLinkId",
      +      "platform",
      +      "platformId"
      +    ],
      +    "title": "Profile by platform ID",
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "A platform user, in its existing thread or a new one. Without the Advanced API add-on, the profile must already belong to one of the team's contacts.",
      +    "properties": {
      +      "accountLinkId": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Cuid2"
      +          },
      +          {
      +            "description": "The account link to send from."
      +          }
      +        ]
      +      },
      +      "platform": {
      +        "allOf": [
      +          {
      +            "$ref": "#/$defs/Platform"
      +          },
      +          {
      +            "description": "Must be the account link's platform."
      +          }
      +        ]
      +      },
      +      "type": {
      +        "enum": [
      +          "profile"
      +        ],
      +        "type": "string"
      +      },
      +      "username": {
      +        "description": "The person's username on the platform, without a display prefix such as `@`. On LinkedIn, what follows `/in/` in their profile URL: the vanity name or the `ACoA…` profile ID. Reaching someone Inboxapp hasn't stored needs the account link's `profile:resolve:username`.",
      +        "examples": [
      +          "jane",
      +          "ACoAABcdEfGh1234567890"
      +        ],
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "accountLinkId",
      +      "platform",
      +      "username"
      +    ],
      +    "title": "Profile by username",
      +    "type": "object"
      +  }
      +]
  8. First observed

TDQS

C2.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, destructiveHint=false, and idempotentHint=false. The description adds genuine value beyond that by disclosing the 201-for-new-send and 200-for-replay contract, which clarifies how retries behave. However, it omits behavioral context an agent needs for a send operation, such as permission/add-on requirements or the failure modes (contentRejected, recipientUnavailable, profileAmbiguous) that are only visible in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, with no padding. But the first sentence merely duplicates the title, spending the prime opening slot on zero information. The status-code sentence is the only substantive content and is placed well.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter send tool with nested target variants, a content/rich mutual exclusion, and no output schema, this description is far too thin. It never mentions the required target, the content-versus-rich choice, or the failure semantics. An agent would have to read the entire schema to call this correctly, and the description supplies almost none of that context.

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

Parameters2/5

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

Schema coverage is 57%, and the schema itself richly documents target variants, content limits, route, subject, and idempotencyKey. The description's only parameter-related content is the Idempotency-Key replay behavior, which the schema already explains in detail. It adds essentially no meaning beyond what the input schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Send message', which is a verbatim restatement of the title and tool name rather than an elaboration of what the tool does. The only additional sentence covers HTTP status codes for new sends versus idempotent replays, not the purpose. It gives no basis for distinguishing this from siblings like messages_edit, messages_react, or messages_unsend.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: nothing says to prefer this over messages_edit for changing a message, or over messages_react for reactions. The idempotency-key replay note implicitly hints that retries should reuse a key, but that is an inference, not stated guidance. No prerequisites or exclusions are given.

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