Skip to main content
Glama

Send Message

send_message

Send Markdown messages to one or more agents and persist canonical and mailbox copies to Git for auditable collaboration.

Instructions

Send a Markdown message to one or more recipients and persist canonical and mailbox copies to Git.

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": {
      "project_key": "<project_key>",
      "sender_name": "<sender_name>",
      "to": "<to>",
      "subject": "<subject>",
      "body_md": "<body_md>"
    },
    "name": "send_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoAdditional recipients by name.
toYesPrimary recipients (agent names). At least one of to/cc/bcc must be non-empty.
bccNoAdditional recipients by name.
topicNoOptional topic tag (max 64 chars). Must start with a letter or digit and may otherwise contain alphanumerics, '.', '_', or '-' — so beads_rust hierarchical IDs like ``br-abc.1`` can be used verbatim. Stored on the message for topic-based filtering via fetch_inbox(topic=...) or fetch_topic().
formatNo
body_mdYesGitHub-Flavored Markdown body. Image references can be file paths or data URIs.
subjectYesShort subject line that will be visible in inbox/outbox and search results.
broadcastNoIf true and `to` is empty, expand recipients to all registered agents in the project (excluding the sender). Mutually exclusive with explicit `to` recipients. Respects contact_policy settings and is best-effort across contact boundaries: expanded recipients that are retired, set ``block_all``, or would need contact approval are skipped rather than blocking the send, and are reported in ``broadcast_skipped`` (``[{"agent": name, "reason": ...}]``). No contact request is created for them — request contact explicitly if you want them included. ``auto_contact_if_blocked`` therefore never fires for broadcast-expanded recipients; it still applies to explicitly named ``to``/``cc``/``bcc`` names.
thread_idNoIf provided, message will be associated with an existing thread.
importanceNoOne of {"low","normal","high","urgent"} (free form tolerated; used by filters).normal
project_keyYesProject identifier (same used with `ensure_project`/`register_agent`).
sender_nameYesMust match an agent registered in the project.
ack_requiredNoIf true, recipients should call `acknowledge_message` after reading.
sender_tokenNo
convert_imagesNoOverrides server default for image conversion/inlining. If None, server settings apply. Note: sender attachments_policy "inline"/"file" always forces conversion/inlining.
attachment_pathsNoExtra file paths to include as attachments; will be converted to WebP and stored.
auto_contact_if_blockedNoWhen ``True`` (and contact policy blocks delivery to one or more recipients), the server will attempt to resolve the block automatically: - If the recipient is already authenticated in the **same MCP session**, run ``macro_contact_handshake(..., auto_accept=True)`` to approve the link in-band. The current send proceeds normally and the message is delivered. - Otherwise, fall back to creating a **pending** ``request_contact`` aimed at the recipient. This call then **fails loud** with ``CONTACT_REQUIRED`` carrying ``auto_contact_requested`` in ``data``. **The message body is not queued** — once the recipient approves the contact (``respond_contact(..., accept=True)``), the sender must re-call ``send_message`` to actually deliver the payload. Defaults to the server-wide ``MESSAGING_AUTO_HANDSHAKE_ON_BLOCK`` setting (true unless overridden). The pending-request TTL is governed by ``CONTACT_PENDING_TTL_SECONDS`` (default 7 days, separate from the in-session auto-approval TTL ``CONTACT_AUTO_TTL_SECONDS``).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / ack_required / description
      Added value: +"If true, recipients should call `acknowledge_message` after reading."
    • addedInput schema / properties / attachment_paths / description
      Added value: +"Extra file paths to include as attachments; will be converted to WebP and stored."
    • addedInput schema / properties / auto_contact_if_blocked / description
      Added value: +"When ``True`` (and contact policy blocks delivery to one or more recipients), the\nserver will attempt to resolve the block automatically:\n\n- If the recipient is already authenticated in the **same MCP session**, run\n  ``macro_contact_handshake(..., auto_accept=True)`` to approve the link in-band.\n  The current send proceeds normally and the message is delivered.\n- Otherwise, fall back to creating a **pending** ``request_contact`` aimed at the\n  recipient. This call then **fails loud** with ``CONTACT_REQUIRED`` carrying\n  ``auto_contact_requested`` in ``data``. **The message body is not queued** —\n  once the recipient approves the contact (``respond_contact(..., accept=True)``),\n  the sender must re-call ``send_message`` to actually deliver the payload.\n\nDefaults to the server-wide ``MESSAGING_AUTO_HANDSHAKE_ON_BLOCK`` setting (true\nunless overridden). The pending-request TTL is governed by\n``CONTACT_PENDING_TTL_SECONDS`` (default 7 days, separate from the in-session\nauto-approval TTL ``CONTACT_AUTO_TTL_SECONDS``)."
    • addedInput schema / properties / bcc / description
      Added value: +"Additional recipients by name."
    • addedInput schema / properties / body_md / description
      Added value: +"GitHub-Flavored Markdown body. Image references can be file paths or data URIs."
    • addedInput schema / properties / broadcast / description
      Added value: +"If true and `to` is empty, expand recipients to all registered agents in the\nproject (excluding the sender). Mutually exclusive with explicit `to` recipients.\nRespects contact_policy settings and is best-effort across contact boundaries:\nexpanded recipients that are retired, set ``block_all``, or would need contact\napproval are skipped rather than blocking the send, and are reported in\n``broadcast_skipped`` (``[{\"agent\": name, \"reason\": ...}]``). No contact request\nis created for them — request contact explicitly if you want them included.\n``auto_contact_if_blocked`` therefore never fires for broadcast-expanded\nrecipients; it still applies to explicitly named ``to``/``cc``/``bcc`` names."
    • addedInput schema / properties / cc / description
      Added value: +"Additional recipients by name."
    • addedInput schema / properties / convert_images / description
      Added value: +"Overrides server default for image conversion/inlining. If None, server settings apply.\nNote: sender attachments_policy \"inline\"/\"file\" always forces conversion/inlining."
    • addedInput schema / properties / importance / description
      Added value: +"One of {\"low\",\"normal\",\"high\",\"urgent\"} (free form tolerated; used by filters)."
    • addedInput schema / properties / project_key / description
      Added value: +"Project identifier (same used with `ensure_project`/`register_agent`)."
    • addedInput schema / properties / sender_name / description
      Added value: +"Must match an agent registered in the project."
    • addedInput schema / properties / subject / description
      Added value: +"Short subject line that will be visible in inbox/outbox and search results."
    • addedInput schema / properties / thread_id / description
      Added value: +"If provided, message will be associated with an existing thread."
    • addedInput schema / properties / to / description
      Added value: +"Primary recipients (agent names). At least one of to/cc/bcc must be non-empty."
    • addedInput schema / properties / topic / description
      Added value: +"Optional topic tag (max 64 chars). Must start with a letter or digit and may\notherwise contain alphanumerics, '.', '_', or '-' — so beads_rust hierarchical\nIDs like ``br-abc.1`` can be used verbatim. Stored on the message for topic-based\nfiltering via fetch_inbox(topic=...) or fetch_topic()."
  2. First observedv0.3.4

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the write side effect of persisting canonical and mailbox copies to Git. However, it omits important operational behavior such as contact-policy blocking, broadcast skipping, acknowledgement expectations, and failure modes that a 17-parameter mutation tool should surface.

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?

The description is a single front-loaded sentence with no wasted wording, moving directly from the action to the persistence effect. Its brevity is appropriate for a concise summary, even though more behavioral detail would be desirable elsewhere.

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

Completeness2/5

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

For a complex 17-parameter write tool with no annotations, this one-sentence description is insufficiently complete. It does not cover recipient resolution, contact-policy interactions, failures, or how sending relates to `reply_message` and `acknowledge_message`, though the output schema does relieve it of explaining return values.

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 88%, so the input schema already documents nearly all parameters in detail, including broadcast, contact-policy, and attachment behavior. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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

Purpose4/5

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

The description states a specific verb and resource: "Send a Markdown message to one or more recipients," and adds a distinguishing persistence detail about Git copies. It does not explicitly differentiate itself from the sibling `reply_message`, so an agent must infer that this is for new messages rather than replies.

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?

The description gives no guidance on when to use this tool versus `reply_message`, `fetch_inbox`, or `fetch_topic`. It also does not mention when to use broadcast, threading, or contact-policy behavior, leaving the agent to discover those conditions entirely from the schema.

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