ig_get_profile
Retrieve Instagram Business or Creator account profile data through the Meta Graph API. Access profile information for Instagram accounts integrated with Meta's platform.
Instructions
Get Instagram Business/Creator account profile information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/instagram/profile.ts:7-21 (handler)The tool 'ig_get_profile' is defined and implemented here as an MCP tool using the MetaClient service.
server.tool( "ig_get_profile", "Get Instagram Business/Creator account profile information.", {}, async () => { try { const { data, rateLimit } = await client.ig("GET", `/${client.igUserId}`, { fields: "id,name,username,biography,followers_count,follows_count,media_count,profile_picture_url,website", }); return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Get profile failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } } );