Skip to main content
Glama

get_profile_info

Retrieve Instagram business profile details such as followers count, bio, and account information using the Graph API.

Instructions

Get Instagram business profile information including followers, bio, and account details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoInstagram business account ID (optional, uses configured account if not provided)

Implementation Reference

  • The actual implementation of the getProfileInfo method that makes the API request to the Instagram Graph API.
    async getProfileInfo(accountId?: string): Promise<IGProfile> {
      const id = accountId ?? this.aid();
      const fields =
        "id,username,name,biography,website,profile_picture_url,followers_count,follows_count,media_count";
      return this.request("GET", id, { params: { fields } });
    }
  • src/index.ts:53-66 (registration)
    The registration of the 'get_profile_info' tool within the TOOLS array.
    {
      name: "get_profile_info",
      description:
        "Get Instagram business profile information including followers, bio, and account details",
      inputSchema: {
        type: "object" as const,
        properties: {
          account_id: {
            type: "string",
            description: "Instagram business account ID (optional, uses configured account if not provided)",
          },
        },
      },
    },
  • The tool handler code in src/index.ts that calls the InstagramClient's getProfileInfo method.
    case "get_profile_info":
      return JSON.stringify(await c.getProfileInfo(args.account_id), null, 2);

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