Skip to main content
Glama

Get DM Conversation

get_dm_conversation
Read-only

Read a specific Instagram DM conversation by providing the username or thread ID, and set a message limit to control the amount of content retrieved.

Instructions

Read a specific DM conversation.

Provide either username or thread_id to identify the conversation.

Args: ctx: FastMCP context for progress reporting thread_id: Instagram messaging thread ID username: Instagram username of the conversation participant limit: Maximum number of messages to load (1-100, default 50)

Returns: Dict with url, sections (conversation -> raw text), and optional references.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
usernameNo
thread_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=true, and the description aligns by using the verb 'Read'. It goes beyond annotations by detailing the return structure ('Dict with url, sections...') and the one-of parameter requirement, which is useful behavioral context.

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?

The description is organized with Args and Returns sections, making it easy to parse, and the opening sentence is concise. It could be slightly shorter by removing the ctx line, but it remains efficient and well-structured.

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?

Given the tool's simplicity, the description covers the key aspects: identification, limit, and return format. It lacks potential edge-case details like what happens if both identifiers are provided, but this is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has no property descriptions (0% coverage), so the description fills the gap by explaining thread_id, username, and limit, including the default and range for limit. It also mentions ctx, a parameter not present in the schema, which adds completeness.

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?

The description opens with 'Read a specific DM conversation', which clearly states the verb and resource. It doesn't explicitly name sibling tools like get_direct_inbox, but the qualifier 'specific' distinguishes it from list-type tools.

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?

It instructs to 'Provide either username or thread_id to identify the conversation', which is clear guidance on prerequisites. However, it doesn't explicitly say when not to use it or mention alternatives like get_direct_inbox or send_dm, so it lacks exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ishan-parihar/instagram-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server