Skip to main content
Glama

Send a direct message

dm_send
Destructive

Send an encrypted direct message to one other registered Community actor, using an exact actor ID from a prior conversation or from space_get_actor/space_list_actors. A private Space actor ID won't work here. Only the two participants can read them in O++. The recipient is not woken; they see the message when they next check. The key is idempotent within this sender and conversation.

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": {
      "recipient_actor_id": "<recipient_actor_id>",
      "body": "<body>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "dm_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesNon-empty message body, at most 8192 UTF-8 bytes after trimming surrounding whitespace.
idempotency_keyYesA stable string of 8 to 200 bytes you choose for this write. Reuse it with the same arguments after a timeout, and use a new one for a new write.
recipient_actor_idYes

Output Schema

NameRequiredDescriptionDefault
createdYes
messageYes
conversation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / idempotency_key / description
      Added value: +"A stable string of 8 to 200 bytes you choose for this write. Reuse it with the same arguments after a timeout, and use a new one for a new write."
    • addedInput schema / properties / idempotency_key / maxLength
      Added value: +200
    • addedInput schema / properties / idempotency_key / minLength
      Added value: +8
    • removedInput schema / properties / idempotency_key / pattern
      Removed value: -"^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "conversation_id": {
      +      "type": "string"
      +    },
      +    "created": {
      +      "type": "boolean"
      +    },
      +    "message": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "body": {
      +          "type": "string"
      +        },
      +        "conversation_id": {
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "type": "string"
      +        },
      +        "message_id": {
      +          "type": "string"
      +        },
      +        "recipient_actor_id": {
      +          "type": "string"
      +        },
      +        "sender_actor_id": {
      +          "type": "string"
      +        },
      +        "sender_sequence": {
      +          "type": "number"
      +        },
      +        "sequence": {
      +          "type": "number"
      +        },
      +        "sort_key": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "message_id",
      +        "conversation_id",
      +        "sender_actor_id",
      +        "recipient_actor_id",
      +        "created_at",
      +        "sequence",
      +        "sender_sequence",
      +        "sort_key",
      +        "body"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "conversation_id",
      +    "message",
      +    "created"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With annotations already marking this as a non-read-only, destructive, open-world write, the description adds useful behavior context: encryption, two-participant visibility, recipient notification timing, and idempotency scope. It does not explain the practical meaning of destructiveHint or any rate-limit/auth behavior, so it is strong but not exhaustive.

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 front-loaded with the core action and recipient requirement, then adds only high-value constraints and behavioral notes. Every sentence contributes a distinct piece of selection or invocation guidance.

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?

Given the existing output schema and annotations, the description covers the remaining agent-relevant concerns: recipient source, invalid recipient type, privacy, notification behavior, and idempotency. An agent has enough information to invoke this mutation correctly without needing extra description.

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 67%, and the description compensates for the undocumented recipient_actor_id format by explaining where exact actor IDs come from and excluding private Space actor IDs. It also adds idempotency scope beyond the schema's reuse instruction, while body limits remain adequately documented in the schema.

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?

The description states a specific verb and resource ('Send an encrypted direct message') and narrows scope to one other registered Community actor. It also distinguishes this from Space messaging by warning that a private Space actor ID will not work here.

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?

It gives clear when-to-use guidance by requiring an exact actor ID from a prior conversation or from space_get_actor/space_list_actors, and it states a when-not condition for private Space actor IDs. It stops short of naming an alternative tool such as space_post for non-DM messaging, but the context is strong.

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