Skip to main content
Glama
Upload-Post

Upload-Post

Official

Send a direct message

send_dm
Destructive

Send a direct message as a connected profile on Instagram, Bluesky, Telegram or WhatsApp, with a preview step so nothing goes out before the user approves.

Instructions

Send a DM as a connected Upload-Post profile, on Instagram or Bluesky. Instagram: recipient_id (from Instagram comments or the DM conversation tools) and message, optionally up to 3 link buttons. Bluesky: recipient_id is the person's handle (e.g. 'alice.bsky.social'), DID or profile link, or pass conversation_id (also for group chats) instead. The text may carry links, @mentions (up to 10) and #hashtags, which become clickable; at most 1000 characters. Optional reply_to (a message id) and one shared Bluesky post in attachments; Bluesky chat takes no images, files or buttons. With sender_action (Bluesky only) nothing is written: mark_seen/mark_read, react/unreact (message_id + one emoji in reaction), delete (message_id; removes it only for this account), accept (a message request), mute, unmute, leave. Sender actions do not count toward the daily DM allowance. Bluesky DMs need the account connected with an app password created with 'Allow access to your direct messages'; otherwise the call returns 403 bluesky_dm_scope_missing and the user has to create such an app password and reconnect Bluesky. Other Bluesky errors: 403 bluesky_recipient_unavailable (the person does not accept DMs from this account, with reason), 404 bluesky_recipient_not_found, 400 bluesky_message_too_long, 504 bluesky_send_unconfirmed (the DM may have gone out: list the conversation before retrying). Telegram (the profile's own bot): recipient_id is the person's numeric chat id (sender.id of a dm_received event); only private chats (groups and channels: 403 telegram_private_chats_only, publish there with the upload tools); text up to 4096 characters. 403 telegram_recipient_not_started (the person never started the bot) or telegram_recipient_blocked; 504 telegram_send_unconfirmed means it may have been sent: list the conversation before retrying. WhatsApp (platform: "whatsapp", available to every account): the profile's own WhatsApp Business number, connected from the connection page (get_connect_link with platforms ['whatsapp']); WhatsApp is a messaging channel only, posts are never published to it. recipient_id is the phone number in international format. Free text, media, buttons, lists, location and contacts only reach someone within 24 h of their last message to the number (the customer-service window); outside it send an approved template (other sends fail with meta_error_code 131047). Meta bills template conversations to the customer's own WhatsApp Business account. Other errors: 401 whatsapp_reauth_required (reconnect WhatsApp), meta_error_code 131026 (the number is not on WhatsApp or cannot receive it). Incoming messages (with a media_id for files) show up in list_dm_conversations and in the dm_received webhook. Needs the user's approval: call it first without confirmed to get a preview (nothing is sent), show the user exactly what will go out, and repeat the call with confirmed: true only after they approve.

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": "<user>",
      "platform": "<platform>"
    },
    "name": "send_dm"
  }
}

Input Schema

