Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
INSTAGRAM_MCP_DRAIN_MSNoOn shutdown (stdin closed, SIGTERM, SIGINT), the server waits up to this many milliseconds (default 5 minutes) for in-flight approves; a second signal exits immediately.
INSTAGRAM_MCP_HTTP_HOSTNoOverrides http.host for HTTP mode; the --host flag wins over both, and the allow_remote rule applies to the effective host.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
instagram_list_accountsA

List configured Instagram accounts with login path, default flag, token presence/expiry and the resolved capability matrix (yes/no/probe per feature). Makes no Instagram request.

instagram_get_profileA

Profile of the connected account: username, name, bio, website, counts, profile picture URL and account type. On the facebook and unified login paths account_type is always null and warnings says so (the Graph API does not provide it there).

instagram_get_rate_limitsC

Publishing quota (content_publishing_limit), the most recent business-use-case and app usage reported by Meta response headers, and the remaining hashtag-search budget (facebook and unified login paths only).

instagram_get_operationA

Look up one operation or approval by id (op_... or appr_...): status, preview, result or error. For unknown publish outcomes it reconciles against Instagram (one attempt per call) unless reconcile is false.

instagram_list_operationsA

Recent operations (approved executions, including dry runs and scheduler-originated), newest first. Filter by action, status, account and created_at range.

instagram_approveA

Execute a pending approval created by an instagram_preflight_* tool. This is the only tool that changes Instagram. Requires confirm: true. Single-use; repeating it returns the stored outcome without re-executing.

instagram_list_mediaA

List the account's own media (newest first) with caption, type, permalink, counts and URLs. Optional media_product_type filter (FEED|REELS|STORY|AD) is applied after each page is fetched, so a page may hold fewer than limit items while next_cursor is set. since/until are ISO 8601 or YYYY-MM-DD.

instagram_get_mediaA

Details of one media item: caption, type, permalink, counts, URLs, shortcode, alt text, username and carousel children. Works for Stories too (comment-related fields are null there).

instagram_list_storiesA

List the account's currently live stories (last 24 hours).

instagram_download_mediaA

Save one of your media items (and carousel children, video thumbnails) to the local downloads directory with a JSON sidecar. Only Instagram CDN hosts are fetched, no credentials are sent, and existing files are skipped. Writes local files only.

instagram_backup_accountA

Incrementally download all of the account's media into the local downloads directory (skipping items already downloaded) and write insights-latest.json. max_items caps how many recent items are considered (default 500). Per-item failures do not abort the run.

instagram_preflight_publishA

Validate and preview publishing an image, reel, story or carousel (public URLs or local files), optionally scheduled with publish_at. Checks media rules and the 24 h publishing quota, then returns an approval_id and the exact planned Graph calls. Nothing is posted until instagram_approve.

instagram_list_scheduledA

List scheduled publish jobs ordered by publish_at (earliest first). Filter by status and account. Local only.

instagram_cancel_scheduledA

Cancel a scheduled publish job that has not started (status "scheduled"). Deletes its staged media copies. Local only; no approval needed. Requires confirm: true.

instagram_preflight_delete_mediaA

Preview deleting one of your own posts, reels or stories (a carousel is deleted as a whole). Returns an approval_id; the post is deleted only after instagram_approve. Not available on every login path.

instagram_preflight_set_comments_enabledA

Preview turning comments on or off for one of your posts. Returns an approval_id; applied only after instagram_approve.

instagram_get_publish_statusA

Status of a media container (creation_id): FINISHED, IN_PROGRESS, ERROR, EXPIRED or PUBLISHED, with Meta's status text.

instagram_list_commentsA

Top-level comments on one of your media (id, text, username, timestamp, like_count, hidden), optionally with their replies. Paginated (limit max 50).

instagram_get_commentB

One comment with its parent id, media id and replies.

instagram_get_inboxA

Unified triage feed: recent top-level comments on your latest media, tags, and stored webhook events, with unanswered (no reply from you) and handled flags. Window = since or last days days. Offset-paginated over the merged list.

instagram_mark_handledA

Local bookkeeping: mark (or unmark) inbox item ids as handled so instagram_get_inbox hides them. No Instagram request.

instagram_preflight_comment_actionsA

Plan a batch (1..50) of comment operations: reply, comment, hide, unhide, delete, private_reply. Reads each target, returns a preview, the exact planned calls and an approval_id; nothing is written until instagram_approve. Per-item outcomes are reported on approve; one failing item never stops the batch. private_reply needs the messaging capability and a comment younger than 7 days.

instagram_list_mentionsA

Media you are tagged in (mode tags, paginated), or look up a specific mentioning media (mentioned_media + media_id) or comment (mentioned_comment + comment_id).

instagram_preflight_reply_mentionA

Plan a reply to a media mention (media_id) or a comment mention (media_id + comment_id) via POST /{ig}/mentions. Returns an approval_id for instagram_approve.

