Skip to main content
Glama

get_stories

Retrieve active Instagram stories before they expire in 24 hours. Use this tool to access and manage current story content from your account.

Instructions

Get current active stories on your Instagram account. Stories expire after 24 hours.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoInstagram account ID (optional)

Implementation Reference

  • MCP tool handler implementation for "get_stories" in src/index.ts
    case "get_stories": {
      const stories = await c.getStories(args.account_id);
      return JSON.stringify({ stories, count: stories.length }, null, 2);
    }
  • Actual implementation of getStories in the client class
    async getStories(accountId?: string): Promise<IGStory[]> {
      const id = accountId ?? this.aid();
      const data = await this.request("GET", `${id}/stories`, {
        params: { fields: "id,media_type,media_url,timestamp" },
      });
      return data.data ?? [];
    }
  • src/index.ts:308-318 (registration)
    Tool registration definition for "get_stories"
    {
      name: "get_stories",
      description:
        "Get current active stories on your Instagram account. Stories expire after 24 hours.",
      inputSchema: {
        type: "object" as const,
        properties: {
          account_id: { type: "string", description: "Instagram account ID (optional)" },
        },
      },
    },

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