Skip to main content
Glama

Create a comment

instagram_create_comment

Post a top-level comment on an Instagram media object; previews by default, then set apply:true to publish the comment.

Instructions

Post a new top-level comment on a media object (POST /{media-id}/comments). Preview by default; re-run with apply:true (or set IG_WRITE_MODE=apply) to perform the comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNoSet true to perform the write; omitted/false previews only.
accountNoName of the configured account profile to operate as (multi-account). Omit to use the default profile (IG_ACTIVE_PROFILE).
mediaIdYesThe id of the media to comment on.
messageYesThe comment text to post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.8.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / mediaId / pattern
      Added value: +"^[A-Za-z0-9_-]{1,64}$"
    • addedInput schema / properties / message / pattern
      Added value: +"\\S"
  2. First observedv0.7.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write/safety profile is partly known. The description adds genuinely useful behavior: the default is a dry-run preview and the write only occurs under an explicit flag or env var, which is not derivable from annotations.

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?

Two tight sentences, zero padding. The endpoint and the safe-default behavior are front-loaded so the agent sees the critical constraint immediately.

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 4-param mutation tool with full schema coverage and no output schema, the description covers what it does and the preview/apply gate. It leaves out what the preview response contains, but nothing essential for correct invocation is missing.

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 100%, so the schema already documents apply, account, mediaId, and message. The description restates the apply semantics and adds the IG_WRITE_MODE fallback, but adds little on the other three parameters; baseline 3 applies.

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?

States a specific verb ('Post') and resource ('a new top-level comment on a media object'), and even includes the underlying endpoint. The word 'top-level' explicitly separates it from instagram_reply_to_comment, so an agent can route correctly.

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 clear operating context: the tool previews by default and requires apply:true (or IG_WRITE_MODE=apply) to actually write. It does not explicitly name the sibling alternative (reply_to_comment) or state exclusions, so it falls short of a 5.

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