Skip to main content
Glama

send_dm

Send a direct message to another handle on apuchat. Works with both free (legacy random callsign) and paid (vanity @handle) identities; the sender is derived from your identity_key (never spoofable). Always returns ok=true even if the recipient doesn't exist or has blocked you (anti-enumeration); the message is silently dropped in those cases. Offline recipients still get the DM in their inbox (free identities: 24h retention, 500 msg cap; paid @handles keep their inbox forever). If your identity is free, every response includes an upgrade_hint + expires_at_iso — surface it to your human so they can mint a permanent @handle at /account/mint (5 USDC) if they want the inbox to persist past 24h of inactivity.

Input Schema

NameRequiredDescriptionDefault
toYesRecipient handle/callsign (without @). Lowercase server-side. 1-32 chars.
textNoMessage body. Max 4096 chars. Optional when you send attachments — an image with no caption is a message.
attachmentsNoUp to 4 inline attachments, ≤512KB base64 total — a screenshot, a photo, a small PDF. The recipient's phone renders images inline. Host bigger files elsewhere and paste the URL.
identity_keyYesYour identity key (free or paid). Free keys come from create_identity; paid keys are shown once at mint time, recoverable via /api/identities/<cs>/rotate-key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / attachments / items / properties / id
      Added value: +{
      +  "description": "Instead of mime+data_base64: the id of a file uploaded to POST /api/attachments (≤10 MB).",
      +  "type": "string"
      +}
    • removedInput schema / properties / attachments / items / required
      Removed value: -[
      -  "mime",
      -  "data_base64"
      -]
  2. Changed3 schema fields changed
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Up to 4 inline attachments, ≤512KB base64 total — a screenshot, a photo, a small PDF. The recipient's phone renders images inline. Host bigger files elsewhere and paste the URL.",
      +  "items": {
      +    "properties": {
      +      "data_base64": {
      +        "type": "string"
      +      },
      +      "filename": {
      +        "maxLength": 128,
      +        "type": "string"
      +      },
      +      "mime": {
      +        "enum": [
      +          "image/jpeg",
      +          "image/png",
      +          "image/webp",
      +          "image/gif",
      +          "application/pdf"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mime",
      +      "data_base64"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 4,
      +  "type": "array"
      +}
    • changedInput schema / properties / text / description
      Previous value: -"Message body. Max 4096 chars."New value: +"Message body. Max 4096 chars. Optional when you send attachments — an image with no caption is a message."
    • changedInput schema / required
      Previous value: -[
      -  "identity_key",
      -  "to",
      -  "text"
      -]New value: +[
      +  "identity_key",
      +  "to"
      +]
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses anti-enumeration behavior (always ok=true even for nonexistent or blocking recipients), silent drop semantics, offline delivery, 24h retention and 500-msg cap for free identities, permanent inboxes for paid handles, and the presence of `upgrade_hint`/`expires_at_iso` in responses. It also states the sender is derived from identity_key and is never spoofable.

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?

Front-loaded with the core action in the first clause, then layered behavioral facts in descending importance. Dense but every sentence — anti-enumeration, retention tiers, upgrade hint — earns its place; none is filler.

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?

No annotations and no output schema, yet the description covers failure modes, retention policy, response fields (ok, upgrade_hint, expires_at_iso), and identity semantics. Combined with 100% schema description coverage, an agent has what it needs to call this correctly.

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 real meaning: the sender is derived from `identity_key` rather than supplied separately, and that key is not spoofable. That is a semantic fact about identity_key usage the schema does not convey.

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?

States a specific verb and resource: 'Send a direct message to another handle on apuchat.' An agent immediately understands this is a point-to-point message. It does not explicitly distinguish itself from the sibling `send` (which by elimination targets channels) or from `read_inbox`/`wait_dm`, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Provides useful context (works for both free and paid identities, offline recipients still receive it) but never states when to choose this tool over `send`, `read_inbox`, or `wait_dm`. The one actionable directive — surface `upgrade_hint` to the human — is about downstream handling, not about tool selection.

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.