Skip to main content
Glama

Instagram: Profile

instagram_profile
Read-only

Instagram profiles: details, user ID, posts, reels, highlights and highlight stories.

Actions:

  • action=details: Get an Instagram profile by username: bio, follower and post counts, verification status and related profiles. Pricing: 1 credit per call. Inputs: username (required), link (optional).

  • action=id: Resolve an Instagram username or profile URL to its two IDs: user_id (long, e.g. 17841401474538262), used by action=posts and action=reels, and pk (short, e.g. 528817151), used by action=highlights. Pricing: 1 credit per call. Inputs: link (optional), username (optional).

  • action=posts: List an Instagram profile's posts (photos, videos, carousels) with captions, like and comment counts and media URLs. Pass username (returns more results) or user_id (the long user_id from action=id, not the pk). Returns an end_cursor for the next page. For reels only, use action=reels. Pricing: 1 credit; up to 12 credits per call depending on the result. Inputs: username (optional), user_id (optional), end_cursor (optional), full_details (optional).

  • action=reels: List an Instagram profile's reels with play counts, captions, video URLs and audio metadata. Needs the long user_id from action=id (not the pk). Returns an end_cursor for the next page. Pricing: 1 credit per call. Inputs: user_id (required), end_cursor (optional).

  • action=highlights: List an Instagram profile's story highlights with titles, cover images and highlight IDs. Needs the profile's pk from action=id, passed as user_id (not the long user_id). Use action=highlight_details to get the stories in one highlight. Pricing: 1 credit per call. Inputs: user_id (required).

  • action=highlight_details: Get the stories inside one Instagram highlight. Needs a highlight_id from action=highlights. Pricing: 1 credit per call. Inputs: highlight_id (required).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "instagram_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNoInstagram profile URL (alternative to username). Optional for: details, id.
actionYesWhich operation to run. See the tool description for what each action returns and which parameters it needs.
user_idNoInstagram profile ID from action=id. posts, reels: its long user_id (e.g. 17841401474538262) · highlights: its pk (e.g. 528817151). For posts, an alternative to username. Required for: reels, highlights. Optional for: posts.
usernameNoInstagram username, without the @. For posts it returns more results than user_id. Required for: details. Optional for: id, posts.
end_cursorNoPagination cursor for next page. Optional for: posts, reels.
full_detailsNoWhen true, returns the full details of each post. Default: false. Pricing: 12 credits when true, 1 credit otherwise. Optional for: posts.
highlight_idNoHighlight ID (from profile highlights endpoint). Required for: highlight_details.

Output Schema

NameRequiredDescriptionDefault
resultYesJSON response from the SocialAPIs REST endpoint, unchanged. Object or array depending on the endpoint; most include a `meta` block (statusCode, duration, creditsCharged, creditsRemaining).
creditsChargedNoCredits charged for this call, or null if the endpoint did not report it.
creditsRemainingNoCredits left on the API key after this call, or null if not reported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / full_details
      Added value: +{
      +  "description": "When true, returns the full details of each post. Default: false. Pricing: 12 credits when true, 1 credit otherwise.\nOptional for: posts.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / user_id / description
      Previous value: -"Numeric Instagram user ID, from action=id. For posts, an alternative to username.\nRequired for: reels, highlights. Optional for: posts."New value: +"Instagram profile ID from action=id. posts, reels: its long user_id (e.g. 17841401474538262) · highlights: its pk (e.g. 528817151). For posts, an alternative to username.\nRequired for: reels, highlights. Optional for: posts."
  3. Changed5 schema fields changed
    • changedInput schema / properties / end_cursor / description
      Previous value: -"posts, reels (optional): Pagination cursor for next page."New value: +"Pagination cursor for next page.\nOptional for: posts, reels."
    • changedInput schema / properties / highlight_id / description
      Previous value: -"highlight_details (required): Highlight ID (from profile highlights endpoint)."New value: +"Highlight ID (from profile highlights endpoint).\nRequired for: highlight_details."
    • changedInput schema / properties / link / description
      Previous value: -"details (optional): Instagram profile URL (alternative to username). id (optional): Instagram profile URL."New value: +"Instagram profile URL (alternative to username).\nOptional for: details, id."
    • changedInput schema / properties / user_id / description
      Previous value: -"posts (optional): Instagram user ID (alternative). reels, highlights (required): Instagram user ID."New value: +"Numeric Instagram user ID, from action=id. For posts, an alternative to username.\nRequired for: reels, highlights. Optional for: posts."
    • changedInput schema / properties / username / description
      Previous value: -"details (required): Instagram username. id (optional): Instagram username. posts (optional): Instagram username (recommended — returns more results)."New value: +"Instagram username, without the @. For posts it returns more results than user_id.\nRequired for: details. Optional for: id, posts."
  4. Changed5 schema fields changed
    • changedInput schema / properties / end_cursor / description
      Previous value: -"For posts, reels: Pagination cursor for next page."New value: +"posts, reels (optional): Pagination cursor for next page."
    • changedInput schema / properties / highlight_id / description
      Previous value: -"For highlight_details: Highlight ID (from profile highlights endpoint)."New value: +"highlight_details (required): Highlight ID (from profile highlights endpoint)."
    • changedInput schema / properties / link / description
      Previous value: -"For details: Instagram profile URL (alternative to username). For id: Instagram profile URL."New value: +"details (optional): Instagram profile URL (alternative to username). id (optional): Instagram profile URL."
    • changedInput schema / properties / user_id / description
      Previous value: -"For posts: Instagram user ID (alternative). For reels, highlights: Instagram user ID."New value: +"posts (optional): Instagram user ID (alternative). reels, highlights (required): Instagram user ID."
    • changedInput schema / properties / username / description
      Previous value: -"For details, id: Instagram username. For posts: Instagram username (recommended — returns more results)."New value: +"details (required): Instagram username. id (optional): Instagram username. posts (optional): Instagram username (recommended — returns more results)."
  5. Added

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, destructiveHint=false and openWorldHint, so safety is covered; the description goes further with per-action credit pricing ('1 credit; up to 12 credits per call depending on the result') and pagination behavior via end_cursor. It also warns that passing username yields more results than user_id, a real behavioral difference. It does not address auth/rate limits or failure modes, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The per-action bullet structure is front-loaded and easy to scan, and the leading summary line sets scope immediately. However, each bullet repeats an 'Inputs:' list that duplicates the schema verbatim and repeats 'Pricing: 1 credit per call' five times, which is redundant bulk.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the description still previews the key fields each action returns. Combined with full ID-chaining notes, pagination and pricing, an agent has everything needed to select an action and call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-action chaining semantics the schema alone does not make obvious: which action produces the long user_id versus the short pk and which consumer requires which. This is meaningfully more than restating field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (Instagram profiles) and enumerates six concrete operations with the verbs and returns for each, e.g. 'List an Instagram profile's reels with play counts, captions, video URLs and audio metadata.' It also differentiates overlapping operations explicitly ('For reels only, use action=reels'), which separates it from siblings like instagram_post and instagram_reels.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Every action carries its own when-to-use logic plus prerequisites: action=highlights requires the pk from action=id, action=highlight_details requires a highlight_id from action=highlights. It also names the alternative action to pick when the intent overlaps ('Use action=highlight_details to get the stories in one highlight').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.