Skip to main content
Glama

Instagram: Get user profile by username

instagram_user
Read-onlyIdempotent

Get a public Instagram profile by username: full name, bio, bio links, profile picture, follower, following and post counts, and whether the account is private, verified or a business. Read-only: returns public data and changes nothing. Costs 1 credit per request.

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": {
      "username": "<username>"
    },
    "name": "instagram_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
usernameYesInstagram username, or the profile link, e.g. "instagram" or "https://www.instagram.com/instagram/".
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cacheMaxAgeHours
      Added value: +{
      +  "description": "Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cacheOnly
      Added value: +{
      +  "description": "Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / username / description
      Previous value: -"Instagram username, or the profile link, e.g. \"instagram\" or \"https://www.instagram.com/instagram/\""New value: +"Instagram username, or the profile link, e.g. \"instagram\" or \"https://www.instagram.com/instagram/\"."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the safety profile is covered; the description nonetheless adds real value by stating it returns public data only and that each request costs 1 credit. The credit price is precisely the kind of behavioral fact an agent cannot get from the annotations, though rate limits and failure modes go unmentioned.

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

Conciseness5/5

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

Front-loaded with the verb and resource, followed by the return payload, then two short sentences for safety and cost. No filler, no restatement of the title, and every sentence carries information.

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

Completeness4/5

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

With no output schema, the description usefully enumerates the returned fields, and it covers cost and read-only behavior for a 3-parameter tool. The only shortfall is that the caching options, the most consequential parameter choice given the credit pricing, are only described in the schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains username, cacheOnly, and cacheMaxAgeHours in detail. The description adds no parameter meaning beyond that — notably it never hints that caching can avoid the 1-credit charge it advertises, leaving the cost/cache tradeoff entirely to the schema. Baseline 3 applies.

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

Purpose4/5

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

"Get a public Instagram profile by username" states a specific verb and resource, and the enumerated return fields (full name, bio, bio links, profile picture, follower/following/post counts, private/verified/business flags) clearly separate it from siblings like instagram_user_posts or instagram_followers. It stops short of explicitly naming which sibling to pick instead, which is what a 5 would require.

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

Usage Guidelines3/5

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

The "by username" framing implies the lookup use case, but the description never says when to prefer this over instagram_search_users (username discovery) or instagram_user_posts (content retrieval). There are no exclusions or prerequisites given, so routing has to be inferred from the sibling names.

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.

Resources