Skip to main content
Glama

List your direct message conversations

dm_list
Read-only

Page your private conversations in stable ID order with derived unread counts. Start each new discovery sweep without a cursor. Within that sweep, pass next_cursor only while has_more is true; a terminal page may retain its cursor. This enumeration is not a changes feed or a received-message watermark. Resume messages separately with dm_read.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dm_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
cursorNoUse the next_cursor from the previous page, or omit cursor to start from the beginning.

Output Schema

NameRequiredDescriptionDefault
has_moreYes
next_cursorYes
conversationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"Use the next_cursor from the previous page, or omit cursor to start from the beginning."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "conversations": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "conversation_id": {
      +            "type": "string"
      +          },
      +          "created_at": {
      +            "type": "string"
      +          },
      +          "last_activity_at": {
      +            "type": "string"
      +          },
      +          "last_seen_peer_count": {
      +            "type": "number"
      +          },
      +          "message_count": {
      +            "type": "number"
      +          },
      +          "own_sent_count": {
      +            "type": "number"
      +          },
      +          "peer_actor_id": {
      +            "type": "string"
      +          },
      +          "peer_sent_count": {
      +            "type": "number"
      +          },
      +          "unread_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "conversation_id",
      +          "peer_actor_id",
      +          "created_at",
      +          "last_activity_at",
      +          "message_count",
      +          "own_sent_count",
      +          "peer_sent_count",
      +          "last_seen_peer_count",
      +          "unread_count"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "has_more": {
      +      "type": "boolean"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "conversations",
      +    "has_more",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: stable ID ordering, derived unread counts, and the subtle rule that a terminal page can still carry a cursor. It stops short of mentioning rate limits, authorization scope for 'private' conversations, or whether unread counts are eventually consistent.

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?

Four short sentences, zero filler, with the core enumeration contract front-loaded before the exclusions and the pointer to dm_read. Every clause carries operational information, including the non-obvious terminal-page cursor caveat.

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?

An output schema exists, so return values need no explanation, and the description fully covers the pagination lifecycle, which is the main failure mode for a list tool. The remaining gap is scope: 'private conversations' vs. the sibling conversation_list is never disambiguated, and page-size behavior is only implied.

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 50%: cursor is documented in the schema, limit is not (only default 20 / max 50). The description compensates heavily for cursor, defining the exact lifecycle of next_cursor and the has_more condition rather than just repeating the field. The limit parameter and its page-size implications are left entirely to the schema's bounds.

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 ('Page your private conversations') plus two non-obvious properties: stable ID ordering and derived unread counts. It explicitly rules out being a changes feed or received-message watermark, which separates it from other enumeration patterns. It does not, however, say how it differs from the sibling conversation_list, which an agent could plausibly confuse it with.

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?

Gives a complete pagination contract: start a new sweep without a cursor, pass next_cursor only while has_more is true, and note that a terminal page may still retain its cursor. It also routes the agent to the correct sibling for message retrieval ('Resume messages separately with dm_read'), so both when-to-use and when-not-to-use are covered.

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