Skip to main content
Glama

get_account_pages

Retrieve Facebook pages linked to an account and their associated Instagram business profiles for cross-platform management.

Instructions

Get Facebook pages connected to the account and their Instagram business accounts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler in the switch-case block that invokes the client method getAccountPages.
    case "get_account_pages": {
      const pages = await c.getAccountPages();
      return JSON.stringify({ pages, count: pages.length }, null, 2);
    }
  • The client implementation that performs the actual network request to fetch account pages.
    async getAccountPages(): Promise<IGPage[]> {
      const data = await this.request("GET", "me/accounts", {
        params: { fields: "id,name,instagram_business_account" },
      });
      return data.data ?? [];
    }
  • src/index.ts:148-152 (registration)
    The MCP tool registration definition for get_account_pages.
    {
      name: "get_account_pages",
      description:
        "Get Facebook pages connected to the account and their Instagram business accounts",
      inputSchema: { type: "object" as const, properties: {} },

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