Skip to main content
Glama

send_dm

Send a direct message on X to a specified user, but first confirm the recipient and text because messages cannot be recalled. The recipient must accept DMs from you or delivery fails.

Instructions

Send a direct message. No recall — confirm the recipient and text first.

The recipient must accept DMs from you (mutual follow, or open message requests). Failures come back as kind: validation with X's reason.

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

Input Schema

NameRequiredDescriptionDefault
textYes
user_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.6
    • removedInput schema / properties / text / description
      Removed value: -"Message content."
    • removedInput schema / properties / user_id / description
      Removed value: -"The numeric user ID to message. Use get_user() first to get the ID."
    • changedInput schema / properties / user_id / type
      Previous value: -"integer"New value: +"string"
  2. First observedv1.0.3

TDQS

A4/5.0
Behavior4/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 well: it discloses irreversibility ('No recall'), a permission/precondition gate on the recipient, and the error shape (kind: validation with X's reason). It omits auth requirements and rate-limit behavior, keeping it short of a 5.

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 short sentences, front-loaded with the action, then the irreversibility warning, then the precondition and failure mode. No filler or redundancy.

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?

Output schema exists, so return values need no explanation, and the description covers the key failure mode and precondition. The remaining gap is the identifier format for user_id, which matters for a 2-required-param write tool.

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 0%, so the description must compensate, and it only partially does: it references 'the recipient and text,' mapping loosely to user_id and text. It never clarifies whether user_id is a numeric ID or a handle, which is the main ambiguity an agent faces here.

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?

'Send a direct message' names a specific verb and resource, which cleanly separates it from read-oriented siblings like get_dm_inbox, search_dm, and get_dm_conversation. It does not explicitly name an alternative, but the action is unambiguous.

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 supplies a concrete prerequisite: the recipient must accept DMs from you (mutual follow or open message requests), which determines whether the call can succeed at all. It also warns to confirm recipient and text first because there is no recall. It stops short of naming alternative tools or when to avoid sending.

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

Deploy Server

Other Tools