instagram_list_conversationsB

Recent DM conversations with participants, last message, last user message time and whether the 24 h messaging window is open. senders is api, webhooks (Meta withheld senders; time from stored webhook events) or unavailable.

instagram_get_conversationA

Messages of one conversation (newest first, max 20) with participants and the 24 h window state. senders is api, webhooks or unavailable (Meta withheld sender fields).

instagram_preflight_send_messageA

Plan a DM (text, media URL, or reaction; optional quick replies) to an IGSID or conversation. Checks the 24 h messaging window from the last 20 messages, or from stored webhook events when Meta withholds senders (WINDOW_UNVERIFIED warning when neither is available) (HUMAN_AGENT tag only if policy allows and within 7 days) and returns an approval_id for instagram_approve.

instagram_preflight_set_messaging_profileA

Plan changes to the DM profile: ice breakers (max 4), persistent menu, and/or clearing either. Shows the current profile and returns an approval_id for instagram_approve.

instagram_get_account_insightsA

Account-level insights (reach, views, accounts_engaged, total_interactions, likes, comments, shares, saves, follows_and_unfollows, profile_links_taps, demographics, ...). Validates metrics against the current Meta list and rejects deprecated names (impressions, plays, profile_views ...) naming the replacement ("views"). All metrics in one call must share one period.

instagram_get_media_insightsA

Insights for one media item. Picks the valid metric set for its product type (FEED incl. carousels, REELS, STORY) when metrics is omitted; an explicit list is validated against that product type. Optional breakdown only for navigation or profile_activity.

instagram_get_audienceA

Follower and engaged-audience demographics (age, gender, city, country) plus online followers by hour when Meta provides them. Engaged and online sections are best-effort: failures are listed in "unavailable", never fatal.

instagram_snapshot_insightsA

Fetch current counts and last-24h account insights and store them as a local snapshot (the daemon also does this daily). Feeds instagram_get_growth. Allowed under read_only.

instagram_get_growthA

Growth time series from locally stored snapshots (followers, media count, reach, views, engagement) with deltas between consecutive snapshots. Makes no Instagram request.

instagram_performance_reportA

Performance report for 7d, 30d, 90d or a custom range: totals vs the previous period, engagement rate (total_interactions / reach), top and bottom posts, format breakdown, posting cadence. Returns JSON plus a markdown summary. Single failed post-insight requests only add warnings.

instagram_best_time_to_postA

Best posting slots (UTC) from online_followers when Meta provides it and from your own post history (likes + comments by weekday and hour). States which data was used; missing online_followers is not an error.

instagram_media_kitA

Partnership media kit: profile, follower demographics, average reach/views/engagement per format over 30 and 90 days, top posts. Returns JSON plus markdown. Demographic or insight failures only add warnings.

instagram_lookup_accountA

Business discovery: public profile stats and recent media of another Instagram business/creator account by username. Facebook login path only (instagram login path returns CAPABILITY_UNAVAILABLE).

instagram_compare_accountsA

Compare your account with up to 10 other public business/creator accounts: followers, posting cadence, average likes/comments and format mix over a recent sample. Facebook login path only.

instagram_search_hashtagA

Resolve a hashtag to its id. Meta allows 30 distinct hashtags per account per rolling 7 days; repeats within the window are free, a 31st new hashtag returns HASHTAG_BUDGET_EXHAUSTED. Facebook login path only.

instagram_get_hashtag_mediaA

Top or recent public media for a hashtag id from instagram_search_hashtag. Does not use the hashtag search budget. Facebook login path only.

instagram_list_collab_invitesA

Pending collaboration (collab post) invites for the account. May be unavailable on the instagram login path (CAPABILITY_UNAVAILABLE once Meta rejects it).

instagram_preflight_respond_collab_inviteA

Preview accepting or declining a pending collaboration invite (reads the invite list only). Returns an approval_id; nothing changes until instagram_approve is called with it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 42 tools

Disambiguation4/5

Most tools have clearly distinct purposes, helped by the preflight/approve split and explicit capability notes. Some overlap remains among analytics/report tools such as performance_report, media_kit, account_insights, audience, growth, and best_time_to_post, which could still require careful selection.

Naming Consistency4/5

All tools use the instagram_ prefix and snake_case, and most follow a predictable verb_noun pattern such as get_media, list_comments, and preflight_publish. Minor deviations are noun- or phrase-based names like media_kit, performance_report, and best_time_to_post.

Tool Count2/5

The server exposes 42 tools, well above the typical 3-15 range, even for a broad Instagram management surface. Many analytics, inbox, and preflight operations could likely be consolidated or grouped to reduce agent selection burden.

Completeness4/5

Coverage is broad: media, publishing/scheduling, approval flow, comments, DMs, mentions, collabs, insights, hashtags, backup, and account discovery are all represented. Minor gaps remain, such as direct media caption editing or richer mention moderation, but core lifecycles are largely covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues