Skip to main content
Glama
drashrafsaiyed-cyber

Instagram MCP Server

send_dm

Send a direct message reply to an Instagram user who has messaged you within the last 24 hours.

Instructions

Send a DM reply to a user.

THIS IS A WRITE OPERATION. IMPORTANT: Instagram enforces a 24-hour messaging window — you can only DM users who have messaged you within the last 24 hours, unless using a message tag (not supported in this tool). Cold DMs will fail and may trigger rate limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recipient_igsidYesRecipient's Instagram-scoped ID (IGSID) from get_messages 'from' field
messageYesMessage text to send

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully discloses that this is a write operation and explains the critical behavioral constraint of the 24-hour window, including the risk of rate limits on failure.

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?

The description is concise with two short sentences and a paragraph, all front-loaded with the core action. Every sentence adds value with no redundancy or fluff.

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 complexity of the DM tool (write operation with a time constraint), the description covers essential behavioral context. It does not detail error codes or exact rate limit behavior, but it is sufficient for an agent to understand key constraints. The presence of an output schema reduces the need for return value descriptions.

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?

While schema coverage is 100% and baseline is 3, the description adds context beyond the schema by explaining that the recipient_igsid comes from get_messages and by relating the messaging window to the parameters. This provides additional meaning.

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 description clearly states 'Send a DM reply to a user,' which is a specific verb-resource combination. It distinguishes itself from sibling tools like 'send_human_agent_dm' by focusing on direct DM replies.

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?

The description explicitly mentions the 24-hour messaging window and warns that cold DMs will fail, providing clear guidance on when to use the tool and when not to. It also notes that message tags are not supported, further clarifying limitations.

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/drashrafsaiyed-cyber/instagram-mcp'

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