Skip to main content
Glama
Upload-Post

Upload-Post

Official

List DM conversations

list_dm_conversations
Read-only

Lists direct-message conversations for a connected profile on a chosen platform, newest first with latest messages, and paginates older threads via cursor so agents can review and filter DMs.

Instructions

DM conversations for a profile on a given platform, newest first, each with its latest messages. The response carries pagination { next_cursor, has_more }: to read older conversations, call again with cursor set to next_cursor (and the same since / participant_id) until has_more is false. Media a message carries comes back in attachments (type, url, plus size and preview fields when the platform gives them); content the platform flags is_unsupported cannot be retrieved. Bluesky (read live, up to 25 conversations per page) adds per conversation status (request / accepted), unread_count, muted, kind (direct / group) and per message direction, reactions, reply_to and shared posts in attachments; use conversation_id (+ messages_cursor) to page back through one conversation's history, and status / read_state to filter. Bluesky needs the account connected with an app password that allows direct messages, otherwise 403 bluesky_dm_scope_missing. WhatsApp (available to every account) lists the conversations of the profile's WhatsApp Business number, stored as they arrive, with participant_id = the person's phone number (what send_dm takes as recipient_id); files people send come with a media_id. Telegram (platform: "telegram"): the private chats of the profile's own bot, with participant_id = the person's numeric chat id (what send_dm takes as recipient_id). It needs the bot's updates on (manage_telegram_bot set_updates); otherwise 409 telegram_updates_not_enabled. Files people send come with a media_id (a Telegram file_id), which send_dm attachments can send again.

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>"
    },
    "name": "list_dm_conversations"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoBluesky only: only direct (1:1) conversations.
