Driftglass
← All integrations

Instagram

Social media

Let agents run an Instagram professional account (business or creator): publish photos, carousels, reels and stories, reply to and moderate comments, answer direct messages and read insights.

Actions

21 actions. Call one with POST /v1/tools/{name}/execute or through /mcp.

Get profile

readinstagram.get_profilemcp: instagram_get_profile

Get the connected Instagram professional account: username, bio, followers, follows and media count.

No arguments.

curl -X POST https://driftglass.io/v1/tools/instagram.get_profile/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List posts

readinstagram.list_mediamcp: instagram_list_media

List the account's posts and reels, newest first, with likes and comment counts.

ArgumentTypeDescription
limitintegerResults per page (1-100). Default: 25
afterstring`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/instagram.list_media/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get post

readinstagram.get_mediamcp: instagram_get_media

Get one post or reel, including carousel children.

ArgumentTypeDescription
media_idrequiredstringMedia id.
curl -X POST https://driftglass.io/v1/tools/instagram.get_media/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"media_id":"<media_id>"}}'

List stories

readinstagram.list_storiesmcp: instagram_list_stories

List the account's stories from the last 24 hours.

No arguments.

curl -X POST https://driftglass.io/v1/tools/instagram.list_stories/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List comments

readinstagram.list_commentsmcp: instagram_list_comments

List comments on a post, with their replies.

ArgumentTypeDescription
media_idrequiredstringMedia id.
limitintegerResults per page (1-100). Default: 50
afterstring`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/instagram.list_comments/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"media_id":"<media_id>"}}'

Get post insights

readinstagram.get_media_insightsmcp: instagram_get_media_insights

Get a post's or reel's insights, such as views, reach, likes, comments, shares and saves.

ArgumentTypeDescription
media_idrequiredstringMedia id.
metricsstringComma-separated metrics. Default: views,reach,likes,comments,shares,saved,total_interactions
curl -X POST https://driftglass.io/v1/tools/instagram.get_media_insights/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"media_id":"<media_id>"}}'

Get account insights

readinstagram.get_account_insightsmcp: instagram_get_account_insights

Get account-level insights (views, reach, accounts engaged, interactions, follows) over a period of up to 30 days.

ArgumentTypeDescription
metricsstringComma-separated metrics. Default: views,reach,accounts_engaged,total_interactions,follows_and_unfollows
sincestringStart date, YYYY-MM-DD.
untilstringEnd date, YYYY-MM-DD.
periodstring
day | week | days_28
Aggregation period. Default: day
curl -X POST https://driftglass.io/v1/tools/instagram.get_account_insights/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get publishing limit

readinstagram.get_publishing_limitmcp: instagram_get_publishing_limit

How many posts the account has published through the API in the last 24 hours, and the limit.

No arguments.

curl -X POST https://driftglass.io/v1/tools/instagram.get_publishing_limit/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List direct message threads

readinstagram.list_conversationsmcp: instagram_list_conversations

List the account's Instagram direct message conversations.

ArgumentTypeDescription
limitintegerResults per page (1-100). Default: 20
afterstring`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/instagram.list_conversations/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Read direct messages

readinstagram.list_messagesmcp: instagram_list_messages

Read the latest messages in a direct message conversation.

ArgumentTypeDescription
conversation_idrequiredstringConversation id.
curl -X POST https://driftglass.io/v1/tools/instagram.list_messages/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"conversation_id":"<conversation_id>"}}'

Publish photo

writeinstagram.publish_photomcp: instagram_publish_photo

Publish a photo post from a public JPEG URL.

ArgumentTypeDescription
image_urlrequiredstringPublic JPEG URL.
captionstringCaption, with hashtags and @mentions.
alt_textstringAccessibility text.
curl -X POST https://driftglass.io/v1/tools/instagram.publish_photo/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"image_url":"<image_url>"}}'

Publish reel

writeinstagram.publish_reelmcp: instagram_publish_reel

Publish a reel from a public MP4 URL. Long videos can take a while to process: when the answer says it is still processing, call publish_container later.

ArgumentTypeDescription
video_urlrequiredstringPublic MP4 URL.
captionstringCaption, with hashtags and @mentions.
cover_urlstringPublic image URL for the cover.
share_to_feedbooleanAlso show the reel in the feed. Default: true
curl -X POST https://driftglass.io/v1/tools/instagram.publish_reel/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_url":"<video_url>"}}'

Publish story

writeinstagram.publish_storymcp: instagram_publish_story

Publish a story from a public image or video URL.

ArgumentTypeDescription
image_urlstringPublic JPEG URL.
video_urlstringPublic MP4 URL.
curl -X POST https://driftglass.io/v1/tools/instagram.publish_story/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get upload status

readinstagram.get_container_statusmcp: instagram_get_container_status

Check whether a media container from a publish action has finished processing.

ArgumentTypeDescription
container_idrequiredstringContainer id.
curl -X POST https://driftglass.io/v1/tools/instagram.get_container_status/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"container_id":"<container_id>"}}'

Publish processed upload

writeinstagram.publish_containermcp: instagram_publish_container

Publish a media container that finished processing (when a publish action answered that it was still processing).

ArgumentTypeDescription
container_idrequiredstringContainer id.
curl -X POST https://driftglass.io/v1/tools/instagram.publish_container/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"container_id":"<container_id>"}}'

Reply to comment

writeinstagram.reply_to_commentmcp: instagram_reply_to_comment

Reply to a comment on one of the account's posts.

ArgumentTypeDescription
comment_idrequiredstringComment id.
messagerequiredstringReply text.
curl -X POST https://driftglass.io/v1/tools/instagram.reply_to_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_id":"<comment_id>","message":"<message>"}}'

Hide comment

writeinstagram.hide_commentmcp: instagram_hide_comment

Hide or unhide a comment on one of the account's posts.

ArgumentTypeDescription
comment_idrequiredstringComment id.
hidebooleantrue hides, false shows it again. Default: true
curl -X POST https://driftglass.io/v1/tools/instagram.hide_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_id":"<comment_id>"}}'

Delete comment

writeinstagram.delete_commentmcp: instagram_delete_comment

Delete a comment on one of the account's posts.

ArgumentTypeDescription
comment_idrequiredstringComment id.
curl -X POST https://driftglass.io/v1/tools/instagram.delete_comment/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"comment_id":"<comment_id>"}}'

Turn comments on or off

writeinstagram.set_comments_enabledmcp: instagram_set_comments_enabled

Turn comments on or off for a post.

ArgumentTypeDescription
media_idrequiredstringMedia id.
enabledrequiredbooleanAllow comments.
curl -X POST https://driftglass.io/v1/tools/instagram.set_comments_enabled/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"media_id":"<media_id>","enabled":true}}'

Send direct message

writeinstagram.send_messagemcp: instagram_send_message

Send a direct message to someone who messaged the account in the last 24 hours (Instagram's messaging window).

ArgumentTypeDescription
recipient_idrequiredstringInstagram-scoped id of the person (from list_conversations).
textrequiredstringMessage text.
curl -X POST https://driftglass.io/v1/tools/instagram.send_message/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"recipient_id":"<recipient_id>","text":"<text>"}}'