Skip to main content
Glama

get_comments

Retrieve Instagram post comments including text, usernames, timestamps, and like counts to analyze engagement and user feedback.

Instructions

Get comments on an Instagram post. Returns comment text, username, timestamp, and like count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
media_idYesInstagram media ID
limitNoNumber of comments (max 100)

Implementation Reference

  • The tool handler logic for "get_comments", which calls c.getComments.
    case "get_comments": {
      const comments = await c.getComments(args.media_id, args.limit ?? 25);
      return JSON.stringify({ media_id: args.media_id, comments, count: comments.length }, null, 2);
    }
  • The tool definition/schema for "get_comments".
    {
      name: "get_comments",
      description:
        "Get comments on an Instagram post. Returns comment text, username, timestamp, and like count.",
      inputSchema: {
        type: "object" as const,
        properties: {
          media_id: { type: "string", description: "Instagram media ID" },
          limit: { type: "integer", description: "Number of comments (max 100)", minimum: 1, maximum: 100, default: 25 },
        },
        required: ["media_id"],
      },
    },

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

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