NameRequiredDescriptionDefault
listNoWhatsApp only: an interactive list { button (label, max 20 characters), sections: [{ title?, rows: [{ id?, title (max 24), description? (max 72) }] }] } with at most 10 rows in all; `message` is the body.
userYesUpload-Post profile name that owns the connected account.
footerNoWhatsApp only: footer of a buttons / list / cta_url message (max 60 characters).
headerNoWhatsApp only: text header of a buttons / list / cta_url message (max 60 characters).
typingNoWhatsApp only: with sender_action mark_read, also show the typing indicator.
buttonsNoInstagram only: up to 3 web_url buttons rendered in the DM. Each item is { title, url }.
contactNoTelegram: { phone_number, first_name, last_name?, vcard? }.
cta_urlNoWhatsApp only: one link button { display_text (max 20 characters), url }; `message` is the body.
messageNoDM text. Required on Instagram. On Bluesky optional when sharing a post in `attachments` or using `sender_action`.
contactsNoWhatsApp only: 1-10 contact cards, Meta's contact objects; at least { name: { formatted_name } or a string, phones: [{ phone }] or a string }.
locationNoTelegram: { latitude, longitude } or a venue with title and address.
platformYesDM platform: 'instagram' or 'bluesky'.
reactionNoBluesky only: a single emoji for sender_action react/unreact.
reply_toNoBluesky only: id of the message this DM replies to.
templateNoWhatsApp only: an approved message template { name, language (e.g. 'en_US'), components? (Meta's format, with the values of its {{1}} variables) }. The ONLY way to write to someone more than 24 h after their last message (Meta answers meta_error_code 131047 otherwise); list or create them with manage_whatsapp_templates.
checklistNoTelegram Business: an InputChecklist { title, tasks: [{ id, text }] } (1-30 tasks); needs business_connection_id.
confirmedNoSet to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.
message_idNoBluesky only: message the sender_action applies to (react, unreact, delete, and optionally mark_seen).
parse_modeNoTelegram: text formatting.
attachmentsNoBluesky only: one Bluesky post to share in the DM, { type: 'post', url }.
message_idsNoTelegram: sender_action delete for up to 100 messages.
recipient_idNoWho receives the DM. Instagram (required): the recipient/commenter ID. Bluesky: handle, @handle, DID or bsky.app profile link; optional when `conversation_id` is given.
sender_actionNoBluesky only: act on the conversation instead of sending text. react/unreact and delete need `message_id`; mark_read is the same as mark_seen.
conversation_idNoBluesky only: send to (or act on) this conversation, from list_dm_conversations. Works for group chats.
business_connection_idNoTelegram: send as the connected Telegram Business account (manage_telegram_business connections).

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.27.0
    • changedInput schema / properties / attachments / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "post",
      -        "description": "Always 'post'.",
      -        "type": "string"
      -      },
      -      "url": {
      -        "description": "bsky.app post link or at:// URI of the post to share.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "url"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "items": {
      -      "additionalProperties": {},
      -      "type": "object"
      -    },
      -    "maxItems": 10,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "additionalProperties": false,
      +        "properties": {
      +          "type": {
      +            "const": "post",
      +            "description": "Always 'post'.",
      +            "type": "string"
      +          },
      +          "url": {
      +            "description": "bsky.app post link or at:// URI of the post to share.",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      {
      +        "items": {
      +          "additionalProperties": {},
      +          "type": "object"
      +        },
      +        "maxItems": 10,
      +        "type": "array"
      +      }
      +    ]
      +  },
      +  {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "maxItems": 10,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / buttons / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "title": {
      -          "type": "string"
      -        },
      -        "url": {
      -          "format": "uri",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "title",
      -        "url"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 3,
      -    "type": "array"
      -  },
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": {},
      -          "type": "object"
      -        },
      -        {
      -          "items": {
      -            "additionalProperties": {},
      -            "type": "object"
      -          },
      -          "type": "array"
      -        }
      -      ]
      -    },
      -    "maxItems": 100,
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "title": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "format": "uri",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "title",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 3,
      +        "type": "array"
      +      },
      +      {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": {},
      +              "type": "object"
      +            },
      +            {
      +              "items": {
      +                "additionalProperties": {},
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          ]
      +        },
      +        "maxItems": 100,
      +        "type": "array"
      +      }
      +    ]
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "maxItems": 3,
      +    "type": "array"
      +  }
      +]
    • addedInput schema / properties / contacts
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    {
      +      "items": {
      +        "additionalProperties": {},
      +        "type": "object"
      +      },
      +      "maxItems": 10,
      +      "minItems": 1,
      +      "type": "array"
      +    }
      +  ],
      +  "description": "WhatsApp only: 1-10 contact cards, Meta's contact objects; at least { name: { formatted_name } or a string, phones: [{ phone }] or a string }."
      +}
    • addedInput schema / properties / cta_url
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "WhatsApp only: one link button { display_text (max 20 characters), url }; `message` is the body.",
      +  "type": "object"
      +}
    • addedInput schema / properties / footer
      Added value: +{
      +  "description": "WhatsApp only: footer of a buttons / list / cta_url message (max 60 characters).",
      +  "maxLength": 60,
      +  "type": "string"
      +}
    • addedInput schema / properties / header
      Added value: +{
      +  "description": "WhatsApp only: text header of a buttons / list / cta_url message (max 60 characters).",
      +  "maxLength": 60,
      +  "type": "string"
      +}
    • addedInput schema / properties / list
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "WhatsApp only: an interactive list { button (label, max 20 characters), sections: [{ title?, rows: [{ id?, title (max 24), description? (max 72) }] }] } with at most 10 rows in all; `message` is the body.",
      +  "type": "object"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "bluesky",
      -  "telegram"
      -]New value: +[
      +  "instagram",
      +  "bluesky",
      +  "telegram",
      +  "whatsapp"
      +]
    • addedInput schema / properties / reaction / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / reaction / type
      Removed value: -"string"
    • addedInput schema / properties / recipient_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  }
      +]
    • removedInput schema / properties / recipient_id / type
      Removed value: -"string"
    • addedInput schema / properties / template
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "WhatsApp only: an approved message template { name, language (e.g. 'en_US'), components? (Meta's format, with the values of its {{1}} variables) }. The ONLY way to write to someone more than 24 h after their last message (Meta answers meta_error_code 131047 otherwise); list or create them with manage_whatsapp_templates.",
      +  "type": "object"
      +}
    • addedInput schema / properties / typing
      Added value: +{
      +  "description": "WhatsApp only: with sender_action mark_read, also show the typing indicator.",
      +  "type": "boolean"
      +}
  2. Changed19 schema fields changedv0.26.5
    • removedInput schema / properties / attachments / additionalProperties
      Removed value: -false
    • addedInput schema / properties / attachments / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "post",
      +        "description": "Always 'post'.",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "bsky.app post link or at:// URI of the post to share.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "items": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "maxItems": 10,
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / attachments / properties
      Removed value: -{
      -  "type": {
      -    "const": "post",
      -    "description": "Always 'post'.",
      -    "type": "string"
      -  },
      -  "url": {
      -    "description": "bsky.app post link or at:// URI of the post to share.",
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / attachments / required
      Removed value: -[
      -  "url"
      -]
    • removedInput schema / properties / attachments / type
      Removed value: -"object"
    • addedInput schema / properties / business_connection_id
      Added value: +{
      +  "description": "Telegram: send as the connected Telegram Business account (manage_telegram_business connections).",
      +  "type": "string"
      +}
    • addedInput schema / properties / buttons / anyOf
      Added value: +[
      +  {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "title": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "format": "uri",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "title",
      +        "url"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 3,
      +    "type": "array"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "type": "object"
      +        },
      +        {
      +          "items": {
      +            "additionalProperties": {},
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      ]
      +    },
      +    "maxItems": 100,
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / buttons / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "title": {
      -      "type": "string"
      -    },
      -    "url": {
      -      "format": "uri",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "title",
      -    "url"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / buttons / maxItems
      Removed value: -3
    • removedInput schema / properties / buttons / type
      Removed value: -"array"
    • addedInput schema / properties / checklist
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Telegram Business: an InputChecklist { title, tasks: [{ id, text }] } (1-30 tasks); needs business_connection_id.",
      +  "type": "object"
      +}
    • addedInput schema / properties / contact
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Telegram: { phone_number, first_name, last_name?, vcard? }.",
      +  "type": "object"
      +}
    • addedInput schema / properties / location
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Telegram: { latitude, longitude } or a venue with title and address.",
      +  "type": "object"
      +}
    • addedInput schema / properties / message_ids
      Added value: +{
      +  "description": "Telegram: sender_action delete for up to 100 messages.",
      +  "items": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "string"
      +      }
      +    ]
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / parse_mode
      Added value: +{
      +  "description": "Telegram: text formatting.",
      +  "enum": [
      +    "MarkdownV2",
      +    "HTML",
      +    "Markdown"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "bluesky"
      -]New value: +[
      +  "instagram",
      +  "bluesky",
      +  "telegram"
      +]
    • addedInput schema / properties / reply_to / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  }
      +]
    • removedInput schema / properties / reply_to / type
      Removed value: -"string"
    • removedInput schema / properties / sender_action / enum
      Removed value: -[
      -  "mark_seen",
      -  "mark_read",
      -  "react",
      -  "unreact",
      -  "delete",
      -  "accept",
      -  "mute",
      -  "unmute",
      -  "leave"
      -]
  3. Changed14 schema fields changedv0.23.0
    • addedInput schema / properties / attachments
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Bluesky only: one Bluesky post to share in the DM, { type: 'post', url }.",
      +  "properties": {
      +    "type": {
      +      "const": "post",
      +      "description": "Always 'post'.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "bsky.app post link or at:// URI of the post to share.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • changedInput schema / properties / buttons / description
      Previous value: -"Up to 3 web_url buttons rendered in the DM. Each item is { title, url }."New value: +"Instagram only: up to 3 web_url buttons rendered in the DM. Each item is { title, url }."
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Bluesky only: send to (or act on) this conversation, from list_dm_conversations. Works for group chats.",
      +  "type": "string"
      +}
    • changedInput schema / properties / message / description
      Previous value: -"DM body to send."New value: +"DM text. Required on Instagram. On Bluesky optional when sharing a post in `attachments` or using `sender_action`."
    • addedInput schema / properties / message_id
      Added value: +{
      +  "description": "Bluesky only: message the sender_action applies to (react, unreact, delete, and optionally mark_seen).",
      +  "type": "string"
      +}
    • removedInput schema / properties / platform / const
      Removed value: -"instagram"
    • changedInput schema / properties / platform / description
      Previous value: -"DM platform. Currently only Instagram DMs are supported."New value: +"DM platform: 'instagram' or 'bluesky'."
    • addedInput schema / properties / platform / enum
      Added value: +[
      +  "instagram",
      +  "bluesky"
      +]
    • addedInput schema / properties / reaction
      Added value: +{
      +  "description": "Bluesky only: a single emoji for sender_action react/unreact.",
      +  "type": "string"
      +}
    • changedInput schema / properties / recipient_id / description
      Previous value: -"Instagram recipient/commenter ID. Required by the Upload-Post API."New value: +"Who receives the DM. Instagram (required): the recipient/commenter ID. Bluesky: handle, @handle, DID or bsky.app profile link; optional when `conversation_id` is given."
    • addedInput schema / properties / reply_to
      Added value: +{
      +  "description": "Bluesky only: id of the message this DM replies to.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sender_action
      Added value: +{
      +  "description": "Bluesky only: act on the conversation instead of sending text. react/unreact and delete need `message_id`; mark_read is the same as mark_seen.",
      +  "enum": [
      +    "mark_seen",
      +    "mark_read",
      +    "react",
      +    "unreact",
      +    "delete",
      +    "accept",
      +    "mute",
      +    "unmute",
      +    "leave"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / user / description
      Previous value: -"Upload-Post profile name that owns the connected Instagram account."New value: +"Upload-Post profile name that owns the connected account."
    • changedInput schema / required
      Previous value: -[
      -  "user",
      -  "platform",
      -  "recipient_id",
      -  "message"
      -]New value: +[
      +  "user",
      +  "platform"
      +]
  4. Changed1 schema field changedv0.17.2
    • addedInput schema / properties / confirmed
      Added value: +{
      +  "description": "Set to true only after the user has seen the preview this tool returns without it and approved it. Without it nothing is sent.",
      +  "type": "boolean"
      +}
  5. Changed2 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  6. Changed1 schema field changedv0.7.0
    • addedInput schema / properties / buttons
      Added value: +{
      +  "description": "Up to 3 web_url buttons rendered in the DM. Each item is { title, url }.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "title": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "format": "uri",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 3,
      +  "type": "array"
      +}
  7. First observedv0.4.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say non-read-only, destructive, open-world; the description goes far beyond that by disclosing the daily DM allowance, template billing to the customer's WhatsApp account, that `delete` removes a message only for this account, the app-password scope requirement, and a full per-platform error code map with recovery steps. It also explains the mandatory approval gate, which is the single most important behavioral trait for a destructive send.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a single unbroken ~450-word paragraph mixing four platforms with no headings or bullets, which makes scanning slow. A meaningful share of the content restates fields already fully described in the schema (template, list, cta_url, footer, header), so not every sentence earns its place.

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?

For a 25-parameter, four-platform destructive tool this is as complete as it reasonably gets: it covers preconditions, approval workflow, per-platform constraints, failure modes and recovery. With an output schema present, no return-value explanation is needed, so nothing material is missing.

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 schema already documents each field; nevertheless the description adds genuinely new meaning — per-platform accepted formats for `recipient_id` (commenter ID vs handle/DID/profile link vs numeric chat id vs international phone number), the `conversation_id` group-chat alternative, and length limits (1000 chars Bluesky, 4096 Telegram) that the schema does not state. It does not cover every one of the 25 parameters (e.g. parse_mode, checklist, message_ids), which keeps it below 5.

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?

Opens with a precise verb+resource+scope: 'Send a DM as a connected Upload-Post profile, on Instagram or Bluesky', then extends to Telegram and WhatsApp. An agent can immediately distinguish this from list_dm_conversations or the comment tools without opening the schema.

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?

Explicit routing conditions throughout: use `sender_action` instead of text for reactions/deletes, use an approved `template` when outside the 24h window, call once without `confirmed` for a preview then again with `confirmed: true`, and list the conversation rather than retry after a 504. It also names sibling tools (list_dm_conversations, get_connect_link, manage_whatsapp_templates) as the path for adjacent needs.

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