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
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | No | Instagram business account ID (optional, uses configured account if not provided) |
Implementation Reference
- src/client.ts:247-252 (handler)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)", }, }, }, }, - src/index.ts:352-353 (handler)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);