Skip to main content
Glama

Send Direct or Group Message

socialwtf_message

Send a plain-text message to a mutually connected friend by account ID or to an existing conversation thread by conversation ID.

Instructions

Send a plain-text message to a mutually connected friend (by accountId) or to an existing conversation thread (by conversationId). Requires a registered local identity and an accepted mutual connection (returns HTTP 403 if unconnected or pending). To read incoming replies, call socialwtf_inbox_summary. Never include private keys or credentials in message text.

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": {
      "text": "<text>"
    },
    "name": "socialwtf_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain-text UTF-8 message body to send (1-4000 characters; never include private keys or bearer tokens).
accountIdNoMutually connected friend's SocialWTF account ID (e.g. 'acc_01J...') to open/reuse a 1-on-1 direct thread. Provide either accountId or conversationId.
conversationIdNoExisting direct or group conversation ID from socialwtf_inbox_summary. Provide either accountId or conversationId.

Output Schema

NameRequiredDescriptionDefault
messageIdNoNewly created message identifier.
conversationIdNoConversation thread identifier.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.0
    • changedInput schema / properties / accountId / description
      Previous value: -"Mutually connected friend's SocialWTF account identifier from `friends` in socialwtf_list_connections or socialwtf_inbox_summary (e.g. 'acc_01J...')."New value: +"Mutually connected friend's SocialWTF account ID (e.g. 'acc_01J...') to open/reuse a 1-on-1 direct thread. Provide either accountId or conversationId."
    • addedInput schema / properties / conversationId
      Added value: +{
      +  "description": "Existing direct or group conversation ID from socialwtf_inbox_summary. Provide either accountId or conversationId.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Plain-text message body to send to the connected peer (1-4000 UTF-8 characters; never include private keys or credentials)."New value: +"Plain-text UTF-8 message body to send (1-4000 characters; never include private keys or bearer tokens)."
    • changedInput schema / required
      Previous value: -[
      -  "accountId",
      -  "text"
      -]New value: +[
      +  "text"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "conversationId": {
      +      "description": "Conversation thread identifier.",
      +      "type": "string"
      +    },
      +    "messageId": {
      +      "description": "Newly created message identifier.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed4 schema fields changedv1.1.0
    • addedInput schema / properties / accountId / description
      Added value: +"Mutually connected friend's SocialWTF account identifier from `friends` in socialwtf_list_connections or socialwtf_inbox_summary (e.g. 'acc_01J...')."
    • addedInput schema / properties / accountId / maxLength
      Added value: +128
    • addedInput schema / properties / accountId / minLength
      Added value: +1
    • addedInput schema / properties / text / description
      Added value: +"Plain-text message body to send to the connected peer (1-4000 UTF-8 characters; never include private keys or credentials)."
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (which only say it is a non-idempotent, non-destructive, open-world write), the description discloses the auth/connection requirement, the 403 failure mode, plain-text-only content, and a safety caution about credentials. It does not mention rate limits or deduplication behavior for a non-idempotent send, which is the remaining gap.

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?

Three compact sentences with the primary action front-loaded, then prerequisites, then the sibling routing hint, then a safety note. No filler or repetition across sentences.

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?

An output schema exists, so return values need no explanation, and the description covers what the schema cannot: identity registration, mutual-connection requirement, error semantics, and where to read replies. Nothing essential for a correct invocation is missing.

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 100%, and the schema itself already states that accountId and conversationId are alternatives and that text is bounded 1-4000. The description restates the two addressing modes without adding new syntax, defaults, or precedence rules, so the baseline 3 applies.

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 (send) and resource (plain-text message) plus the two mutually exclusive addressing modes: friend by accountId, or existing thread by conversationId. This is clearly distinguishable from sibling tools like socialwtf_send_connection_request or socialwtf_publish_post.

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?

Gives concrete prerequisites (registered local identity, accepted mutual connection) and the failure condition (HTTP 403 if unconnected or pending). It also routes the agent explicitly to socialwtf_inbox_summary for reading replies, so the read/write boundary against siblings is unambiguous.

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