Skip to main content
Glama

Post an Instagram image or carousel

instagram_post_image

Publish a single Instagram feed image or a 2–10 image carousel from HTTPS JPEG URLs. Avoid duplicate posts by resuming an unfinished container, or preview the action before applying.

Instructions

Publish a single feed image, or a 2–10 image carousel, in one call: create the container(s), wait for processing, then publish. Preview (the default) performs nothing. If processing exceeds the poll budget the result is status=in_progress with a resume_container_id — re-run with apply:true and resumeContainerId to finish (never create a new post, which would duplicate it). Image format, byte size, and dimensions are validated by Instagram on fetch, not here.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNoSet true to actually perform this write. Omitted (or false) returns a non-mutating preview of exactly what would happen and calls nothing, unless IG_WRITE_MODE=apply is configured. An explicit false always forces preview.
accountNoName of the configured account profile to operate as (multi-account). Omit to use the default profile (IG_ACTIVE_PROFILE).
captionNoCaption text (≤ 2200 characters, ≤ 30 hashtags, ≤ 20 @mentions — counted as a client-side guard). Instagram renders @mentions and #hashtags.
userTagsNoUser tags for a single feed image (not carousels): handles with optional 0–1 x/y.
imageUrlsNoPublic HTTPS JPEG image URL(s) Instagram will fetch. One URL posts a single feed image; 2–10 URLs post a carousel album. Required unless resuming. Format/size/dimensions are unverifiable before Instagram fetches them.
locationIdNoInstagram location Page id to tag on the post.
resumeContainerIdNoResume a container from a previous apply that returned status=in_progress: pass its resume_container_id to finish publishing instead of creating a new post (avoids a duplicate). When set, the media inputs are ignored.
Behavior5/5

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

The description goes well beyond annotations by disclosing that preview is the default and performs nothing, that apply:true is required to write, that a poll-timeout returns status=in_progress with resume_container_id, and that re-running must resume rather than create a duplicate. It also clarifies that Instagram validates image format and dimensions at fetch time, which is essential 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded: the first sentence states the primary action and workflow, and each following sentence earns its place by covering preview behavior, resume edge cases, and validation expectations. There is no repetition of schema content or filler.

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?

For a 7-parameter, open-world tool with no output schema, the description covers the key operational flow, the preview/write distinction, the resume path, and the duplicate risk. The main gap is that it does not describe what a successful publish or a preview response returns, which would help an agent handle results without an output schema.

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

Parameters3/5

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

Schema coverage is 100%, and the schema already documents apply, imageUrls, resumeContainerId, and the duplicate-avoidance behavior. The description repeats and reinforces the workflow but does not add new per-parameter semantics beyond what the schema provides, so the baseline 3 is appropriate.

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 starts with a specific, scoped action: 'Publish a single feed image, or a 2–10 image carousel, in one call'. It clearly differentiates this from reel/story posting and from the lower-level container/publish siblings, so an agent knows exactly what resource this tool acts on.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for when to use this tool: for a single feed image or carousel, in one call, versus the alternative of manually creating containers and publishing. It does not explicitly name sibling tools or state when not to use them, so it stops short of a fully explicit routing guide.

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

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