Skip to main content
Glama

add_lead_message

Destructive

Record a channel message on a lead's communications timeline (LinkedIn/WhatsApp/Signal/email/note…). Required: lead_id, channel, body. Optional: direction ('inbound'|'outbound', default inbound), sent_at (ISO), sender, contact_id, external_chat_id, external_message_id, inbound_message_id (the id from list_inbound_messages: sender, sent_at, external_chat_id and external_message_id default to that message's values, and it then counts as assigned). If external_message_id is given and already stored, it is not duplicated (idempotent sync).

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": {
      "lead_id": "<lead_id>",
      "channel": "<channel>",
      "body": "<body>"
    },
    "name": "add_lead_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesBody text
senderNoSender of the message; defaults to the linked inbound message's sender
channelYesChannel of the message, e.g. linkedin, whatsapp, email or note
lead_idYesID of the lead
sent_atNoSent time (ISO 8601)
directionNoinbound or outbound (default inbound)
contact_idNoID of the contact
external_chat_idNoID of the external chat
inbound_message_idNoid of a message from list_inbound_messages; marks it assigned
external_message_idNoID of the external message

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"Body text"
    • addedInput schema / properties / channel / description
      Added value: +"Channel of the message, e.g. linkedin, whatsapp, email or note"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / direction / description
      Added value: +"inbound or outbound (default inbound)"
    • addedInput schema / properties / external_chat_id / description
      Added value: +"ID of the external chat"
    • addedInput schema / properties / external_message_id / description
      Added value: +"ID of the external message"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
    • addedInput schema / properties / sender / description
      Added value: +"Sender of the message; defaults to the linked inbound message's sender"
    • addedInput schema / properties / sent_at / description
      Added value: +"Sent time (ISO 8601)"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare it is a non-read-only, destructive-flagged write, so the description is not carrying the safety burden alone. It adds real behavior beyond the annotations: inbound_message_id auto-fills sender/sent_at/external ids and marks that message assigned, and a repeated external_message_id is deduplicated rather than duplicated. The dedup note is consistent with idempotentHint=false because calls without external_message_id still create new records; it leaves unclear whether the annotated 'destructive' aspect refers to anything being overwritten.

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

Conciseness5/5

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

Purpose is front-loaded in the first clause, followed by required vs optional and then the two non-obvious behaviors. Dense but every clause carries distinct information; no 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?

Covers purpose, required/optional params, defaults, side effects and dedup for a 10-parameter write tool with no output schema. It does not say what the call returns (e.g. the created message id) or whether adding a message triggers classification or sync, which would help an agent chain follow-up calls.

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, but the description adds cross-parameter semantics the schema cannot express: which three fields the inbound_message_id implies, what the direction default means, and the idempotency key for external_message_id. Minor gaps remain, e.g. accepted ISO format nuance and whether contact_id is required to attribute the message.

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 ('Record a channel message on a lead's communications timeline') and enumerates the channel universe. An agent can distinguish it from siblings like list_lead_messages, ingest_message, or add_record_note 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 Guidelines4/5

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

Gives clear context for use (logging an already-happened message on a lead timeline) and explicitly routes the inbound case through list_inbound_messages, whose id is passed as inbound_message_id. It stops short of naming when to prefer this over ingest_message or bot_inbound_message, and doesn't state prerequisites like which channel values the lead actually has.

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.