Skip to main content
Glama
Open Instagram API

Open Instagram API

comment_on_post

Adds a comment to an Instagram post or reel using its shortcode and returns the new comment ID for tracking.

Instructions

Write a comment on a post or reel. Returns the comment's id (comment_pk).

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": {
      "shortcode": "<shortcode>",
      "text": "<text>"
    },
    "name": "comment_on_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
shortcodeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a write operation (readOnlyHint=false, destructiveHint=false) with open-world reach, so the safety profile is covered for free. The description adds genuinely useful context by disclosing the return value (comment_pk), which matters because no output schema exists. It says nothing about authentication requirements, rate limits, or whether the comment is immediately visible, so it adds value but not rich behavioral detail.

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 short sentences, front-loaded with the action and followed by the return value. There is no filler, hedging, or redundant restatement of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter mutation the definition is nearly adequate: the action and the returned id are both stated, and annotations cover the write semantics. It falls short on the parameter formats and on any mention of permissions or failure conditions, which is the remaining gap an agent would hit in practice.

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

Parameters2/5

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

Schema description coverage is 0% for two required parameters, so the description carries the full burden and only partially discharges it: 'post or reel' hints that 'shortcode' identifies the target, but the shortcode's format is never explained, and 'text' gets no guidance on length limits, hashtags, or mentions. An agent must guess at both parameter formats.

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?

The description states a specific verb and resource ('Write a comment on a post or reel'), which is far more precise than the tool name alone and clearly separates it from read-side siblings like get_comments. It stops short of naming a contrasting sibling such as delete_comment or publish_post, so differentiation is implicit rather than explicit.

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

Usage Guidelines3/5

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

Usage is implied by the wording — this is the tool for adding a comment to an existing post or reel — but there is no statement of preconditions (must the post exist, must the caller be authenticated), no exclusions, and no pointer to any alternative. An agent can infer the situation but receives no explicit routing guidance.

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