Skip to main content
Glama
Open Instagram API

Open Instagram API

publish_post

Destructive

Publish a single photo or a 2–10 image carousel to Instagram from local files, with an optional caption. Confirm before posting because API posts cannot be deleted.

Instructions

Publish a photo post (1 image) or carousel (2-10 images) from files on this machine. PERMANENT: posts can't be deleted through the API. Confirm with the user first.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image_paths": "<image_paths>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
captionNo
image_pathsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already flag readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety profile is structured. The description earns credit for explaining WHY it is destructive - published posts cannot be deleted through the API - which is the kind of irreversible side-effect detail annotations cannot convey. It adds nothing about failure modes for invalid paths, rate limits, or what is returned.

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?

Two sentences with no filler, and the most decision-relevant constraint (irreversibility) is front-loaded after the core action. The formatting is slightly cramped, with the permanence warning stacked in the same paragraph, but nothing is wasted.

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 two-parameter destructive write with no output schema, the definition covers the essentials: what is created, the image-count branch, the source of files, and the irreversible consequence. Remaining gaps are caption behavior and the return value, both minor against the small surface area.

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 description coverage is 0% and there are no enums, so the description must carry the load. It does explain image_paths semantics well (local file paths, 1 vs 2-10 driving post type), but leaves the caption parameter entirely unaddressed beyond its default. It also does not say what happens with more than 10 images, which the stated bound implies.

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?

States a specific verb and resource ('Publish a photo post') and immediately encodes the branching resource shape: 1 image = single post, 2-10 images = carousel. That is unusually precise for a publish tool. It stops short of differentiating from a sibling like send_photo (a direct-message photo send), which an agent must infer from names alone.

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?

Gives a clear operating prerequisite ('Confirm with the user first') and constrains the input source to files on this machine, which is real routing context. It does not state explicit when-not-to-use conditions or name alternatives for non-photo publishing.

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