userYesUpload-Post profile name that owns the connected account.
viewNoBluesky only: up to 100 conversations per page, each with only its latest message (fastest).
limitNoConversations per page. Default 20; the API returns at most 50 per page (25 on Bluesky).
sinceNoOnly conversations with activity after this moment: Unix timestamp (seconds) or ISO 8601 date, e.g. '2026-11-01T00:00:00Z'.
cursorNo`pagination.next_cursor` from the previous call, to get the next (older) page. Omit for the first page.
statusNoBluesky only: 'request' = message requests not accepted yet, 'accepted' = regular conversations.
includeNoBluesky only: add `unread_counts` {accepted, request} to the answer.
platformNo'instagram', 'whatsapp', 'facebook' (Messenger) 'bluesky' or 'telegram'. Required by the Upload-Post API. Messenger is in a limited rollout: an account without access gets 403 `messenger_not_enabled`, and no plan, setting or reconnect changes that (the user can ask Upload-Post support for access).
read_stateNoBluesky only: 'unread' returns only conversations with unread messages.
messages_limitNoLatest messages returned per conversation, 1-25. Default 10. When raising it, lower `limit` (10-20 conversations): a large page with many messages is slow, and Instagram may then answer with text only, without attachments.
participant_idNoReturn only the conversation with this person: the other participant's `id` from a previous listing (on Instagram, the same id send_dm takes as recipient_id; on WhatsApp, their phone number; on Bluesky, their handle or DID). On Bluesky this never opens a new conversation.
conversation_idNoBluesky only: return just this conversation (direct or group), with its messages.
messages_cursorNoBluesky only, with `conversation_id`: the conversation's `messages.paging.next_cursor` from the previous answer, to read its older messages.
business_connection_idNoTelegram only: the chats of this connected Telegram Business account instead of the bot's.
include_profile_photosNoTelegram only: add each participant's profile photo.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.26.5
    • addedInput schema / properties / business_connection_id
      Added value: +{
      +  "description": "Telegram only: the chats of this connected Telegram Business account instead of the bot's.",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_profile_photos
      Added value: +{
      +  "description": "Telegram only: add each participant's profile photo.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / platform / description
      Previous value: -"'instagram', 'whatsapp', 'facebook' (Messenger) or 'bluesky'. Required by the Upload-Post API. Messenger is in a limited rollout: an account without access gets 403 `messenger_not_enabled`, and no plan, setting or reconnect changes that (the user can ask Upload-Post support for access)."New value: +"'instagram', 'whatsapp', 'facebook' (Messenger) 'bluesky' or 'telegram'. Required by the Upload-Post API. Messenger is in a limited rollout: an account without access gets 403 `messenger_not_enabled`, and no plan, setting or reconnect changes that (the user can ask Upload-Post support for access)."
  2. Changed3 schema fields changedv0.25.0
    • addedInput schema / properties / include
      Added value: +{
      +  "const": "unread_counts",
      +  "description": "Bluesky only: add `unread_counts` {accepted, request} to the answer.",
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "const": "direct",
      +  "description": "Bluesky only: only direct (1:1) conversations.",
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "const": "summary",
      +  "description": "Bluesky only: up to 100 conversations per page, each with only its latest message (fastest).",
      +  "type": "string"
      +}
  3. Changed11 schema fields changedv0.23.0
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Bluesky only: return just this conversation (direct or group), with its messages.",
      +  "type": "string"
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "`pagination.next_cursor` from the previous call, to get the next (older) page. Omit for the first page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit / description
      Added value: +"Conversations per page. Default 20; the API returns at most 50 per page (25 on Bluesky)."
    • addedInput schema / properties / messages_cursor
      Added value: +{
      +  "description": "Bluesky only, with `conversation_id`: the conversation's `messages.paging.next_cursor` from the previous answer, to read its older messages.",
      +  "type": "string"
      +}
    • addedInput schema / properties / messages_limit
      Added value: +{
      +  "description": "Latest messages returned per conversation, 1-25. Default 10. When raising it, lower `limit` (10-20 conversations): a large page with many messages is slow, and Instagram may then answer with text only, without attachments.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 25,
      +  "type": "integer"
      +}
    • addedInput schema / properties / participant_id
      Added value: +{
      +  "description": "Return only the conversation with this person: the other participant's `id` from a previous listing (on Instagram, the same id send_dm takes as recipient_id; on WhatsApp, their phone number; on Bluesky, their handle or DID). On Bluesky this never opens a new conversation.",
      +  "type": "string"
      +}
    • addedInput schema / properties / platform / description
      Added value: +"'instagram', 'whatsapp', 'facebook' (Messenger) or 'bluesky'. Required by the Upload-Post API. Messenger is in a limited rollout: an account without access gets 403 `messenger_not_enabled`, and no plan, setting or reconnect changes that (the user can ask Upload-Post support for access)."
    • addedInput schema / properties / read_state
      Added value: +{
      +  "const": "unread",
      +  "description": "Bluesky only: 'unread' returns only conversations with unread messages.",
      +  "type": "string"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "description": "Only conversations with activity after this moment: Unix timestamp (seconds) or ISO 8601 date, e.g. '2026-11-01T00:00:00Z'.",
      +  "type": [
      +    "string",
      +    "number"
      +  ]
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Bluesky only: 'request' = message requests not accepted yet, 'accepted' = regular conversations.",
      +  "enum": [
      +    "request",
      +    "accepted"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / user / description
      Added value: +"Upload-Post profile name that owns the connected account."
  4. 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#"
  5. First observedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare it a non-destructive read; the description adds substantial behavior the agent could not infer: pagination cursor mechanics, per-platform availability and page caps (25 on Bluesky), named failure modes (`bluesky_dm_scope_missing` 403, `telegram_updates_not_enabled` 409, `messenger_not_enabled` 403 with no plan/setting workaround), the fact that `is_unsupported` content cannot be retrieved, and that WhatsApp/Telegram conversations are stored as they arrive rather than read live.

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

Conciseness4/5

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

Purpose and pagination contract are front-loaded, and nearly every sentence carries load-bearing platform or failure-mode information given five platforms and 16 parameters. The cost is a single dense block with inline platform clauses that an agent must parse serially; splitting the Bluesky/WhatsApp/Telegram notes would improve scannability without adding length.

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 16-parameter, multi-platform read tool this covers the full burden: platform availability, auth prerequisites, pagination loop, filtering options, per-platform identity formats, and known error codes. An output schema exists, so the description is not obligated to enumerate return fields, and its `pagination`/`attachments` notes are additive rather than required.

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 description coverage is 100%, so the baseline is 3 and the schema already carries per-parameter definitions. The description still adds cross-tool meaning — `participant_id` maps to send_dm's recipient_id, and per-platform identity forms (phone number, handle/DID, numeric chat id) — plus the operational tradeoff between `messages_limit` and `limit`. Much of the per-parameter detail is duplicated rather than extended, which keeps it below a 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?

The opening clause names a specific resource (DM conversations), the owner scope (a profile), the required dimension (platform), and the ordering/content contract (newest first, each with its latest messages). It also implicitly separates itself from the write sibling by noting that `participant_id` is what send_dm takes as recipient_id, so an agent can tell listing from sending without opening either schema.

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 concrete when-to-use guidance per platform and explicit follow-up conditions: re-call with `cursor` = `next_cursor` and the same `since`/`participant_id` until `has_more` is false, use `conversation_id` + `messages_cursor` to page one conversation, and `status`/`read_state` to filter. It stops short of stating when NOT to call this tool versus a sibling, but the platform gating (403/409 conditions) effectively tells the agent when the call cannot succeed.

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